sparrowcode / AlertKit

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.

Home Page:https://sparrowcode.io/frameworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add abillity to control alert duration

boserup opened this issue · comments

It would be neat if it was possible to specify the duration of the the alert when presenting it. Right now the duration property is only available in the view, and not the AlertKitAPI wrapping class.

Context:

AlertKitAPI.present(
    title: "Oops",
    subtitle: error?.localizedDescription,
    icon: .error,
    style: .iOS17AppleMusic,
    haptic: .error
)