elai950 / AlertToast

Create Apple-like alerts & toasts using SwiftUI
https://elai950.github.io/AlertToast/
MIT License
2.08k stars 187 forks source link

Background opacity of View when AlertToast type hud #42

Closed toseefkhilji closed 1 year ago

toseefkhilji commented 2 years ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like I required to set my View should dim background when AlertToast type hud presented.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context I want to achieve something like below Screenshot 2021-02-18 at 11 07 59

egehankalayci commented 2 years ago

41

You can use this repository for this feature. alert-dismiss-mode-and-background

elai950 commented 1 year ago

Hey @toseefkhilji , You can achieve this kind of design when adding the style parameter and changing the background color.

AlertToast(displayMode: .alert, type: .regular, title: "Hello World!", style: .style(backgroundColor: .white))
toseefkhilji commented 1 year ago

@elai950 : Thanks