You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,16 +106,21 @@ See [Alert.swift](https://github.com/AntonPoltoratskyi/NativeUI/blob/master/Nati
106
106
When you need to present few alerts in a row you should set `shouldDismissAutomatically` flag to `false` and add action AFTER view controller initialization to be able to capture alert instance in action handler's closure.
107
107
108
108
```swift
109
-
let cancelAction = Alert.Action(title: "Cancel", style: .primary)
110
109
111
110
let viewModel =Alert(
112
111
title: "Your Title",
113
-
message: "Your Message",
114
-
actions: [cancelAction]
112
+
message: "Your Message"
115
113
)
116
114
let alert =AlertViewController(viewModel: viewModel)
0 commit comments