Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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