Skip to content

Commit

Permalink
Try fix profile editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 3, 2023
1 parent b446dd3 commit 94f953d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@
}
}
.font(Font.system(.caption2, design: .monospaced))
.autocorrectionDisabled()
.autocorrectionDisabled(true)
// https://stackoverflow.com/questions/66721935/swiftui-how-to-disable-the-smart-quotes-in-texteditor
// https://stackoverflow.com/questions/74034171/textfield-with-autocorrectiondisabled-still-shows-predictive-text-bar
.textContentType(.init(rawValue: ""))
#if os(iOS)
.keyboardType(.asciiCapable)
.textInputAutocapitalization(.none)
.background(Color(UIColor.secondarySystemGroupedBackground))
#elseif os(macOS)
Expand Down

0 comments on commit 94f953d

Please sign in to comment.