Skip to content

Commit

Permalink
Make UnmaskSecureField respond to dynamic type
Browse files Browse the repository at this point in the history
  • Loading branch information
samglt committed Feb 8, 2025
1 parent e21ca65 commit e8dab0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Swiftfin/Components/UnmaskSecureField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ struct UnmaskSecureField: UIViewRepresentable {
func makeUIView(context: Context) -> UITextField {

let textField = UITextField()
textField.font = UIFont.preferredFont(forTextStyle: .body)
textField.adjustsFontForContentSizeCategory = true
textField.isSecureTextEntry = true
textField.keyboardType = .asciiCapable
textField.placeholder = title
Expand Down

0 comments on commit e8dab0f

Please sign in to comment.