Closed GrosserStuhl closed 1 year ago
Same here, also in title
Title going out of the screen
.
Try Adding <br>
to the text if you're using SwiftUI 3.
Hey @GrosserStuhl , I tried to reproduce the issue on my side with no luck.
As you can see in the picture this very long string does linebreak where it needs to. I'll close this issue for that reason but please keep me updated if you find the cause of this problem. I'm curious.
.toast(isPresenting: $showBannerRegular, duration: 4){
AlertToast(displayMode: .banner(.slide), type: .regular, title: "Welcome! 👋", subTitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", style: .style(backgroundColor: .blue))
}
I'm having this issue here. It was working last 2nd or 1st week of January but now it showing like this.
I'm having this issue here. It was working last 2nd or 1st week of January but now it showing like this.
From previous tests, it might be because you didn't specified width to the view that the toast modifier is on him. Try give him a frame width of even infinity in a vstack and see if it solved.
Usually this problem occurring when there is so width to the view. Generally speaking in SwiftUI I mean.
I added this code and same problem.
ZStack {VStack{ some code.... }.padding(20) .frame(maxWidth: .infinity) .toast(isPresenting: self.$showToast,duration: 5, tapToDismiss: true, alert: { AlertToast(displayMode: .banner(.slide),type: self.toastType, title: self.toastMessage) }, onTap: { some codes... }, completion: { some codes... }) }
I also tried .frame(width: .infinity)
This bug was fixed in 1.3.9. Please check.
Thank you :)
Describe the bug I assume it is a bug and not intention. I cannot present a message that is longer than X characters. I am using a
Banner
type but it seems to behave similar withHUD
too.My assumption was that using a subtitle, it would show multiple lines and the banner would grow bigger in vertical size.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Smartphone (please complete the following information):