sparrowcode / AlertKit

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
https://sparrowcode.io/frameworks
MIT License
2.3k stars 130 forks source link

How to Dismiss this? #57

Closed wanmeixx closed 11 months ago

wanmeixx commented 11 months ago

AlertKitAPI.present( title: "...", icon: AlertIcon.spinnerSmall, style: .iOS17AppleMusic, haptic: AlertHaptic.none )

HassanTaleb90 commented 11 months ago

Try this:

let alertView = AlertAppleMusic17View(title: "...", icon: .spinnerSmall)
alertView.haptic = .none
alertView.dismiss()
ivanvorobei commented 11 months ago

Yes, thanks to @HassanTaleb90 !

its exactly like should work. Wrapper is good for fast templates. But with customise use view.