Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let marriedStrings = ["미혼", "기혼"]
- ActionSheetStringPicker.show(withTitle: "결혼여부",
- rows: marriedStrings, initialSelection: 0,
- doneBlock: { _, _, value in
- let married = Married(rawValue: marriedStrings.index(of: value))
- self.viewModel.married.value = married
- },
- cancel: nil, origin: sender)
Add Comment
Please, Sign In to add comment