Skip to content

Commit

Permalink
fix: remove line limit
Browse files Browse the repository at this point in the history
  • Loading branch information
El-Fitz committed Jan 24, 2025
1 parent a0f4db3 commit 98f111a
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,25 @@ package struct AuthenticationIdentityInputView: View {
}
Text(L10n.Authentication.Identity.Input.body)
.wireTextStyle(.body1)
.lineLimit(nil)
LabeledTextField(
isMandatory: false,
placeholder: L10n.Authentication.Identity.Input.Field.placeholder,
title: L10n.Authentication.Identity.Input.Field.title,
string: $identity
)
.lineLimit(nil)
Button(action: {
actionCallback(.submit(identity: identity))
}, label: {
Text(L10n.Authentication.Identity.Input.submit)
.lineLimit(nil)
})
.wireButtonStyle(.primary)
Text(AttributedString.markdown(from: L10n.Authentication.Identity.Input.terms(termsURL.absoluteString)))
.multilineTextAlignment(.center)
.wireTextStyle(.subline1)
.lineLimit(nil)
}
}
}
Expand All @@ -79,5 +83,23 @@ struct AuthenticationIdentityInputPreview: View {
}

#Preview {
AuthenticationIdentityInputPreview()
BackgroundView()
.overlay {
VStack(spacing: 0) {
Spacer()
.frame(maxHeight: .infinity)
if #available(iOS 16.4, *) {
ScrollView(.vertical) {
AuthenticationIdentityInputPreview()
}
.background()
.scrollBounceBehavior(.basedOnSize)
} else {
ScrollView(.vertical) {
AuthenticationIdentityInputPreview()
}
.background()
}
}
}
}

0 comments on commit 98f111a

Please sign in to comment.