Comments (5)
I imported the library in my real project and now it works like it should. I'll still leave the issue opened for now since it might be a real bug.
from alerttoast.
I also had the same issue. I don't know how it was fixed automatically. Anyways, you can try displayMode: .hud
in the AlertToast()
Settings. Then Check if it works.
from alerttoast.
I am currently having this same issue
edit: Okay I found that presenting them from a view inside a sheet causes this, if they are used on a regular view they work fine
edit: Okay it still happens.. sometimes. lol
from alerttoast.
I had this issue also. I had the toast on a button, but the issue was fixed after moving it to a VStack.
It seems to depends on how big the view is. If the view is too small then it seems to cause this issue.
from alerttoast.
Hey @BenocxX ,
This problem happens because the toast view depends on its parent size.
If you take the code you wrote here, and before the toast modifier add .frame(maxWidth: .infinity)
you'll see that the issue is fixed.
In SwiftUI you can't oversize the view from his parent, so make sure that your view width is enough.
from alerttoast.
Related Issues (20)
- Swipe to dismiss toast HOT 1
- If type is .loading, its background parent view is still clickable HOT 2
- No toast! Have implemented per instructions, but the AlertToast() does not respond with any visualisation. Have traced that it gets called, but nothing happens on screen. - Xcode 14.2, SwiftUI, iOS 16.2, Simulator and physical device. HOT 1
- Long Subtitle text doesn't correctly wrap in DisplayMode "hub" or "banner" HOT 6
- Toast Window Not Large Enough On MacOS: The text gets truncated and replaced with "..."
- Popover cuts off `.hud` alert HOT 5
- Create Example Project HOT 1
- The subtitle line gets cut off on iOS banners HOT 1
- Not usable as global modifier when sheet is presented HOT 7
- Is there any way to set the toast always on the top of screen, instead of on the center of view HOT 1
- System image not being displayed when AlertToast added to a package.
- Issue: App Clip compiler error HOT 1
- Toast can be invisible under the software keyboard HOT 1
- Add accessibilityIdentifier to retrieve alert while testing
- Alert Toast (.hud display mode) large text not fit to the screen HOT 2
- Is there a way to add on any views like system Alert?
- [Feature Request] Vision OS Support HOT 1
- Privacy Manifest HOT 3
- Need an interface to feed in a localized string to title/subtitle
- toast is not close
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alerttoast.