Post

Replies

Boosts

Views

Activity

Comment on Custom Modifier Using Text's underline(_:color:)
This does not seem to work with @State inside the TextModifier implementation. e.g. something like: 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()       }   } } Do you have any idea why that would be the case?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Comment on Xcode 13 vim mode documentation?
It seems like "." is not repeating the last command.
Replies
Boosts
Views
Activity
Sep ’21
Comment on Custom Modifier Using Text's underline(_:color:)
This does not seem to work with @State inside the TextModifier implementation. e.g. something like: 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()       }   } } Do you have any idea why that would be the case?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Custom Modifier Using Text's underline(_:color:)
Wow, sorry for that horrible formatting. I didn't know that comments don't do newlines...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Memory leak in SwiftUI environment on Xcode 14.1 ?
Thank you! Somehow I thought I already checked that. I shouldn't post "bugs" late at night 😓
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22