Post

Replies

Boosts

Views

Activity

Reply to watchOS `transferFile`
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...
Sep ’22
Reply to Custom Modifier Using Text's underline(_:color:)
@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?
Oct ’21
Reply to Xcode says "Running .. on .. Apple Watch" all the time but never runs. Frustrating
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?
Mar ’21