Skip to content

Commit

Permalink
Merge pull request #3 from jcook03266/Dev
Browse files Browse the repository at this point in the history
Merge Dev to Master
  • Loading branch information
jcook03266 authored Jan 6, 2023
2 parents a06d38c + cc00f72 commit b06bf56
Showing 1 changed file with 17 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,46 +134,29 @@ public struct SheathedTextField: View {
if !model.protected {
TextField(placeholderText,
text: model.boundTextEntry)
.foregroundColor(model.textFieldTextColor)
.textInputAutocapitalization(model.textInputAutocapitalization)
.textContentType(model.textContentType)
.keyboardType(model.keyboardType)
.disabled(!model.unsheathed)
.autocorrectionDisabled(model.autoCorrectionDisabled)
.focused($textFieldFocused)
.frame(width: textFieldSize.width,
height: textFieldSize.height)
.padding([.leading],
textFieldLeadingPadding)
.padding([.trailing],
textFieldTrailingPadding)
.submitLabel(model.submitLabel)
.onSubmit {
model.onSubmitAction?()
}
}
else {
SecureField(placeholderText,
text: model.boundTextEntry)
.foregroundColor(model.textFieldTextColor)
.textInputAutocapitalization(model.textInputAutocapitalization)
.textContentType(model.textContentType)
.keyboardType(model.keyboardType)
.disabled(!model.unsheathed)
.autocorrectionDisabled(model.autoCorrectionDisabled)
.focused($textFieldFocused)
.frame(width: textFieldSize.width,
height: textFieldSize.height)
.padding([.leading],
textFieldLeadingPadding)
.padding([.trailing],
textFieldTrailingPadding)
.submitLabel(model.submitLabel)
.onSubmit {
model.onSubmitAction?()
}
}
}
.foregroundColor(model.textFieldTextColor)
.textInputAutocapitalization(model.textInputAutocapitalization)
.textContentType(model.textContentType)
.keyboardType(model.keyboardType)
.disabled(!model.unsheathed)
.autocorrectionDisabled(model.autoCorrectionDisabled)
.focused($textFieldFocused)
.frame(width: textFieldSize.width,
height: textFieldSize.height)
.padding([.leading],
textFieldLeadingPadding)
.padding([.trailing],
textFieldTrailingPadding)
.submitLabel(model.submitLabel)
.onSubmit {
model.onSubmitAction?()
}
}

public var mainContainer: some View {
Expand Down

0 comments on commit b06bf56

Please sign in to comment.