File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public enum AlertViewStyle {
55
55
- [ Swift Package Manager] ( #swift-package-manager )
56
56
- [ CocoaPods] ( #cocoapods )
57
57
- [ SwiftUI] ( #swiftui )
58
+ - [ Present & Dismiss] ( #present-dismiss )
58
59
- [ Customisation] ( #customisation )
59
60
- [ Apps Using] ( #apps-using )
60
61
@@ -119,6 +120,24 @@ alertView.titleLabel.font = UIFont.systemFont(ofSize: 21)
119
120
alertView.titleLabel .textColor = .white
120
121
```
121
122
123
+ ## Present & Dismiss
124
+
125
+ You can present and dismiss alerts manually via view.
126
+
127
+ ``` swift
128
+ let alertView = AlertAppleMusic17View (title : " Added to Library" , subtitle : nil , icon : .done )
129
+ alertView.present (on : self )
130
+
131
+ // and dismiss
132
+ alertView.dismiss ()
133
+ ```
134
+
135
+ For dismiss all alerts that was presented:
136
+
137
+ ``` swift
138
+ AlertKitAPI.dismissAllAlerts ()
139
+ ```
140
+
122
141
## Apps Using
123
142
124
143
<p float =" left " >
You can’t perform that action at this time.
0 commit comments