Post

Replies

Boosts

Views

Activity

Reply to iOS16 change orientaion
My problem with my code below is that I'm trying to do it when closing a modal view and the view under it are not updated quick enough. If I put the requestGeometryUpdate on a separate button then close the view it work. if #available(iOS 16.0, *) {             let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene             windowScene?.requestGeometryUpdate(.iOS(interfaceOrientations: .portrait))         }
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’22
Reply to Swift, iOS15, UIKit, CollectionView header issue
Same problem here: The view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath: does not match the element kind it is being used for. When asked for a view of element kind 'UICollectionElementKindSectionHeader' the data source dequeued a view registered for the element kind 'UICollectionElementKindSectionFooter
Topic: Community SubTopic: Apple Developers Tags:
Sep ’21