Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the digital time on watchOS 10?

Before watchOS 10, I can hide the digital time on the status bar by this:


let app = Dynamic.PUICApplication.sharedPUICApplication()

app._setStatusBarTimeHidden(true, animated: false, completion: nil)

But this private API is no longer take effect on watchOS 10+. Does there any other API to hide the time?

like image 683
WindowsMEMZ Avatar asked Dec 29 '25 06:12

WindowsMEMZ


1 Answers

We can hide the digital time by SwiftUI like this:

struct MyView: View {
    var body: some View {
        Text("Hello, World!")
            ._statusBarHidden()
    }
}

View._statusBarHidden(_: Bool = true)

like image 96
WindowsMEMZ Avatar answered Dec 30 '25 22:12

WindowsMEMZ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!