-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The subtitle line gets cut off on iOS banners #67
Comments
break up the text by new line using AlertToast(displayMode: .banner(.pop), type: .systemImage("checkmark.circle.fill", .green), title: "Password Reset Instruction Sent", subTitle: "If you don't receive the email, please ensure the \nemail is correct and check your spam folder.") |
Not always possible if the message is not static or provided from a backend |
I know it's an older issue here without resolution, but I thought of leaving a comment. I had a similar issue that I was facing and I realised that the presenting view of the alertToast can limit it's size and make the content truncate. So for example, if you're doing this Button("title") {
}
.toast(isPresenting ... ) then the chances are the size of the button can have an impact on the AlertToast's size. If your situation is similar, trying moving the VStack {
Button("title") {
}
Spacer()
}
.toast(isPresenting ... ) |
Describe the bug
Banner subtitle line goes off the screen instead of wrapping to the next line on iOS
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The subtitle should wrap to the next line
Screenshots
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: