From 80a22e65e9c4bac55c0ce49f90282a9df89ea779 Mon Sep 17 00:00:00 2001 From: corin8823 Date: Fri, 10 Feb 2017 19:40:15 +0900 Subject: [PATCH] Update podspec and README.md --- Example/Podfile.lock | 4 ++-- Example/Popover/AppDelegate.swift | 2 +- Popover.podspec | 2 +- README.md | 30 ++++++++++++++++-------------- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 1c42446..34c2fc3 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - Popover (1.0.3) + - Popover (1.0.4) DEPENDENCIES: - Popover (from `../`) @@ -9,7 +9,7 @@ EXTERNAL SOURCES: :path: "../" SPEC CHECKSUMS: - Popover: 4546c636aeb712cc3ab8050cfb6d0d2fb6a8086f + Popover: b6999e0625b690f455d0bb031b97ff5f39f33a29 PODFILE CHECKSUM: 6d2f20b0ca605fb4d048b05500bed6d649d9a399 diff --git a/Example/Popover/AppDelegate.swift b/Example/Popover/AppDelegate.swift index 83cbeb2..d564d39 100644 --- a/Example/Popover/AppDelegate.swift +++ b/Example/Popover/AppDelegate.swift @@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { // Override point for customization after application launch. return true } diff --git a/Popover.podspec b/Popover.podspec index 5533e7e..176adaf 100644 --- a/Popover.podspec +++ b/Popover.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Popover" - s.version = "1.0.3" + s.version = "1.0.4" s.summary = "Popover is a balloon library like facebook app. It is written in pure swift." s.homepage = "https://github.com/corin8823" # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" diff --git a/README.md b/README.md index fef3e6a..96e6834 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,11 @@ popover.show(aView, point: startPoint) let width = self.view.frame.width / 4 let aView = UIView(frame: CGRect(x: 0, y: 0, width: width, height: width)) let options = [ - .Type(.Up), - .CornerRadius(width / 2), - .AnimationIn(0.3), - .BlackOverlayColor(UIColor.redColor()), - .ArrowSize(CGSizeZero) + .type(.Up), + .cornerRadius(width / 2), + .animationIn(0.3), + .blackOverlayColor(UIColor.redColor()), + .arrowSize(CGSizeZero) ] as [PopoverOption] let popover = Popover(options: options, showHandler: nil, dismissHandler: nil) popover.show(aView, fromView: self.leftBottomButton) @@ -72,15 +72,17 @@ Popover.swift ## Customization ### Enum -- ``case ArrowSize(CGSize)`` -- ``case AnimationIn(NSTimeInterval)`` -- ``case AnimationOut(NSTimeInterval)`` -- ``case CornerRadius(CGFloat)`` -- ``case SideEdge(CGFloat)`` -- ``case BlackOverlayColor(UIColor)`` -- ``case OverlayBlur(UIBlurEffectStyle)`` -- ``case Type(Popover.PopoverType)`` -- ``case Color(UIColor)`` +- ``case arrowSize(CGSize)`` +- ``case animationIn(NSTimeInterval)`` +- ``case animationOut(NSTimeInterval)`` +- ``case cornerRadius(CGFloat)`` +- ``case sideEdge(CGFloat)`` +- ``case blackOverlayColor(UIColor)`` +- ``case overlayBlur(UIBlurEffectStyle)`` +- ``case type(Popover.PopoverType)`` +- ``case color(UIColor)`` +- ``case dismissOnBlackOverlayTap(Bool)`` +- ``case showBlackOverlay(Bool)`` ### Property - ``arrowSize: CGSize = CGSize(width: 16.0, height: 10.0)``