[
  {
    "path": ".gitignore",
    "content": "./build/\n./build-test/\nxcuserdata/\n*.xccheckout\n*.gcno\n"
  },
  {
    "path": "CustomizableActionSheet/CustomizableActionSheet.h",
    "content": "//\n//  CustomizableActionSheet.h\n//  CustomizableActionSheet\n//\n//  Created by beryu on 2016/04/22.\n//  Copyright © 2016年 blk. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for CustomizableActionSheet.\nFOUNDATION_EXPORT double CustomizableActionSheetVersionNumber;\n\n//! Project version string for CustomizableActionSheet.\nFOUNDATION_EXPORT const unsigned char CustomizableActionSheetVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <CustomizableActionSheet/PublicHeader.h>\n\n\n"
  },
  {
    "path": "CustomizableActionSheet/CustomizableActionSheet.swift",
    "content": "//\n//  CustomizableActionSheet.swift\n//  CustomizableActionSheet\n//\n//  Created by Ryuta Kibe on 2015/12/22.\n//  Copyright 2015 blk. All rights reserved.\n//\n\nimport UIKit\n\n@objc public enum CustomizableActionSheetItemType: Int {\n  case button\n  case view\n}\n\n// Can't define CustomizableActionSheetItem as struct because Obj-C can't see struct definition.\npublic class CustomizableActionSheetItem: NSObject {\n\n  // MARK: - Public properties\n  public var type: CustomizableActionSheetItemType = .button\n  public var height: CGFloat = CustomizableActionSheetItem.kDefaultHeight\n  public static let kDefaultHeight: CGFloat = 44\n\n  // type = .View\n  public var view: UIView?\n\n  // type = .Button\n  public var label: String?\n  public var textColor: UIColor = UIColor(red: 0, green: 0.47, blue: 1.0, alpha: 1.0)\n  public var backgroundColor: UIColor = UIColor.white\n  public var font: UIFont? = nil\n  public var selectAction: ((_ actionSheet: CustomizableActionSheet) -> Void)? = nil\n\n  // MARK: - Private properties\n  fileprivate var element: UIView? = nil\n\n  public convenience init(type: CustomizableActionSheetItemType,\n                          height: CGFloat = CustomizableActionSheetItem.kDefaultHeight) {\n    self.init()\n\n    self.type = type\n    self.height = height\n  }\n}\n\nprivate class ActionSheetItemView: UIView {\n  var subview: UIView?\n\n  required init(coder aDecoder: NSCoder) {\n    super.init(coder: aDecoder)!\n    self.setting()\n  }\n\n  override init(frame: CGRect) {\n    super.init(frame: frame)\n    self.setting()\n  }\n\n  init() {\n    super.init(frame: CGRect.zero)\n    self.setting()\n  }\n\n  func setting() {\n    self.clipsToBounds = true\n  }\n\n  override func addSubview(_ view: UIView) {\n    super.addSubview(view)\n    self.subview = view\n  }\n\n  override func layoutSubviews() {\n    super.layoutSubviews()\n    if let subview = self.subview {\n      subview.frame = self.bounds\n    }\n  }\n}\n\n@objc public enum CustomizableActionSheetPosition: Int {\n  case bottom\n  case top\n}\n\npublic class CustomizableActionSheet: NSObject {\n\n  // MARK: - Private properties\n\n  private static var actionSheets = [CustomizableActionSheet]()\n  private static let kMarginSide: CGFloat = 8\n  private static let kItemInterval: CGFloat = 8\n  private static let kMarginTop: CGFloat = 20\n  private var items: [CustomizableActionSheetItem]?\n  private let maskView = UIView()\n  private let itemContainerView = UIView()\n  private var closeBlock: (() -> Void)?\n\n  // MARK: - Public properties\n\n  public var defaultCornerRadius: CGFloat = 4\n  public var position: CustomizableActionSheetPosition = .bottom\n  public func showInView(_ targetView: UIView, items: [CustomizableActionSheetItem], closeBlock: (() -> Void)? = nil) {\n    // Save instance to reaction until closing this sheet\n    CustomizableActionSheet.actionSheets.append(self)\n\n    let targetBounds = targetView.bounds\n\n    // Save closeBlock\n    self.closeBlock = closeBlock\n\n    // mask view\n    let maskViewTapGesture = UITapGestureRecognizer(target: self, action: #selector(CustomizableActionSheet.maskViewWasTapped))\n    self.maskView.addGestureRecognizer(maskViewTapGesture)\n    self.maskView.frame = targetBounds\n    self.maskView.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.5)\n    targetView.addSubview(self.maskView)\n\n    // set items\n    for subview in self.itemContainerView.subviews {\n      subview.removeFromSuperview()\n    }\n    var currentPosition: CGFloat = 0\n    let safeAreaLeft: CGFloat\n    let safeAreaWidth: CGFloat\n    let safeAreaTop: CGFloat\n    let safeAreaBottom: CGFloat\n    if #available(iOS 11.0, *) {\n      safeAreaLeft = targetView.safeAreaInsets.left\n      safeAreaWidth = targetView.safeAreaLayoutGuide.layoutFrame.width\n      safeAreaTop = targetView.safeAreaInsets.top\n      safeAreaBottom = targetView.safeAreaInsets.bottom\n    } else {\n      safeAreaLeft = 0\n      safeAreaWidth = targetBounds.width\n      safeAreaTop = CustomizableActionSheet.kMarginTop\n      safeAreaBottom = 0\n    }\n    var availableHeight = targetBounds.height - safeAreaTop - safeAreaBottom\n\n    // Calculate height of items\n    for item in items {\n      availableHeight = availableHeight - item.height - CustomizableActionSheet.kItemInterval\n    }\n\n    for item in items {\n      // Apply height of items\n      if availableHeight < 0 {\n        let reduceNum = min(item.height, -availableHeight)\n        item.height -= reduceNum\n        availableHeight += reduceNum\n\n        if item.height <= 0 {\n          availableHeight += CustomizableActionSheet.kItemInterval\n          continue\n        }\n      }\n\n      // Add views\n      switch (item.type) {\n      case .button:\n        let button = UIButton()\n        button.layer.cornerRadius = defaultCornerRadius\n        button.frame = CGRect(\n          x: CustomizableActionSheet.kMarginSide,\n          y: currentPosition,\n          width: safeAreaWidth - (CustomizableActionSheet.kMarginSide * 2),\n          height: item.height)\n        button.setTitle(item.label, for: UIControl.State())\n        button.backgroundColor = item.backgroundColor\n        button.setTitleColor(item.textColor, for: UIControl.State())\n        if let font = item.font {\n          button.titleLabel?.font = font\n        }\n        if let _ = item.selectAction {\n          button.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(CustomizableActionSheet.buttonWasTapped(_:))))\n        }\n        item.element = button\n        self.itemContainerView.addSubview(button)\n        currentPosition = currentPosition + item.height + CustomizableActionSheet.kItemInterval\n      case .view:\n        if let view = item.view {\n          let containerView = ActionSheetItemView(frame: CGRect(\n            x: CustomizableActionSheet.kMarginSide,\n            y: currentPosition,\n            width: safeAreaWidth - (CustomizableActionSheet.kMarginSide * 2),\n            height: item.height))\n          containerView.layer.cornerRadius = defaultCornerRadius\n          containerView.addSubview(view)\n          view.frame = view.bounds\n          self.itemContainerView.addSubview(containerView)\n          item.element = view\n          currentPosition = currentPosition + item.height + CustomizableActionSheet.kItemInterval\n        }\n      }\n    }\n    let positionX: CGFloat = safeAreaLeft\n    var positionY: CGFloat = targetBounds.minY + targetBounds.height - currentPosition - safeAreaBottom\n    var moveY: CGFloat = positionY\n    if self.position == .top {\n      positionY = CustomizableActionSheet.kItemInterval\n      moveY = -currentPosition\n    }\n    self.itemContainerView.frame = CGRect(\n      x: positionX,\n      y: positionY,\n      width: safeAreaWidth,\n      height: currentPosition)\n    self.items = items\n\n    // Show animation\n    self.maskView.alpha = 0\n    targetView.addSubview(self.itemContainerView)\n    self.itemContainerView.transform = CGAffineTransform(translationX: 0, y: moveY)\n    UIView.animate(withDuration: 0.4,\n      delay: 0,\n      usingSpringWithDamping: 1,\n      initialSpringVelocity: 0,\n      options: .curveEaseOut,\n      animations: { () -> Void in\n        self.maskView.alpha = 1\n        self.itemContainerView.transform = CGAffineTransform.identity\n      }, completion: nil)\n  }\n\n  public func dismiss() {\n    guard let targetView = self.itemContainerView.superview else {\n        return\n    }\n\n    // Hide animation\n    self.maskView.alpha = 1\n    var moveY: CGFloat = targetView.bounds.height - self.itemContainerView.frame.origin.y\n    if self.position == .top {\n      moveY = -self.itemContainerView.frame.height\n    }\n    UIView.animate(withDuration: 0.2,\n      delay: 0,\n      usingSpringWithDamping: 1,\n      initialSpringVelocity: 0,\n      options: .curveEaseOut,\n      animations: { () -> Void in\n        self.maskView.alpha = 0\n        self.itemContainerView.transform = CGAffineTransform(translationX: 0, y: moveY)\n      }) { (result: Bool) -> Void in\n        // Remove views\n        self.itemContainerView.removeFromSuperview()\n        self.maskView.removeFromSuperview()\n\n        // Remove this instance\n        for i in 0 ..< CustomizableActionSheet.actionSheets.count {\n          if CustomizableActionSheet.actionSheets[i] == self {\n            CustomizableActionSheet.actionSheets.remove(at: i)\n            break\n          }\n        }\n\n        self.closeBlock?()\n    }\n  }\n\n  // MARK: - Private methods\n\n  @objc private func maskViewWasTapped() {\n    self.dismiss()\n  }\n\n  @objc private func buttonWasTapped(_ sender: AnyObject) {\n    guard let items = self.items else {\n      return\n    }\n    for item in items {\n      guard\n        let element = item.element,\n        let gestureRecognizer = sender as? UITapGestureRecognizer else {\n          continue\n      }\n      if element == gestureRecognizer.view {\n        item.selectAction?(self)\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "CustomizableActionSheet/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>FMWK</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0.8</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(CURRENT_PROJECT_VERSION)</string>\n\t<key>NSPrincipalClass</key>\n\t<string></string>\n</dict>\n</plist>\n"
  },
  {
    "path": "CustomizableActionSheet.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name = \"CustomizableActionSheet\"\n  s.version = \"1.2.3\"\n  s.summary = \"Action sheet allows including your custom views and buttons.\"\n  s.homepage = \"https://github.com/beryu/CustomizableActionSheet\"\n  s.screenshots = \"https://github.com/beryu/CustomizableActionSheet/raw/master/assets/screenshot1.png\"\n  s.license = { :type => \"MIT\", :file => \"LICENSE\" }\n  s.author = { \"Ryuta Kibe\" => \"beryu@blk.jp\" }\n  s.social_media_url = \"https://twitter.com/beryu\"\n  s.platform = :ios\n  s.ios.deployment_target = \"8.0\"\n  s.source = { :git => \"https://github.com/beryu/CustomizableActionSheet.git\", :tag => s.version }\n  s.source_files = \"Source/*\"\n  s.requires_arc = true\nend\n\n"
  },
  {
    "path": "CustomizableActionSheet.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t87B8409D1C27F3C100C84DCE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87B8409C1C27F3C100C84DCE /* AppDelegate.swift */; };\n\t\t87B8409F1C27F3C100C84DCE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87B8409E1C27F3C100C84DCE /* ViewController.swift */; };\n\t\t87B840A21C27F3C100C84DCE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 87B840A01C27F3C100C84DCE /* Main.storyboard */; };\n\t\t87B840A41C27F3C100C84DCE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 87B840A31C27F3C100C84DCE /* Assets.xcassets */; };\n\t\t87B840A71C27F3C100C84DCE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 87B840A51C27F3C100C84DCE /* LaunchScreen.storyboard */; };\n\t\t8825BEE41CCA5E4B00F7A17D /* CustomizableActionSheet.h in Headers */ = {isa = PBXBuildFile; fileRef = 8825BEE31CCA5E4B00F7A17D /* CustomizableActionSheet.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t8825BEE81CCA5E4B00F7A17D /* CustomizableActionSheet.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8825BEE11CCA5E4B00F7A17D /* CustomizableActionSheet.framework */; };\n\t\t8825BEE91CCA5E4B00F7A17D /* CustomizableActionSheet.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8825BEE11CCA5E4B00F7A17D /* CustomizableActionSheet.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\t8825BEEF1CCA5E8400F7A17D /* CustomizableActionSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8825BEEE1CCA5E8400F7A17D /* CustomizableActionSheet.swift */; };\n\t\t88FFDA211C30269D00FCBFF3 /* SampleView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 88FFDA201C30269D00FCBFF3 /* SampleView.xib */; };\n\t\t88FFDA231C3031F200FCBFF3 /* SampleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88FFDA221C3031F200FCBFF3 /* SampleView.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t8825BEE61CCA5E4B00F7A17D /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 87B840911C27F3C100C84DCE /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 8825BEE01CCA5E4B00F7A17D;\n\t\t\tremoteInfo = CustomizableActionSheet;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t8825BEED1CCA5E4B00F7A17D /* Embed Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\t8825BEE91CCA5E4B00F7A17D /* CustomizableActionSheet.framework in Embed Frameworks */,\n\t\t\t);\n\t\t\tname = \"Embed Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t87B840991C27F3C100C84DCE /* CustomizableActionSheetDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomizableActionSheetDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t87B8409C1C27F3C100C84DCE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t87B8409E1C27F3C100C84DCE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = \"<group>\"; };\n\t\t87B840A11C27F3C100C84DCE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t87B840A31C27F3C100C84DCE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t87B840A61C27F3C100C84DCE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t87B840A81C27F3C100C84DCE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t8825BEE11CCA5E4B00F7A17D /* CustomizableActionSheet.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CustomizableActionSheet.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t8825BEE31CCA5E4B00F7A17D /* CustomizableActionSheet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CustomizableActionSheet.h; sourceTree = \"<group>\"; };\n\t\t8825BEE51CCA5E4B00F7A17D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t8825BEEE1CCA5E8400F7A17D /* CustomizableActionSheet.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomizableActionSheet.swift; sourceTree = \"<group>\"; };\n\t\t88FFDA201C30269D00FCBFF3 /* SampleView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SampleView.xib; sourceTree = \"<group>\"; };\n\t\t88FFDA221C3031F200FCBFF3 /* SampleView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SampleView.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t87B840961C27F3C100C84DCE /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t8825BEE81CCA5E4B00F7A17D /* CustomizableActionSheet.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t8825BEDD1CCA5E4B00F7A17D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t87B840901C27F3C100C84DCE = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t87B8409B1C27F3C100C84DCE /* CustomizableActionSheetDemo */,\n\t\t\t\t8825BEE21CCA5E4B00F7A17D /* CustomizableActionSheet */,\n\t\t\t\t87B8409A1C27F3C100C84DCE /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t87B8409A1C27F3C100C84DCE /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t87B840991C27F3C100C84DCE /* CustomizableActionSheetDemo.app */,\n\t\t\t\t8825BEE11CCA5E4B00F7A17D /* CustomizableActionSheet.framework */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t87B8409B1C27F3C100C84DCE /* CustomizableActionSheetDemo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t87B8409C1C27F3C100C84DCE /* AppDelegate.swift */,\n\t\t\t\t87B8409E1C27F3C100C84DCE /* ViewController.swift */,\n\t\t\t\t87B840A01C27F3C100C84DCE /* Main.storyboard */,\n\t\t\t\t87B840A31C27F3C100C84DCE /* Assets.xcassets */,\n\t\t\t\t87B840A51C27F3C100C84DCE /* LaunchScreen.storyboard */,\n\t\t\t\t87B840A81C27F3C100C84DCE /* Info.plist */,\n\t\t\t\t88FFDA201C30269D00FCBFF3 /* SampleView.xib */,\n\t\t\t\t88FFDA221C3031F200FCBFF3 /* SampleView.swift */,\n\t\t\t);\n\t\t\tpath = CustomizableActionSheetDemo;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t8825BEE21CCA5E4B00F7A17D /* CustomizableActionSheet */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t8825BEEE1CCA5E8400F7A17D /* CustomizableActionSheet.swift */,\n\t\t\t\t8825BEE31CCA5E4B00F7A17D /* CustomizableActionSheet.h */,\n\t\t\t\t8825BEE51CCA5E4B00F7A17D /* Info.plist */,\n\t\t\t);\n\t\t\tpath = CustomizableActionSheet;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXHeadersBuildPhase section */\n\t\t8825BEDE1CCA5E4B00F7A17D /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t8825BEE41CCA5E4B00F7A17D /* CustomizableActionSheet.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXHeadersBuildPhase section */\n\n/* Begin PBXNativeTarget section */\n\t\t87B840981C27F3C100C84DCE /* CustomizableActionSheetDemo */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 87B840AB1C27F3C100C84DCE /* Build configuration list for PBXNativeTarget \"CustomizableActionSheetDemo\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t87B840951C27F3C100C84DCE /* Sources */,\n\t\t\t\t87B840961C27F3C100C84DCE /* Frameworks */,\n\t\t\t\t87B840971C27F3C100C84DCE /* Resources */,\n\t\t\t\t8825BEED1CCA5E4B00F7A17D /* Embed Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t8825BEE71CCA5E4B00F7A17D /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = CustomizableActionSheetDemo;\n\t\t\tproductName = CustomizableActionSheet;\n\t\t\tproductReference = 87B840991C27F3C100C84DCE /* CustomizableActionSheetDemo.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t8825BEE01CCA5E4B00F7A17D /* CustomizableActionSheet */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 8825BEEA1CCA5E4B00F7A17D /* Build configuration list for PBXNativeTarget \"CustomizableActionSheet\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t8825BEDC1CCA5E4B00F7A17D /* Sources */,\n\t\t\t\t8825BEDD1CCA5E4B00F7A17D /* Frameworks */,\n\t\t\t\t8825BEDE1CCA5E4B00F7A17D /* Headers */,\n\t\t\t\t8825BEDF1CCA5E4B00F7A17D /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = CustomizableActionSheet;\n\t\t\tproductName = CustomizableActionSheet;\n\t\t\tproductReference = 8825BEE11CCA5E4B00F7A17D /* CustomizableActionSheet.framework */;\n\t\t\tproductType = \"com.apple.product-type.framework\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t87B840911C27F3C100C84DCE /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0730;\n\t\t\t\tLastUpgradeCheck = 0800;\n\t\t\t\tORGANIZATIONNAME = blk;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t87B840981C27F3C100C84DCE = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.2;\n\t\t\t\t\t\tLastSwiftMigration = 0800;\n\t\t\t\t\t};\n\t\t\t\t\t8825BEE01CCA5E4B00F7A17D = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.3;\n\t\t\t\t\t\tLastSwiftMigration = 0900;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 87B840941C27F3C100C84DCE /* Build configuration list for PBXProject \"CustomizableActionSheet\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 87B840901C27F3C100C84DCE;\n\t\t\tproductRefGroup = 87B8409A1C27F3C100C84DCE /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t87B840981C27F3C100C84DCE /* CustomizableActionSheetDemo */,\n\t\t\t\t8825BEE01CCA5E4B00F7A17D /* CustomizableActionSheet */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t87B840971C27F3C100C84DCE /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t88FFDA211C30269D00FCBFF3 /* SampleView.xib in Resources */,\n\t\t\t\t87B840A71C27F3C100C84DCE /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t87B840A41C27F3C100C84DCE /* Assets.xcassets in Resources */,\n\t\t\t\t87B840A21C27F3C100C84DCE /* Main.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t8825BEDF1CCA5E4B00F7A17D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t87B840951C27F3C100C84DCE /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t88FFDA231C3031F200FCBFF3 /* SampleView.swift in Sources */,\n\t\t\t\t87B8409F1C27F3C100C84DCE /* ViewController.swift in Sources */,\n\t\t\t\t87B8409D1C27F3C100C84DCE /* AppDelegate.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t8825BEDC1CCA5E4B00F7A17D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t8825BEEF1CCA5E8400F7A17D /* CustomizableActionSheet.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t8825BEE71CCA5E4B00F7A17D /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 8825BEE01CCA5E4B00F7A17D /* CustomizableActionSheet */;\n\t\t\ttargetProxy = 8825BEE61CCA5E4B00F7A17D /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t87B840A01C27F3C100C84DCE /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t87B840A11C27F3C100C84DCE /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t87B840A51C27F3C100C84DCE /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t87B840A61C27F3C100C84DCE /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t87B840A91C27F3C100C84DCE /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t87B840AA1C27F3C100C84DCE /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Owholemodule\";\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t87B840AC1C27F3C100C84DCE /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = \"Brand Assets\";\n\t\t\t\tDEVELOPMENT_TEAM = \"\";\n\t\t\t\tINFOPLIST_FILE = CustomizableActionSheetDemo/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = jp.blk.CustomizableActionSheetDemo;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t87B840AD1C27F3C100C84DCE /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = \"Brand Assets\";\n\t\t\t\tDEVELOPMENT_TEAM = \"\";\n\t\t\t\tINFOPLIST_FILE = CustomizableActionSheetDemo/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = jp.blk.CustomizableActionSheetDemo;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t8825BEEB1CCA5E4B00F7A17D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = CustomizableActionSheet/Info.plist;\n\t\t\t\tINSTALL_PATH = \"$(LOCAL_LIBRARY_DIR)/Frameworks\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = jp.blk.CustomizableActionSheet;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_SWIFT3_OBJC_INFERENCE = On;\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t\tVERSION_INFO_PREFIX = \"\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t8825BEEC1CCA5E4B00F7A17D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = CustomizableActionSheet/Info.plist;\n\t\t\t\tINSTALL_PATH = \"$(LOCAL_LIBRARY_DIR)/Frameworks\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = jp.blk.CustomizableActionSheet;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tSWIFT_SWIFT3_OBJC_INFERENCE = On;\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t\tVERSION_INFO_PREFIX = \"\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t87B840941C27F3C100C84DCE /* Build configuration list for PBXProject \"CustomizableActionSheet\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t87B840A91C27F3C100C84DCE /* Debug */,\n\t\t\t\t87B840AA1C27F3C100C84DCE /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t87B840AB1C27F3C100C84DCE /* Build configuration list for PBXNativeTarget \"CustomizableActionSheetDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t87B840AC1C27F3C100C84DCE /* Debug */,\n\t\t\t\t87B840AD1C27F3C100C84DCE /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t8825BEEA1CCA5E4B00F7A17D /* Build configuration list for PBXNativeTarget \"CustomizableActionSheet\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t8825BEEB1CCA5E4B00F7A17D /* Debug */,\n\t\t\t\t8825BEEC1CCA5E4B00F7A17D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 87B840911C27F3C100C84DCE /* Project object */;\n}\n"
  },
  {
    "path": "CustomizableActionSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:CustomizableActionSheet.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "CustomizableActionSheet.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "CustomizableActionSheet.xcodeproj/xcshareddata/xcschemes/CustomizableActionSheet.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0800\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"8825BEE01CCA5E4B00F7A17D\"\n               BuildableName = \"CustomizableActionSheet.framework\"\n               BlueprintName = \"CustomizableActionSheet\"\n               ReferencedContainer = \"container:CustomizableActionSheet.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"8825BEE01CCA5E4B00F7A17D\"\n            BuildableName = \"CustomizableActionSheet.framework\"\n            BlueprintName = \"CustomizableActionSheet\"\n            ReferencedContainer = \"container:CustomizableActionSheet.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"8825BEE01CCA5E4B00F7A17D\"\n            BuildableName = \"CustomizableActionSheet.framework\"\n            BlueprintName = \"CustomizableActionSheet\"\n            ReferencedContainer = \"container:CustomizableActionSheet.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "CustomizableActionSheetDemo/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  CustomizableActionSheet\n//\n//  Created by Ryuta Kibe on 2015/12/21.\n//  Copyright © 2015年 blk. All rights reserved.\n//\n\nimport UIKit\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    var window: UIWindow?\n\n\n    private func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {\n        // Override point for customization after application launch.\n        return true\n    }\n\n    func applicationWillResignActive(_ application: UIApplication) {\n        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n    }\n\n    func applicationDidEnterBackground(_ application: UIApplication) {\n        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n    }\n\n    func applicationWillEnterForeground(_ application: UIApplication) {\n        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n    }\n\n    func applicationDidBecomeActive(_ application: UIApplication) {\n        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n    }\n\n    func applicationWillTerminate(_ application: UIApplication) {\n        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n    }\n\n\n}\n\n"
  },
  {
    "path": "CustomizableActionSheetDemo/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"ios-marketing\",\n      \"size\" : \"1024x1024\",\n      \"scale\" : \"1x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "CustomizableActionSheetDemo/Assets.xcassets/Brand Assets.launchimage/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"extent\" : \"full-screen\",\n      \"minimum-system-version\" : \"8.0\",\n      \"subtype\" : \"736h\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"extent\" : \"full-screen\",\n      \"minimum-system-version\" : \"8.0\",\n      \"subtype\" : \"667h\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"extent\" : \"full-screen\",\n      \"minimum-system-version\" : \"7.0\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"extent\" : \"full-screen\",\n      \"minimum-system-version\" : \"7.0\",\n      \"subtype\" : \"retina4\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "CustomizableActionSheetDemo/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "CustomizableActionSheetDemo/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"9531\" systemVersion=\"15C50\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"9529\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Llm-lL-Icb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xb3-aO-Qok\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "CustomizableActionSheetDemo/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"11201\" systemVersion=\"15G31\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11161\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"ViewController\" customModule=\"CustomizableActionSheetDemo\" customModuleProvider=\"target\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3Vm-1d-32x\">\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"44\" id=\"oHm-TU-gl6\"/>\n                                    <constraint firstAttribute=\"width\" constant=\"300\" id=\"yjW-Mq-kaH\"/>\n                                </constraints>\n                                <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                <state key=\"normal\" title=\"Select color\"/>\n                                <connections>\n                                    <action selector=\"buttonShowWasTapped\" destination=\"BYZ-38-t0r\" eventType=\"touchUpInside\" id=\"tD7-co-OYf\"/>\n                                </connections>\n                            </button>\n                        </subviews>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                        <constraints>\n                            <constraint firstItem=\"3Vm-1d-32x\" firstAttribute=\"centerX\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"centerX\" id=\"RZu-15-nBG\"/>\n                            <constraint firstItem=\"3Vm-1d-32x\" firstAttribute=\"centerY\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"centerY\" id=\"bZd-tU-npe\"/>\n                        </constraints>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"317\" y=\"429\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "CustomizableActionSheetDemo/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0.8</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "CustomizableActionSheetDemo/SampleView.swift",
    "content": "//\n//  SampleView.swift\n//  CustomizableActionSheet\n//\n//  Created by beryu on 2015/12/27.\n//  Copyright © 2015年 blk. All rights reserved.\n//\n\nimport UIKit\n\n@objc protocol SampleViewDelegate {\n  func setColor(color: UIColor)\n}\n\nclass SampleView: UIView {\n  weak var delegate: SampleViewDelegate?\n  \n  @IBAction func color1WasTapped() {\n    self.delegate?.setColor(color: UIColor(red: 0.89, green: 0.59, blue: 0.59, alpha: 1))\n  }\n  \n  @IBAction func color2WasTapped() {\n    self.delegate?.setColor(color: UIColor(red: 0.88, green: 0.84, blue: 0.58, alpha: 1))\n  }\n  \n  @IBAction func color3WasTapped() {\n    self.delegate?.setColor(color: UIColor(red: 0.81, green: 0.89, blue: 0.58, alpha: 1))\n  }\n  \n  @IBAction func color4WasTapped() {\n    self.delegate?.setColor(color: UIColor(red: 0.58, green: 0.89, blue: 0.73, alpha: 1))\n  }\n  \n  @IBAction func color5WasTapped() {\n    self.delegate?.setColor(color: UIColor(red: 0.58, green: 0.78, blue: 0.89, alpha: 1))\n  }\n}\n"
  },
  {
    "path": "CustomizableActionSheetDemo/SampleView.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"11201\" systemVersion=\"15G31\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11161\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\" customClass=\"SampleView\" customModule=\"CustomizableActionSheetDemo\" customModuleProvider=\"target\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"Set color\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"EdZ-0p-uai\">\n                    <constraints>\n                        <constraint firstAttribute=\"height\" constant=\"40\" id=\"bFh-MX-gka\"/>\n                    </constraints>\n                    <fontDescription key=\"fontDescription\" name=\"Arial-BoldMT\" family=\"Arial\" pointSize=\"15\"/>\n                    <color key=\"textColor\" red=\"0.33333333333333331\" green=\"0.33333333333333331\" blue=\"0.33333333333333331\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"yAg-gW-tYs\">\n                    <subviews>\n                        <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"NFN-Un-Ueo\">\n                            <color key=\"backgroundColor\" red=\"0.89411764705882346\" green=\"0.59607843137254901\" blue=\"0.59215686274509804\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                            <constraints>\n                                <constraint firstAttribute=\"width\" constant=\"44\" id=\"eHM-bg-Awh\"/>\n                                <constraint firstAttribute=\"height\" constant=\"44\" id=\"fPw-Uh-gtM\"/>\n                            </constraints>\n                            <connections>\n                                <action selector=\"color1WasTapped\" destination=\"iN0-l3-epB\" eventType=\"touchUpInside\" id=\"GEY-Tc-Fpl\"/>\n                            </connections>\n                        </button>\n                        <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"WV1-mg-w81\">\n                            <color key=\"backgroundColor\" red=\"0.88627450980392153\" green=\"0.84313725490196079\" blue=\"0.58039215686274503\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                            <constraints>\n                                <constraint firstAttribute=\"width\" constant=\"44\" id=\"QPQ-Yt-eYa\"/>\n                                <constraint firstAttribute=\"height\" constant=\"44\" id=\"TS2-7v-p3H\"/>\n                            </constraints>\n                            <connections>\n                                <action selector=\"color2WasTapped\" destination=\"iN0-l3-epB\" eventType=\"touchUpInside\" id=\"rdc-NQ-23e\"/>\n                            </connections>\n                        </button>\n                        <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5s7-b0-S3M\">\n                            <color key=\"backgroundColor\" red=\"0.81568627450980391\" green=\"0.8901960784313725\" blue=\"0.58039215686274503\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                            <constraints>\n                                <constraint firstAttribute=\"height\" constant=\"44\" id=\"2L8-RN-dvp\"/>\n                                <constraint firstAttribute=\"width\" constant=\"44\" id=\"wah-Ar-gID\"/>\n                            </constraints>\n                            <connections>\n                                <action selector=\"color3WasTapped\" destination=\"iN0-l3-epB\" eventType=\"touchUpInside\" id=\"M51-b6-nOC\"/>\n                            </connections>\n                        </button>\n                        <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"yiT-CS-ZLL\">\n                            <color key=\"backgroundColor\" red=\"0.58823529411764708\" green=\"0.8901960784313725\" blue=\"0.73725490196078436\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                            <constraints>\n                                <constraint firstAttribute=\"width\" constant=\"44\" id=\"bxR-dg-33J\"/>\n                                <constraint firstAttribute=\"height\" constant=\"44\" id=\"vWe-hQ-JXC\"/>\n                            </constraints>\n                            <connections>\n                                <action selector=\"color4WasTapped\" destination=\"iN0-l3-epB\" eventType=\"touchUpInside\" id=\"Fmc-K3-XJ0\"/>\n                            </connections>\n                        </button>\n                        <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"a1r-ur-6Xl\">\n                            <color key=\"backgroundColor\" red=\"0.58823529411764708\" green=\"0.78823529411764703\" blue=\"0.8901960784313725\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                            <constraints>\n                                <constraint firstAttribute=\"width\" constant=\"44\" id=\"G7I-KK-Uas\"/>\n                                <constraint firstAttribute=\"height\" constant=\"44\" id=\"Q6G-uE-r8v\"/>\n                            </constraints>\n                            <connections>\n                                <action selector=\"color5WasTapped\" destination=\"iN0-l3-epB\" eventType=\"touchUpInside\" id=\"HVb-Ey-5Do\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                    <constraints>\n                        <constraint firstItem=\"WV1-mg-w81\" firstAttribute=\"leading\" secondItem=\"NFN-Un-Ueo\" secondAttribute=\"trailing\" constant=\"8\" id=\"E4K-hq-oft\"/>\n                        <constraint firstItem=\"yiT-CS-ZLL\" firstAttribute=\"top\" secondItem=\"yAg-gW-tYs\" secondAttribute=\"top\" id=\"GvR-5K-OhB\"/>\n                        <constraint firstItem=\"WV1-mg-w81\" firstAttribute=\"top\" secondItem=\"yAg-gW-tYs\" secondAttribute=\"top\" id=\"LHe-L1-kSF\"/>\n                        <constraint firstItem=\"yiT-CS-ZLL\" firstAttribute=\"leading\" secondItem=\"5s7-b0-S3M\" secondAttribute=\"trailing\" constant=\"8\" id=\"RA9-Er-Zd2\"/>\n                        <constraint firstAttribute=\"width\" constant=\"260\" id=\"Xwm-Gg-vBX\"/>\n                        <constraint firstItem=\"a1r-ur-6Xl\" firstAttribute=\"leading\" secondItem=\"yiT-CS-ZLL\" secondAttribute=\"trailing\" constant=\"8\" id=\"a2G-PB-4af\"/>\n                        <constraint firstItem=\"5s7-b0-S3M\" firstAttribute=\"top\" secondItem=\"yAg-gW-tYs\" secondAttribute=\"top\" id=\"ecj-It-Y4e\"/>\n                        <constraint firstItem=\"5s7-b0-S3M\" firstAttribute=\"leading\" secondItem=\"WV1-mg-w81\" secondAttribute=\"trailing\" constant=\"8\" id=\"gSQ-lI-Cmr\"/>\n                        <constraint firstItem=\"NFN-Un-Ueo\" firstAttribute=\"top\" secondItem=\"yAg-gW-tYs\" secondAttribute=\"top\" id=\"ib5-WR-nTI\"/>\n                        <constraint firstAttribute=\"height\" constant=\"44\" id=\"p0q-hF-Cwo\"/>\n                        <constraint firstItem=\"NFN-Un-Ueo\" firstAttribute=\"leading\" secondItem=\"yAg-gW-tYs\" secondAttribute=\"leading\" id=\"uaT-3J-0ro\"/>\n                        <constraint firstItem=\"a1r-ur-6Xl\" firstAttribute=\"top\" secondItem=\"yAg-gW-tYs\" secondAttribute=\"top\" id=\"vVL-tm-yXV\"/>\n                    </constraints>\n                </view>\n            </subviews>\n            <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n            <constraints>\n                <constraint firstItem=\"EdZ-0p-uai\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" id=\"1rE-sM-pbg\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"EdZ-0p-uai\" secondAttribute=\"trailing\" id=\"Tow-b9-c1c\"/>\n                <constraint firstItem=\"yAg-gW-tYs\" firstAttribute=\"centerX\" secondItem=\"iN0-l3-epB\" secondAttribute=\"centerX\" id=\"lEY-d4-QDZ\"/>\n                <constraint firstItem=\"EdZ-0p-uai\" firstAttribute=\"top\" secondItem=\"iN0-l3-epB\" secondAttribute=\"top\" id=\"llj-dQ-3UR\"/>\n                <constraint firstItem=\"yAg-gW-tYs\" firstAttribute=\"top\" secondItem=\"EdZ-0p-uai\" secondAttribute=\"bottom\" id=\"uXi-B4-J2y\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "CustomizableActionSheetDemo/ViewController.swift",
    "content": "//\n//  ViewController.swift\n//  CustomizableActionSheet\n//\n//  Created by Ryuta Kibe on 2015/12/21.\n//  Copyright © 2015年 blk. All rights reserved.\n//\n\nimport UIKit\nimport CustomizableActionSheet\n\nclass ViewController: UIViewController {\n\n  var actionSheet: CustomizableActionSheet?\n\n  override func viewDidLoad() {\n    super.viewDidLoad()\n  }\n\n  override func didReceiveMemoryWarning() {\n    super.didReceiveMemoryWarning()\n    // Dispose of any resources that can be recreated.\n  }\n\n  @IBAction func buttonShowWasTapped() {\n    var items = [CustomizableActionSheetItem]()\n\n    // First view\n    if let sampleView = UINib(nibName: \"SampleView\", bundle: nil).instantiate(withOwner: self, options: nil)[0] as? SampleView {\n      sampleView.delegate = self\n      let sampleViewItem = CustomizableActionSheetItem(type: .view, height: 100)\n      sampleViewItem.view = sampleView\n      items.append(sampleViewItem)\n    }\n\n    // Second button\n    let clearItem = CustomizableActionSheetItem(type: .button)\n    clearItem.label = \"Clear color\"\n    clearItem.backgroundColor = UIColor(red: 1, green: 0.41, blue: 0.38, alpha: 1)\n    clearItem.textColor = UIColor.white\n    clearItem.selectAction = { (actionSheet: CustomizableActionSheet) -> Void in\n      self.view.backgroundColor = UIColor.white\n      actionSheet.dismiss()\n    }\n    items.append(clearItem)\n\n    // Third button\n    let closeItem = CustomizableActionSheetItem(type: .button)\n    closeItem.label = \"Close\"\n    closeItem.textColor = UIColor(red: 0.4, green: 0.4, blue: 0.4, alpha: 1)\n    closeItem.selectAction = { (actionSheet: CustomizableActionSheet) -> Void in\n      actionSheet.dismiss()\n    }\n    items.append(closeItem)\n\n    let actionSheet = CustomizableActionSheet()\n    self.actionSheet = actionSheet\n    actionSheet.showInView(self.view, items: items)\n  }\n}\n\nextension ViewController: SampleViewDelegate {\n  func setColor(color: UIColor) {\n    if let actionSheet = self.actionSheet {\n      actionSheet.dismiss()\n    }\n    self.view.backgroundColor = color\n  }\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 Ryuta Kibe (beryu@blk.jp)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# CustomizableActionSheet\n![Platform](https://cocoapod-badges.herokuapp.com/p/CustomizableActionSheet/badge.svg)\n![License](https://img.shields.io/cocoapods/l/CustomizableActionSheet.svg?style=flat)\n![CocoaPods](https://cocoapod-badges.herokuapp.com/v/CustomizableActionSheet/badge.svg)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nAction sheet allows including your custom views and buttons.\n\n![screenshot2](./assets/screenshot2.gif)\n\n## Installation\n\n### CocoaPods\n\n1. Edit your Podfile:\n\n\t```ruby\n\tpod 'CustomizableActionSheet'\n\t```\n\n2. Run `pod install`\n\n#### Carthage\n\n1. Edit your Cartfile:\n\n\t```\n\tgithub \"beryu/CustomizableActionSheet\"\n\t```\n\n2. Run `carthage update`\n\nfor more info, see [Carthage](https://github.com/carthage/carthage)\n\n### Manually\n\nAdd the [CustomizableActionSheet.swift](https://github.com/beryu/CustomizableActionSheet/blob/master/Source/CustomizableActionSheet.swift) file to your project.\n\n## Usage\n\n```swift\nvar items = [CustomizableActionSheetItem]()\n\n// Setup custom view\nif let sampleView = UINib(nibName: \"SampleView\", bundle: nil).instantiateWithOwner(self, options: nil)[0] as? SampleView {\n  let sampleViewItem = CustomizableActionSheetItem()\n  sampleViewItem.type = .view\n  sampleViewItem.view = sampleView\n  sampleViewItem.height = 100\n  items.append(sampleViewItem)\n}\n\n// Setup button\nlet closeItem = CustomizableActionSheetItem()\ncloseItem.type = .button\ncloseItem.label = \"Close\"\ncloseItem.selectAction = { (actionSheet: CustomizableActionSheet) -> Void in\n  actionSheet.dismiss()\n}\nitems.append(closeItem)\n\n// Show\nlet actionSheet = CustomizableActionSheet()\nactionSheet.showInView(self.view, items: items)\n```\n\nYou can change the positioning of the action sheet from the bottom to the top of the view as follows:\n\n```swift\nactionSheet.position = .top\n```\n\nNOTE: If you have installed via CocoaPods, please import `CustomizableActionSheet` like below.\n\n```swift\nimport CustomizableActionSheet\n```\n\n## Requirements\n* Swift4.0\n* iOS 8.0\n* ARC\n\nIf you want to use even iOS7.0, please to import the code directly.\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2015 Ryuta Kibe (beryu@blk.jp)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "Source/CustomizableActionSheet.swift",
    "content": "//\n//  CustomizableActionSheet.swift\n//  CustomizableActionSheet\n//\n//  Created by Ryuta Kibe on 2015/12/22.\n//  Copyright 2015 blk. All rights reserved.\n//\n\nimport UIKit\n\n@objc public enum CustomizableActionSheetItemType: Int {\n  case button\n  case view\n}\n\n// Can't define CustomizableActionSheetItem as struct because Obj-C can't see struct definition.\npublic class CustomizableActionSheetItem: NSObject {\n\n  // MARK: - Public properties\n  public var type: CustomizableActionSheetItemType = .button\n  public var height: CGFloat = CustomizableActionSheetItem.kDefaultHeight\n  public static let kDefaultHeight: CGFloat = 44\n\n  // type = .View\n  public var view: UIView?\n\n  // type = .Button\n  public var label: String?\n  public var textColor: UIColor = UIColor(red: 0, green: 0.47, blue: 1.0, alpha: 1.0)\n  public var backgroundColor: UIColor = UIColor.white\n  public var font: UIFont? = nil\n  public var selectAction: ((_ actionSheet: CustomizableActionSheet) -> Void)? = nil\n\n  // MARK: - Private properties\n  fileprivate var element: UIView? = nil\n\n  public convenience init(type: CustomizableActionSheetItemType,\n                          height: CGFloat = CustomizableActionSheetItem.kDefaultHeight) {\n    self.init()\n\n    self.type = type\n    self.height = height\n  }\n}\n\nprivate class ActionSheetItemView: UIView {\n  var subview: UIView?\n\n  required init(coder aDecoder: NSCoder) {\n    super.init(coder: aDecoder)!\n    self.setting()\n  }\n\n  override init(frame: CGRect) {\n    super.init(frame: frame)\n    self.setting()\n  }\n\n  init() {\n    super.init(frame: CGRect.zero)\n    self.setting()\n  }\n\n  func setting() {\n    self.clipsToBounds = true\n  }\n\n  override func addSubview(_ view: UIView) {\n    super.addSubview(view)\n    self.subview = view\n  }\n\n  override func layoutSubviews() {\n    super.layoutSubviews()\n    if let subview = self.subview {\n      subview.frame = self.bounds\n    }\n  }\n}\n\n@objc public enum CustomizableActionSheetPosition: Int {\n  case bottom\n  case top\n}\n\npublic class CustomizableActionSheet: NSObject {\n\n  // MARK: - Private properties\n\n  private static var actionSheets = [CustomizableActionSheet]()\n  private static let kMarginSide: CGFloat = 8\n  private static let kItemInterval: CGFloat = 8\n  private static let kMarginTop: CGFloat = 20\n  private var items: [CustomizableActionSheetItem]?\n  private let maskView = UIView()\n  private let itemContainerView = UIView()\n  private var closeBlock: (() -> Void)?\n\n  // MARK: - Public properties\n\n  public var defaultCornerRadius: CGFloat = 4\n  public var position: CustomizableActionSheetPosition = .bottom\n  public func showInView(_ targetView: UIView, items: [CustomizableActionSheetItem], closeBlock: (() -> Void)? = nil) {\n    // Save instance to reaction until closing this sheet\n    CustomizableActionSheet.actionSheets.append(self)\n\n    let targetBounds = targetView.bounds\n\n    // Save closeBlock\n    self.closeBlock = closeBlock\n\n    // mask view\n    let maskViewTapGesture = UITapGestureRecognizer(target: self, action: #selector(CustomizableActionSheet.maskViewWasTapped))\n    self.maskView.addGestureRecognizer(maskViewTapGesture)\n    self.maskView.frame = targetBounds\n    self.maskView.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.5)\n    targetView.addSubview(self.maskView)\n\n    // set items\n    for subview in self.itemContainerView.subviews {\n      subview.removeFromSuperview()\n    }\n    var currentPosition: CGFloat = 0\n    let safeAreaLeft: CGFloat\n    let safeAreaWidth: CGFloat\n    let safeAreaTop: CGFloat\n    let safeAreaBottom: CGFloat\n    if #available(iOS 11.0, *) {\n      safeAreaLeft = targetView.safeAreaInsets.left\n      safeAreaWidth = targetView.safeAreaLayoutGuide.layoutFrame.width\n      safeAreaTop = targetView.safeAreaInsets.top\n      safeAreaBottom = targetView.safeAreaInsets.bottom\n    } else {\n      safeAreaLeft = 0\n      safeAreaWidth = targetBounds.width\n      safeAreaTop = CustomizableActionSheet.kMarginTop\n      safeAreaBottom = 0\n    }\n    var availableHeight = targetBounds.height - safeAreaTop - safeAreaBottom\n\n    // Calculate height of items\n    for item in items {\n      availableHeight = availableHeight - item.height - CustomizableActionSheet.kItemInterval\n    }\n\n    for item in items {\n      // Apply height of items\n      if availableHeight < 0 {\n        let reduceNum = min(item.height, -availableHeight)\n        item.height -= reduceNum\n        availableHeight += reduceNum\n\n        if item.height <= 0 {\n          availableHeight += CustomizableActionSheet.kItemInterval\n          continue\n        }\n      }\n\n      // Add views\n      switch (item.type) {\n      case .button:\n        let button = UIButton()\n        button.layer.cornerRadius = defaultCornerRadius\n        button.frame = CGRect(\n          x: CustomizableActionSheet.kMarginSide,\n          y: currentPosition,\n          width: safeAreaWidth - (CustomizableActionSheet.kMarginSide * 2),\n          height: item.height)\n        button.setTitle(item.label, for: UIControl.State())\n        button.backgroundColor = item.backgroundColor\n        button.setTitleColor(item.textColor, for: UIControl.State())\n        if let font = item.font {\n          button.titleLabel?.font = font\n        }\n        if let _ = item.selectAction {\n          button.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(CustomizableActionSheet.buttonWasTapped(_:))))\n        }\n        item.element = button\n        self.itemContainerView.addSubview(button)\n        currentPosition = currentPosition + item.height + CustomizableActionSheet.kItemInterval\n      case .view:\n        if let view = item.view {\n          let containerView = ActionSheetItemView(frame: CGRect(\n            x: CustomizableActionSheet.kMarginSide,\n            y: currentPosition,\n            width: safeAreaWidth - (CustomizableActionSheet.kMarginSide * 2),\n            height: item.height))\n          containerView.layer.cornerRadius = defaultCornerRadius\n          containerView.addSubview(view)\n          view.frame = view.bounds\n          self.itemContainerView.addSubview(containerView)\n          item.element = view\n          currentPosition = currentPosition + item.height + CustomizableActionSheet.kItemInterval\n        }\n      }\n    }\n    let positionX: CGFloat = safeAreaLeft\n    var positionY: CGFloat = targetBounds.minY + targetBounds.height - currentPosition - safeAreaBottom\n    var moveY: CGFloat = positionY\n    if self.position == .top {\n      positionY = CustomizableActionSheet.kItemInterval\n      moveY = -currentPosition\n    }\n    self.itemContainerView.frame = CGRect(\n      x: positionX,\n      y: positionY,\n      width: safeAreaWidth,\n      height: currentPosition)\n    self.items = items\n\n    // Show animation\n    self.maskView.alpha = 0\n    targetView.addSubview(self.itemContainerView)\n    self.itemContainerView.transform = CGAffineTransform(translationX: 0, y: moveY)\n    UIView.animate(withDuration: 0.4,\n      delay: 0,\n      usingSpringWithDamping: 1,\n      initialSpringVelocity: 0,\n      options: .curveEaseOut,\n      animations: { () -> Void in\n        self.maskView.alpha = 1\n        self.itemContainerView.transform = CGAffineTransform.identity\n      }, completion: nil)\n  }\n\n  public func dismiss() {\n    guard let targetView = self.itemContainerView.superview else {\n        return\n    }\n\n    // Hide animation\n    self.maskView.alpha = 1\n    var moveY: CGFloat = targetView.bounds.height - self.itemContainerView.frame.origin.y\n    if self.position == .top {\n      moveY = -self.itemContainerView.frame.height\n    }\n    UIView.animate(withDuration: 0.2,\n      delay: 0,\n      usingSpringWithDamping: 1,\n      initialSpringVelocity: 0,\n      options: .curveEaseOut,\n      animations: { () -> Void in\n        self.maskView.alpha = 0\n        self.itemContainerView.transform = CGAffineTransform(translationX: 0, y: moveY)\n      }) { (result: Bool) -> Void in\n        // Remove views\n        self.itemContainerView.removeFromSuperview()\n        self.maskView.removeFromSuperview()\n\n        // Remove this instance\n        for i in 0 ..< CustomizableActionSheet.actionSheets.count {\n          if CustomizableActionSheet.actionSheets[i] == self {\n            CustomizableActionSheet.actionSheets.remove(at: i)\n            break\n          }\n        }\n\n        self.closeBlock?()\n    }\n  }\n\n  // MARK: - Private methods\n\n  @objc private func maskViewWasTapped() {\n    self.dismiss()\n  }\n\n  @objc private func buttonWasTapped(_ sender: AnyObject) {\n    guard let items = self.items else {\n      return\n    }\n    for item in items {\n      guard\n        let element = item.element,\n        let gestureRecognizer = sender as? UITapGestureRecognizer else {\n          continue\n      }\n      if element == gestureRecognizer.view {\n        item.selectAction?(self)\n      }\n    }\n  }\n}\n"
  }
]