Post

Replies

Boosts

Views

Activity

Reply to SafeAreas for both orientation before adding a view to the hierarchy
FYI, I tried with appearance, but safeAreaInsets are .zero and safeAreaLayoutGuide is still nil, that's a shame :-/      let appearance = UICollectionView.appearance(for: self.traitCollection,                            whenContainedInInstancesOf: [UIViewController.self, UINavigationController.self])     print(" \(appearance.safeAreaInsets) - \(appearance.safeAreaLayoutGuide)")
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22
Reply to SafeAreas for both orientation before adding a view to the hierarchy
FYI, I tried with appearance, but safeAreaInsets are .zero and safeAreaLayoutGuide is still nil, that's a shame :-/      let appearance = UICollectionView.appearance(for: self.traitCollection,                            whenContainedInInstancesOf: [UIViewController.self, UINavigationController.self])     print(" \(appearance.safeAreaInsets) - \(appearance.safeAreaLayoutGuide)")
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’22