I'm having the same issue. More or less exactly as @davenorfleet described.
I'm wondering if it's maybe a faulty watch connection? For some reason I've also been unable to take screenshots on the watch, even if the option is enabled in the watch app. Pressing crown and button simultaniously will even make both watch and iPhone vibrate but there is no screenshot to be found in the camera roll of the iPhone. Does anybody else here experience this?
Post
Replies
Boosts
Views
Activity
Oddly enough, disabling WiFi both on the iPhone and watch seems to fix this for me (at least at the moment).
for reference:
https://stackoverflow.com/a/61053243/2064473
@OOPer
It seems like your solution doesn't work when trying to use state logic inside the modifier (which does work with ViewModifier).
An example:
struct HulkSmash: TextModifier {
@State var isHulk: Bool = false
func body(text: Text) -> some View {
text.bold()
.font(isHulk ? .system(.largeTitle, design: .rounded) : .body)
.foregroundColor(isHulk ? .init(.systemGreen) : .init(.systemFill))
.onTapGesture {
print("tap triggered")
isHulk.toggle()
}
}
}
Here the tap is triggered, however, the view does not update.
Do you have any idea why this doesn't work?
Thank you @darkpaw!
Your error is different than WCErrorCodeFileAccessDenied, so at least I know that there might be a different issue in my code. Thanks so much.
I'd keep coding as though the file has been transferred across
You're right, but I'd also have to implement something in compiler conditionals on the watch side, otherwise I'll never be able to check the functionality after transferring the file...
I'm encountering the same error.