Skip to content

Instantly share code, notes, and snippets.

View alexjameslittle's full-sized avatar
🎯
Focusing

Alex little alexjameslittle

🎯
Focusing
  • Lapse
  • London, UK
View GitHub Profile
struct TextViewWrapper: UIViewRepresentable {
@Binding var text: String
func makeUIView(context: Context) -> UITextView {
let textView = UITextView()
textView.delegate = context.coordinator
// CUSTOMISE APPEARANCE OF TEXTVIEW HERE (NOT IN SWIFTUI)
po visibleDates.monthDates
▿ 7 elements
▿ 0 : 2 elements
▿ date : 2020-03-29 00:00:00 +0000
- timeIntervalSinceReferenceDate : 607132800.0
▿ indexPath : 2 elements
- 0 : 4
- 1 : 0
▿ 1 : 2 elements
▿ date : 2020-03-29 23:00:00 +0000