Post

Replies

Boosts

Views

Activity

Reply to Determining Landscape Left and Landscape Right?
extension UIViewController {     var deviceOrientation:UIDeviceOrientation {         guard let window = view.window else { return .unknown }         let fixedPoint = window.screen.coordinateSpace.convert(CGPoint.zero, to: window.screen.fixedCoordinateSpace)         if fixedPoint.x == 0 {             if fixedPoint.y == 0 { return .portrait }             return .landscapeRight         } else {             if fixedPoint.y == 0 { return .landscapeLeft }             return .portraitUpsideDown         }     } }
Topic: App & System Services SubTopic: General Tags:
Jun ’21
Reply to SwiftUI ScrollView LazyVStack Performance
Does anyone have un update on this performance issue? Is UICollectionView still be the better option for scalable grids?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to What causes this error? [UIFocus] Failed to update focus with context
Some people online say this is just a log end not to worry about it. My app is literally not working anymore. Some views are unusable suddenly. Both on simulator and devices.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Determining Landscape Left and Landscape Right?
extension UIViewController {     var deviceOrientation:UIDeviceOrientation {         guard let window = view.window else { return .unknown }         let fixedPoint = window.screen.coordinateSpace.convert(CGPoint.zero, to: window.screen.fixedCoordinateSpace)         if fixedPoint.x == 0 {             if fixedPoint.y == 0 { return .portrait }             return .landscapeRight         } else {             if fixedPoint.y == 0 { return .landscapeLeft }             return .portraitUpsideDown         }     } }
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’21