Skip to content

v0.9.0

Compare
Choose a tag to compare
@tasanobu-zz tasanobu-zz released this 10 Sep 05:54
· 25 commits to master since this release
  • Add a method to AlertController in order to configure properties of UIAlertController.popoverPresentationController

    The following sample is to show an action sheet by specifying the properties of UIPopoverPresentationController with the newly added method AlertBuilder.setPopoverPresentationProperties()

    AlertBuilder(title: "Question", message: "Are you sure where Kamagari is?", preferredStyle: .ActionSheet)
    .addAction(title: "YES", style: .Default) { _ in }
    .addAction(title: "Not Sure", style: .Default) { _ in }
    .setPopoverPresentationProperties(sourceView: view, sourceRect: CGRectMake(0, 0, 100, 100), barButtonItem: nil, permittedArrowDirections: .Any)
    .build()
    .kam_show(animated: true)