Skip to content

Commit 5406bdb

Browse files
authored
Fix crash when selecting an Alert on Native iOS Event Form (#2006)
1 parent 83e691c commit 5406bdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Example/Example/Controllers/NativeEventExample.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ class NativeEventFormViewController : FormViewController {
152152
$0.value = .Never
153153
$0.options = EventAlert.allCases
154154
}
155-
row.section?.insert(second, at: row.indexPath!.row + 1)
155+
let secondIndex = row.indexPath!.row + 1
156+
row.section?.insert(second, at: secondIndex)
156157
return
157158
}
158159
}

0 commit comments

Comments
 (0)