Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide or remove the time from the Apple Watch status bar?

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.

like image 314
Ahmadreza Avatar asked Jun 28 '16 05:06

Ahmadreza


1 Answers

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).

like image 94
Tamás Sengel Avatar answered Sep 25 '22 18:09

Tamás Sengel