Post

Replies

Boosts

Views

Activity

WatchOS Status Bar size height. Get the height of the screen in WatchOS(SwiftUI) without the status bar?
Is there a way to get a height of the screen in WatchOS(SwiftUI) without the status bar. I've found a way using this: WKInterfaceDevice.current().screenBounds.size.height However I ran into another problem. For every watch(38, 40, 42, 44) the status bar height is different. 38mm: height = 19pt (38px) 42mm: height = 21pt (42px) 44mm: height = 31pt (62px) 40mm: height = 28pt (56px) Is there something from Apple regarding it? What would be the best way of doing it? Would it be the best to check the watchModel/size and then return the status bar height?
1
1
1.4k
Aug ’21