In Swift there is a UIScreen.main.brightness = 1.0. But I couldn't find anything similar in SwiftUI. I need to adjust brightness in my watch os app. Is it even possible? Thanks in advance
In Swift there is a UIScreen.main.brightness = 1.0. But I couldn't find anything similar in SwiftUI. I need to adjust brightness in my watch os app. Is it even possible? Thanks in advance
-
—
OOPer
-
—
psrajer
Add a CommentHave you tried the exact code in your watchOS app?
Yes it says
Cannot find 'UIScreen' in scopeeven If I import UIKit