Skip to content
This repository was archived by the owner on May 6, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Sources/TextView/Coordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ extension TextView.Representable {
extension TextView.Representable.Coordinator {

func update(representable: TextView.Representable) {
textView.attributedText = representable.text
textView.font = representable.font
textView.adjustsFontForContentSizeCategory = true
textView.textColor = representable.foregroundColor
Expand Down
3 changes: 2 additions & 1 deletion Sources/TextView/Representable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ extension TextView {
var onCommit: (() -> Void)?

func makeUIView(context: Context) -> UIKitTextView {
context.coordinator.textView
context.coordinator.textView.attributedText = text
return context.coordinator.textView
}

func updateUIView(_ view: UIKitTextView, context: Context) {
Expand Down