Skip to content
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

AlertToast displayMode .hud outside screen bounds #98

Open
nastasiupta opened this issue Nov 4, 2024 · 2 comments
Open

AlertToast displayMode .hud outside screen bounds #98

nastasiupta opened this issue Nov 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nastasiupta
Copy link

.toast(isPresenting: $showToast) { AlertToast(displayMode: .hud, type: .regular, title: .init(localized: toastConfiguration?.text ?? "")) }

For display mode as alert, the AlertToast looks fine, but for displayMode as .hud, the text is outside the screen bounds:
alert:
IMG_0918

hud:
IMG_0915

@nastasiupta nastasiupta added the bug Something isn't working label Nov 4, 2024
@IntuzAnkurV
Copy link

IntuzAnkurV commented Nov 19, 2024

I am also face this for displayMode as .hud, the text is outside the screen bounds:
alert:
.toast(isPresenting: $isValidating) {
AlertToast(displayMode: .hud,
type: .error(.errorRed),
title: error,subTitle: "this is messgae for error show and testing for long message proper display",
style: .style(backgroundColor: nil, titleColor: nil, subTitleColor: nil, titleFont: .system(size: 12), subTitleFont: nil))
}
I need help with how to solve this. just i need to title and subtitle make 2 line

Screenshot 2024-11-19 at 14 25 56

@IntuzAnkurV
Copy link

Any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants