This library is now deprecated in favour of a more complete and SwiftUI friendly TextEditor
backport:
https://github.com/shaps80/SwiftUIBackports
See it in action here: https://twitter.com/shaps/status/1654972428286668800?s=20
This library is now deprecated in favour of a more complete and SwiftUI friendly TextEditor
backport:
https://github.com/shaps80/SwiftUIBackports
See it in action here: https://twitter.com/shaps/status/1654972428286668800?s=20
this amazing- thanks for sharing
Now worries, thanks!
there is error , in these code
var placeholderView: some View { Group { if isEmpty { Text(title) .foregroundColor(.secondary) .multilineTextAlignment(placeholderAlignment) .font(placeholderFont) } } }
Return type of property 'placeholderView' requires that 'Group' conform to 'View'
@X901 actually that should be using a view builder anyway, updated, thanks!
@X901 actually that should be using a view builder anyway, updated, thanks!
Thank you
This is an excellent UITextView wrapper 🙌 Thank you
@vikdenic thanks! Glad you found it useful 👍
REALLY GREAT!
I've attempted this myself and had the hardest time with the sizing. It would always run off the edges, and the height wouldn't be respected by the parent view. (My primary use case for this type of multi-line editing is in a Form, where scrolling is disabled and the "cell" should self-size. )
It appears the key to solving my horizontal sizing issue is setting the contentCompressionResistance being "low," (which I don't understand). The solution to the vertical issue is then solvable as you've done (although I don't really get why the frame(minheight:maxHeight) works...)
Anyway, huge thanks!
You’re welcome. Glad you found it useful!
this amazing- thanks for sharing