From 77e977edb623973e1be947b6b938e30ac1abb28b Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Sun, 21 Feb 2016 02:19:39 +0900 Subject: [PATCH] fix readme.md --- .../xcschemes/PopupController.xcscheme | 10 -------- README.md | 24 ++++++++++++++++--- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/Example/PopupController.xcodeproj/xcshareddata/xcschemes/PopupController.xcscheme b/Example/PopupController.xcodeproj/xcshareddata/xcschemes/PopupController.xcscheme index 7076b16..18b09d1 100644 --- a/Example/PopupController.xcodeproj/xcshareddata/xcschemes/PopupController.xcscheme +++ b/Example/PopupController.xcodeproj/xcshareddata/xcschemes/PopupController.xcscheme @@ -38,16 +38,6 @@ ReferencedContainer = "container:PopupController.xcodeproj"> - - - - CGSize { - return CGSizeMake(300, 400) // size for a view + return popupSize } } ``` @@ -46,7 +52,9 @@ Then, show popup let anyPopupViewController = AnyPopupViewController() let popupController = PopupController.create(self) popupController.presentPoopupController(anyPopupViewController, completion: nil) -``` +``` + +With some custom. ```swift let popupController = PopupController.create(self) @@ -54,6 +62,16 @@ popupController.animation = .FadeIn popupController.layout = .Top popupController.backgroundStyle = .Blur(style: .Light) popupController.presentPoopupController(childViewController, completion: nil) +``` + +## Customization + +```swift +public var layout: PopupLayout // default is .Center, [.Top/.Center/.Bottom] +public var animation: PopupAnimation // default is .SlideUp, [.Slideup/.FadeIn] +public var backgroundStyle: PopupBackgroundStyle // default is .BlackFilter(alpha: 0.4) [BlackFilter(alpha: CGFloat)/Blur] +public var scrollable: Bool // default is true +public var movesAlongWithKeyboard: Bool // default is true ``` ## License