Post

Replies

Boosts

Views

Activity

Reply to TextEditor with a fixedSize and scroll disabled is completely broken
struct ContentView: View { @State var text = "[This is some long text that will be cut off at the end of the text editor]" var body: some View { Text(text).opacity(0.0).padding() .overlay { TextEditor(text: $text) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Debugging to find out why View is bring re-drawn
struct ContentView: View { @State var text = "[This is some long text that will be cut off at the end of the text editor]" var body: some View { Text(text).opacity(0.0).padding() .overlay { TextEditor(text: $text) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to What's the purpose of Vstack when we actually don't need it ??
Can you show preview images of ContentView with and without VStack?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’24