Post

Replies

Boosts

Views

Activity

Reply to Objective C App has wrong [UIScreen mainScreen].bounds value since iOS 16
I would really appreciate a framework engineer's feedback here. I can't seem to figure out how to solve the issue. I have thought about using a storyboard setup for the app, but this would result in a lot of overhead work. Also, I don't even know if the issue would actually be resolved this way. I simply suspect it would be, since newly created objective c projects (which use storyboards by default) are displayed as you would expect.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22
Reply to Objective C App has wrong [UIScreen mainScreen].bounds value since iOS 16
The issue seems to originate from a layer above the WindowScene. I checked, and the value reported for self.view.window.windowScene.screen.bounds is the same as for the mainScreen's bounds. Also as mentioned in my question, forcing the window (which is as far as I know the outermost layer I can access) to be a different size doesn't solve the issue. The window itself seems to be clipped inside those 320x480pt bounds.
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’22
Reply to Objective C App has wrong [UIScreen mainScreen].bounds value since iOS 16
I would really appreciate a framework engineer's feedback here. I can't seem to figure out how to solve the issue. I have thought about using a storyboard setup for the app, but this would result in a lot of overhead work. Also, I don't even know if the issue would actually be resolved this way. I simply suspect it would be, since newly created objective c projects (which use storyboards by default) are displayed as you would expect.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Objective C App has wrong [UIScreen mainScreen].bounds value since iOS 16
Though the reason self.view.window.windowScene.screen.bounds has the same value is probably that the window initialized in the App Delegate still uses the +[UIScreen mainScreen] to set its frame size. Can I somehow access the correct value in the AppDelegate?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Objective C App has wrong [UIScreen mainScreen].bounds value since iOS 16
I answered the question instead of responding to the comment by mistake, please delete this
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Objective C App has wrong [UIScreen mainScreen].bounds value since iOS 16
The issue seems to originate from a layer above the WindowScene. I checked, and the value reported for self.view.window.windowScene.screen.bounds is the same as for the mainScreen's bounds. Also as mentioned in my question, forcing the window (which is as far as I know the outermost layer I can access) to be a different size doesn't solve the issue. The window itself seems to be clipped inside those 320x480pt bounds.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to UICollectionViewDiffableDataSource cellProvider called more often than expected
I have found a workaround for this issue by now - not using any .estimated sizes in the Compositional Layout prevents the unwanted reloads. But the bug causing the issue in the first place wasn't fixed yet. As I am unsure as to where I should file this issue I'm commenting here, hoping that someone can help me out.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’21