Relative Content

Tag Archive for iosswiftswiftui

Circular icon on share sheet header

I wish to display different icons on share sheet header. The default icon is app icon which is square with rounded rectangle. This looks good and as expected. However if I have a circular icon, then the icon shows up with white square background with circular icon on it.

Swift UI Toast Animation Freezing on frequent tapping

I’m new to swift and swift UI. I’ve created a ToastView struct. I have another View which is EventView and I’ll validate data there also so if there is a validation error I’ll show a toast. As I’m new to this I donot know much about what happening behind the scenes. Here is my issue, I have submit button when i tap that button multiple times quickly the toast stays there or like frozen state. I have noticed that this is occuring when I’m using animation.