79183612

Date: 2024-11-13 06:19:54
Score: 1.5
Natty:
Report link

In iOS and iPadOS, size classes (compact and regular) control the layout behaviour of UI elements. We can get the old behaviour using TraitOverrides. This solves the issue.

self.traitOverrides.horizontalSizeClass = UIUserInterfaceSizeClass.compact

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Suresh Rewar