How do I hide or remove the small clock from Apple Watch statusbar screen on my app?
I searched the web for this but found nothing!
I just discovered that Apple will reject your app if you remove that clock, but my app is a watch face itself and doesn't need to display that time.
This is GaétanZ's answer using Swift and Dynamic. (watchOS 7+)
let app = Dynamic.PUICApplication.sharedPUICApplication()
app._setStatusBarTimeHidden(true, animated: false, completion: nil)
This is using a private API, avoid using it in apps intended for the App Store. However, there is a trick...
The only App Store app that I know of and does hide the clock is Clockology. It uses a .clock file obtainable from an outside source and that .clock file makes the clock in the corner invisible (possibly by calling a function already existing in the app, containing code similar to the one above).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With