The UITextView control wrapped in a UIViewRepresentable so that
it can be used with SwiftUI and enhanced to update the text binding
on each text change.
Installation
XCode > File > Swift Packages > Add Package Dependency…
Enter https://github.com/TomasHubelbauer/swiftui-text-view and
instead of version select branch and leave in master.
Updating
XCode > File > Swift Packages > Update to Latest Package Versions…
Testing
After making changes, run swift build to ensure the manifest is
syntactically correct.
SwiftUI TextView
The
UITextView
control wrapped in aUIViewRepresentable
so that it can be used with SwiftUI and enhanced to update the text binding on each text change.Installation
XCode > File > Swift Packages > Add Package Dependency…
Enter
https://github.com/TomasHubelbauer/swiftui-text-view
and instead of version select branch and leave inmaster
.Updating
XCode > File > Swift Packages > Update to Latest Package Versions…
Testing
After making changes, run
swift build
to ensure the manifest is syntactically correct.