Skip to content

Commit

Permalink
Fixed placeholder click because of allowsHitTesting breaking in the n…
Browse files Browse the repository at this point in the history
…ewest SwiftUI update
  • Loading branch information
kenmueller committed Apr 11, 2020
1 parent 9495a49 commit 41eb93b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/TextView/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ public struct TextView: View {
height: geometry.size.height,
alignment: self.placeholderAlignment
)
.allowsHitTesting(false)
.onTapGesture {
self.isEditing = true
}
}
}
}
Expand Down

0 comments on commit 41eb93b

Please sign in to comment.