TOActionSheet icon indicating copy to clipboard operation
TOActionSheet copied to clipboard

Problem with button if title not setted

Open kirillrybin opened this issue 7 years ago • 0 comments

Hello. I have installed TOActionSheet via CocoaPods

With title (1 button + 1 Destructive button)

OK

let actionSheet = TOActionSheet(title: "Choose an action")!
actionSheet.style = .light
actionSheet.contentstyle = .default
actionSheet.addButton(withTitle: "Rename", tappedBlock: { print("rename") })
actionSheet.addDestructiveButton(withTitle: "Delete", tappedBlock: { print("delete") })
actionSheet.show(from: sender, in: self.navigationController?.view)

screen shot 2018-05-15 at 17 25 17

Without title (1 button + 1 Destructive button)

Not OK

let actionSheet = TOActionSheet(style: .light)!
actionSheet.contentstyle = .default
actionSheet.addButton(withTitle: "Rename", tappedBlock: { print("rename") })
actionSheet.addDestructiveButton(withTitle: "Delete", tappedBlock: { print("delete") })
actionSheet.show(from: sender, in: self.navigationController?.view)

screen shot 2018-05-15 at 17 24 02

Without title (2 buttons + 1 Destructive button)

OK

actionSheet.contentstyle = .default
actionSheet.addButton(withTitle: "Rename", tappedBlock: { print("rename") })
actionSheet.addButton(withTitle: "Move", tappedBlock: { print("move") })
actionSheet.addDestructiveButton(withTitle: "Delete", tappedBlock: { print("delete") })
actionSheet.show(from: sender, in: self.navigationController?.view)

screen shot 2018-05-15 at 17 32 36

kirillrybin avatar May 15 '18 14:05 kirillrybin