79611836

Date: 2025-05-08 06:53:25
Score: 1
Natty:
Report link

This is fixed in iOS 18.4. I have implemented this workaround for version 18.0 to 18.3:

if #available(iOS 18.4, *) {
} else if #available(iOS 18, *),
          UIDevice.current.userInterfaceIdiom == .pad,
          horizontalSizeClass == .regular {

    Rectangle()
        .fill(.regularMaterial)
        .frame(height: 50)
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jan