Hide Sensitive Complications on Apple Watch

There's a feature to hide sensitive data in complications on Apple Watch, but is this feature available for third-party complications in watchOS 7?

Thanks!

Accepted Reply

Check out the CLKComplicationDataSource. Basically, in your subclass, implement


Code Block Swift
func getPrivacyBehavior(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationPrivacyBehavior) -> Void) {``
   handler(.showOnLockScreen)
}

Replies

Check out the CLKComplicationDataSource. Basically, in your subclass, implement


Code Block Swift
func getPrivacyBehavior(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationPrivacyBehavior) -> Void) {``
   handler(.showOnLockScreen)
}

Thank you!! This worked!