Skip to content

Text does not wrap when isScrollingEnabled is set to false #7

@mattmaddux

Description

@mattmaddux

If you write a long line with the following view...

struct TestView: View {
    
    @State var text: String = ""
    @State var isEditing: Bool = false
    
    var body: some View {
        TextView(text: $text, isEditing: $isEditing, isScrollingEnabled: false)
    }
    
}

...the text won't wrap and view keeps getting wider.

But if you just change it back to true...

struct TestView: View {
    
    @State var text: String = ""
    @State var isEditing: Bool = false
    
    var body: some View {
        TextView(text: $text, isEditing: $isEditing, isScrollingEnabled: true)
    }
    
}

...it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions