Update post form to use sentence auto-capitalisation
This commit is contained in:
committed by
William Casarin
parent
69d11e1af0
commit
fc71b605be
@@ -74,6 +74,7 @@ struct PostView: View {
|
|||||||
TextEditor(text: $post)
|
TextEditor(text: $post)
|
||||||
.foregroundColor(self.post == POST_PLACEHOLDER ? .gray : .primary)
|
.foregroundColor(self.post == POST_PLACEHOLDER ? .gray : .primary)
|
||||||
.focused($focus)
|
.focused($focus)
|
||||||
|
.textInputAutocapitalization(.sentences)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
handle_post_placeholder()
|
handle_post_placeholder()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user