Posts

Post not yet marked as solved
8 Replies
4.4k Views
I have a List. I want to disable first cell. How can I do it?I set .disabled(true) but it doesn't work. struct ContentView: View { var body: some View { List { ForEach(1..<5) { Text("\($0)") .disabled($0 == 1) } } }}
Posted Last updated
.
Post not yet marked as solved
0 Replies
401 Views
Hello.I am developing SwiftUI watchOS app. Sometimes I use Xcode Canvas to view my SwiftUI code. But when I switch from Canvas to watchOS Simulator Xcode rebuilds my app from scratch (it takes 1 minute). It means that incremental compilation fails.Why switching from Canvas to Simulator and vice versa triggers project rebuilding (like clean build)?
Posted Last updated
.
Post marked as solved
3 Replies
1.5k Views
Hello.I am developing iOS app with support of Siri Shortcuts (Intent extension). I have one custom Intent. I am able to record a phrase for Siri Shortcut without calling INPreferences.requestSiriAuthorization(). Also my Intent extension successfully handle intent from Siri even If I turn off Siri for app in app setting page.What is INPreferences.requestSiriAuthorization() for?Why Intent extension with custom intent works even when INPreferences.siriAuthorizationStatus is equal to .denied?
Posted Last updated
.