Zaprogramiacz / GrowingTextView

Growing text view in SwiftUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Growing text view in SwiftUI

Swift: 5.2 SwiftUI

If you are planning to write a messaging feature or you are just a SwiftUI enthusiast, this repository can be interesting for you. SwiftUI doesn't provide us the equivalent of UITextView, so to use it in SwiftUI, you need to write a wrapper. Additionally, UITextView can't have a placeholder. I've made a component that can have a placeholder and grow to a predefined height. I hope that this piece of code will help in your SwiftIU adventure.

preview

About

Growing text view in SwiftUI

License:MIT License


Languages

Language:Swift 100.0%