From b54c67eb16dac3a7579d0002dc4b70d2f9218ab1 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 16:48:07 -0800 Subject: [PATCH 01/14] adding podfile --- .gitignore | 28 ++++++++++++++++++++++++++++ Examples/Simple/.DS_Store | Bin 6148 -> 6148 bytes SSASideMenu.podspec | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .gitignore create mode 100644 SSASideMenu.podspec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2b55ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ + +## Other +*.moved-aside +*.xccheckout +*.xcscmblueprint + + +9 +down vote +**/.DS_Store \ No newline at end of file diff --git a/Examples/Simple/.DS_Store b/Examples/Simple/.DS_Store index d283e3a074d52a75f29a346bdc3bedf67066a62c..bfdda45b376750a8e815b90e473b02c248af99c7 100644 GIT binary patch delta 28 icmZoMXffC@pNaX6=#I(nnCvD$VB!X`H@{;N69oXMQwu== delta 28 icmZoMXffC@pNTnm*Vf7JnCvD$VB!X`H@{;N69oXM5eriQ diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec new file mode 100644 index 0000000..19efd17 --- /dev/null +++ b/SSASideMenu.podspec @@ -0,0 +1,14 @@ +Pod::Spec.new do |s| + s.name = "SSASideMenu" + s.version = "1.0.0" + s.summary = "iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app." + s.homepage = "https://github.com/mbalex99/SSASideMenu.git" + s.license = { :type => "MIT", :file => "LICENSE" } + s.author = { "Maximilian Alexander" => "mbalex99@gmail.com" } + s.social_media_url = "https://twitter.com/dekatotoro" + s.platform = :ios + s.ios.deployment_target = "8.0" + s.source = { :git => "https://github.com/mbalex99/SSASideMenu.git", :tag => "1.0.0" } + s.source_files = "SSASideMenu/*" + s.requires_arc = true +end \ No newline at end of file From d68b36ce7bc5930b8cb25339a29bcc1d9884ac2b Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 16:49:23 -0800 Subject: [PATCH 02/14] adding gitignore --- .gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitignore b/.gitignore index e2b55ca..8ade383 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,4 @@ xcuserdata/ *.xccheckout *.xcscmblueprint - -9 -down vote **/.DS_Store \ No newline at end of file From 25a6a62cd7a1ee16502f30329a67eba579ad6059 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 16:55:06 -0800 Subject: [PATCH 03/14] making overrides and inits public --- SSASideMenu/SSASideMenu.swift | 50 +++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index 5dca8de..7af7495 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -9,9 +9,9 @@ import Foundation import UIKit -extension UIViewController { +public extension UIViewController { - var sideMenuViewController: SSASideMenu? { + public var sideMenuViewController: SSASideMenu? { get { return getSideViewController(self) } @@ -28,19 +28,19 @@ extension UIViewController { return nil } - @IBAction func presentLeftMenuViewController() { + @IBAction public func presentLeftMenuViewController() { sideMenuViewController?._presentLeftMenuViewController() } - @IBAction func presentRightMenuViewController() { + @IBAction public func presentRightMenuViewController() { sideMenuViewController?._presentRightMenuViewController() } } -@objc protocol SSASideMenuDelegate { +@objc public protocol SSASideMenuDelegate { optional func sideMenuDidRecognizePanGesture(sideMenu: SSASideMenu, recongnizer: UIPanGestureRecognizer) optional func sideMenuWillShowMenuViewController(sideMenu: SSASideMenu, menuViewController: UIViewController) @@ -50,19 +50,19 @@ extension UIViewController { } -class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { +public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { - enum SSASideMenuPanDirection: Int { + public enum SSASideMenuPanDirection: Int { case Edge = 0 case EveryWhere = 1 } - enum SSASideMenuType: Int { + public enum SSASideMenuType: Int { case Scale = 0 case Slip = 1 } - enum SSAStatusBarStyle: Int { + public enum SSAStatusBarStyle: Int { case Hidden = 0 case Black = 1 case Light = 2 @@ -73,7 +73,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { case Right = 1 } - struct ContentViewShadow { + public struct ContentViewShadow { var enabled: Bool = true var color: UIColor = UIColor.blackColor() @@ -91,7 +91,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - struct MenuViewEffect { + public struct MenuViewEffect { var fade: Bool = true var scale: Bool = true @@ -111,7 +111,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - struct ContentViewEffect { + public struct ContentViewEffect { var alpha: Float = 1.0 var scale: Float = 0.7 @@ -133,7 +133,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - struct SideMenuOptions { + public struct SideMenuOptions { var animationDuration: Float = 0.35 var panGestureEnabled: Bool = true @@ -264,7 +264,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - var contentViewController: UIViewController? { + public var contentViewController: UIViewController? { willSet { setupViewController(contentViewContainer, targetViewController: newValue) } @@ -279,7 +279,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - var leftMenuViewController: UIViewController? { + public var leftMenuViewController: UIViewController? { willSet { setupViewController(menuViewContainer, targetViewController: newValue) } @@ -292,7 +292,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - var rightMenuViewController: UIViewController? { + public var rightMenuViewController: UIViewController? { willSet { setupViewController(menuViewContainer, targetViewController: newValue) } @@ -308,7 +308,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { // MARK : Initializers - required init?(coder aDecoder: NSCoder) { + public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } @@ -598,7 +598,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { // MARK : ViewController life cycle - override func awakeFromNib() { + public override func awakeFromNib() { super.awakeFromNib() if iOS8 { @@ -617,7 +617,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } - override func viewDidLoad() { + public override func viewDidLoad() { super.viewDidLoad() view.autoresizingMask = [.FlexibleWidth, .FlexibleHeight] @@ -807,7 +807,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { // MARK : View Controller Rotation handler - override func shouldAutorotate() -> Bool { + public override func shouldAutorotate() -> Bool { if let cntViewController = contentViewController { @@ -817,7 +817,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } - override func willAnimateRotationToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation, duration: NSTimeInterval) { + public override func willAnimateRotationToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation, duration: NSTimeInterval) { if visible { @@ -861,7 +861,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { // MARK : Status Bar Appearance Management - override func preferredStatusBarStyle() -> UIStatusBarStyle { + public override func preferredStatusBarStyle() -> UIStatusBarStyle { var style: UIStatusBarStyle @@ -882,7 +882,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } - override func prefersStatusBarHidden() -> Bool { + public override func prefersStatusBarHidden() -> Bool { var statusBarHidden: Bool @@ -901,7 +901,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } - override func preferredStatusBarUpdateAnimation() -> UIStatusBarAnimation { + public override func preferredStatusBarUpdateAnimation() -> UIStatusBarAnimation { var statusBarAnimation: UIStatusBarAnimation = .None @@ -935,7 +935,7 @@ class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { // MARK : UIGestureRecognizer Delegate (Private) - func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldReceiveTouch touch: UITouch) -> Bool { + public func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldReceiveTouch touch: UITouch) -> Bool { if interactivePopGestureRecognizerEnabled, let viewController = contentViewController as? UINavigationController From 45b9f41142f0510d17cd86f51a626a0b3d36490a Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 16:55:22 -0800 Subject: [PATCH 04/14] public init --- SSASideMenu/SSASideMenu.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index 7af7495..56bee52 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -312,7 +312,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { super.init(coder: aDecoder) } - override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) { + public override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } From 47e2ca82ccc6c8017737b20a4d7ea7ae2ce4b11f Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 16:56:10 -0800 Subject: [PATCH 05/14] public inits --- SSASideMenu/SSASideMenu.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index 56bee52..4e41855 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -316,20 +316,20 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } - convenience init(contentViewController: UIViewController, leftMenuViewController: UIViewController) { + public convenience init(contentViewController: UIViewController, leftMenuViewController: UIViewController) { self.init() self.contentViewController = contentViewController self.leftMenuViewController = leftMenuViewController } - convenience init(contentViewController: UIViewController, rightMenuViewController: UIViewController) { + public convenience init(contentViewController: UIViewController, rightMenuViewController: UIViewController) { self.init() self.contentViewController = contentViewController self.rightMenuViewController = rightMenuViewController } - convenience init(contentViewController: UIViewController, leftMenuViewController: UIViewController, rightMenuViewController: UIViewController) { + public convenience init(contentViewController: UIViewController, leftMenuViewController: UIViewController, rightMenuViewController: UIViewController) { self.init() self.contentViewController = contentViewController self.leftMenuViewController = leftMenuViewController From 9cc8028c8da5f8d3bdc95b0bd7d0a2947d7944ed Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 19:13:40 -0800 Subject: [PATCH 06/14] public hideMenuViewController --- SSASideMenu/SSASideMenu.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index 4e41855..c886e15 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -348,7 +348,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { showRightMenuViewController() } - func hideMenuViewController() { + public func hideMenuViewController() { hideMenuViewController(true) } From b54f999e66976a3e92aae6b05d7aed04091be592 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 19:59:39 -0800 Subject: [PATCH 07/14] adding new private properties --- SSASideMenu/SSASideMenu.swift | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index c886e15..f3ccb80 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -157,7 +157,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } } - func configure(configuration: MenuViewEffect) { + public func configure(configuration: MenuViewEffect) { fadeMenuView = configuration.fade scaleMenuView = configuration.scale scaleBackgroundImageView = configuration.scaleBackground @@ -165,7 +165,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { bouncesHorizontally = configuration.bouncesHorizontally } - func configure(configuration: ContentViewShadow) { + public func configure(configuration: ContentViewShadow) { contentViewShadowEnabled = configuration.enabled contentViewShadowColor = configuration.color contentViewShadowOffset = configuration.offset @@ -173,7 +173,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { contentViewShadowRadius = configuration.radius } - func configure(configuration: ContentViewEffect) { + public func configure(configuration: ContentViewEffect) { contentViewScaleValue = configuration.scale contentViewFadeOutAlpha = configuration.alpha contentViewInLandscapeOffsetCenterX = configuration.landscapeOffsetX @@ -182,7 +182,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { parallaxContentMaximumRelativeValue = configuration.maxParallaxContentRelativeValue } - func configure(configuration: SideMenuOptions) { + public func configure(configuration: SideMenuOptions) { animationDuration = configuration.animationDuration panGestureEnabled = configuration.panGestureEnabled panDirection = configuration.panDirection @@ -194,19 +194,19 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { } // MARK : Storyboard Support - @IBInspectable var contentViewStoryboardID: String? - @IBInspectable var leftMenuViewStoryboardID: String? - @IBInspectable var rightMenuViewStoryboardID: String? + @IBInspectable public var contentViewStoryboardID: String? + @IBInspectable public var leftMenuViewStoryboardID: String? + @IBInspectable public var rightMenuViewStoryboardID: String? // MARK : Private Properties: MenuView & BackgroundImageView - @IBInspectable var fadeMenuView: Bool = true - @IBInspectable var scaleMenuView: Bool = true - @IBInspectable var scaleBackgroundImageView: Bool = true - @IBInspectable var parallaxEnabled: Bool = true - @IBInspectable var bouncesHorizontally: Bool = true + @IBInspectable public var fadeMenuView: Bool = true + @IBInspectable public var scaleMenuView: Bool = true + @IBInspectable public var scaleBackgroundImageView: Bool = true + @IBInspectable public var parallaxEnabled: Bool = true + @IBInspectable public var bouncesHorizontally: Bool = true // MARK : Public Properties: MenuView - @IBInspectable var statusBarStyle: SSAStatusBarStyle = .Black + @IBInspectable public var statusBarStyle: SSAStatusBarStyle = .Black // MARK : Private Properties: ContentView @IBInspectable var contentViewScaleValue: Float = 0.7 @@ -217,8 +217,8 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { @IBInspectable var parallaxContentMaximumRelativeValue: Float = 25.0 // MARK : Public Properties: ContentView - @IBInspectable var interactivePopGestureRecognizerEnabled: Bool = true - @IBInspectable var endAllEditing: Bool = false + @IBInspectable public var interactivePopGestureRecognizerEnabled: Bool = true + @IBInspectable public var endAllEditing: Bool = false // MARK : Private Properties: Shadow for ContentView @IBInspectable var contentViewShadowEnabled: Bool = true @@ -228,13 +228,13 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { @IBInspectable var contentViewShadowRadius: Float = 8.0 // MARK : Public Properties: SideMenu - @IBInspectable var animationDuration: Float = 0.35 - @IBInspectable var panGestureEnabled: Bool = true - @IBInspectable var panDirection: SSASideMenuPanDirection = .Edge - @IBInspectable var type: SSASideMenuType = .Scale - @IBInspectable var panMinimumOpenThreshold: UInt = 60 - @IBInspectable var menuViewControllerTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.5, 1.5) - @IBInspectable var backgroundTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.7, 1.7) + @IBInspectable public var animationDuration: Float = 0.35 + @IBInspectable public var panGestureEnabled: Bool = true + @IBInspectable public var panDirection: SSASideMenuPanDirection = .Edge + @IBInspectable public var type: SSASideMenuType = .Scale + @IBInspectable public var panMinimumOpenThreshold: UInt = 60 + @IBInspectable public var menuViewControllerTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.5, 1.5) + @IBInspectable public var backgroundTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.7, 1.7) // MARK : Internal Private Properties From e4d8b3ebc66861564644684b9775071a233f201f Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 20:04:55 -0800 Subject: [PATCH 08/14] marking menu options as public --- SSASideMenu/SSASideMenu.swift | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index f3ccb80..4c25fcb 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -75,11 +75,11 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { public struct ContentViewShadow { - var enabled: Bool = true - var color: UIColor = UIColor.blackColor() - var offset: CGSize = CGSizeZero - var opacity: Float = 0.4 - var radius: Float = 8.0 + public var enabled: Bool = true + public var color: UIColor = UIColor.blackColor() + public var offset: CGSize = CGSizeZero + public var opacity: Float = 0.4 + public var radius: Float = 8.0 init(enabled: Bool = true, color: UIColor = UIColor.blackColor(), offset: CGSize = CGSizeZero, opacity: Float = 0.4, radius: Float = 8.0) { @@ -93,12 +93,12 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { public struct MenuViewEffect { - var fade: Bool = true - var scale: Bool = true - var scaleBackground: Bool = true - var parallaxEnabled: Bool = true - var bouncesHorizontally: Bool = true - var statusBarStyle: SSAStatusBarStyle = .Black + public var fade: Bool = true + public var scale: Bool = true + public var scaleBackground: Bool = true + public var parallaxEnabled: Bool = true + public var bouncesHorizontally: Bool = true + public var statusBarStyle: SSAStatusBarStyle = .Black init(fade: Bool = true, scale: Bool = true, scaleBackground: Bool = true, parallaxEnabled: Bool = true, bouncesHorizontally: Bool = true, statusBarStyle: SSAStatusBarStyle = .Black) { @@ -113,15 +113,15 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { public struct ContentViewEffect { - var alpha: Float = 1.0 - var scale: Float = 0.7 - var landscapeOffsetX: Float = 30 - var portraitOffsetX: Float = 30 - var minParallaxContentRelativeValue: Float = -25.0 - var maxParallaxContentRelativeValue: Float = 25.0 - var interactivePopGestureRecognizerEnabled: Bool = true + public var alpha: Float = 1.0 + public var scale: Float = 0.7 + public var landscapeOffsetX: Float = 30 + public var portraitOffsetX: Float = 30 + public var minParallaxContentRelativeValue: Float = -25.0 + public var maxParallaxContentRelativeValue: Float = 25.0 + public var interactivePopGestureRecognizerEnabled: Bool = true - init(alpha: Float = 1.0, scale: Float = 0.7, landscapeOffsetX: Float = 30, portraitOffsetX: Float = 30, minParallaxContentRelativeValue: Float = -25.0, maxParallaxContentRelativeValue: Float = 25.0, interactivePopGestureRecognizerEnabled: Bool = true) { + public init(alpha: Float = 1.0, scale: Float = 0.7, landscapeOffsetX: Float = 30, portraitOffsetX: Float = 30, minParallaxContentRelativeValue: Float = -25.0, maxParallaxContentRelativeValue: Float = 25.0, interactivePopGestureRecognizerEnabled: Bool = true) { self.alpha = alpha self.scale = scale @@ -135,16 +135,16 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { public struct SideMenuOptions { - var animationDuration: Float = 0.35 - var panGestureEnabled: Bool = true - var panDirection: SSASideMenuPanDirection = .Edge - var type: SSASideMenuType = .Scale - var panMinimumOpenThreshold: UInt = 60 - var menuViewControllerTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.5, 1.5) - var backgroundTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.7, 1.7) - var endAllEditing: Bool = false + public var animationDuration: Float = 0.35 + public var panGestureEnabled: Bool = true + public var panDirection: SSASideMenuPanDirection = .Edge + public var type: SSASideMenuType = .Scale + public var panMinimumOpenThreshold: UInt = 60 + public var menuViewControllerTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.5, 1.5) + public var backgroundTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.7, 1.7) + public var endAllEditing: Bool = false - init(animationDuration: Float = 0.35, panGestureEnabled: Bool = true, panDirection: SSASideMenuPanDirection = .Edge, type: SSASideMenuType = .Scale, panMinimumOpenThreshold: UInt = 60, menuViewControllerTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.5, 1.5), backgroundTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.7, 1.7), endAllEditing: Bool = false) { + public init(animationDuration: Float = 0.35, panGestureEnabled: Bool = true, panDirection: SSASideMenuPanDirection = .Edge, type: SSASideMenuType = .Scale, panMinimumOpenThreshold: UInt = 60, menuViewControllerTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.5, 1.5), backgroundTransformation: CGAffineTransform = CGAffineTransformMakeScale(1.7, 1.7), endAllEditing: Bool = false) { self.animationDuration = animationDuration self.panGestureEnabled = panGestureEnabled From 36171152e1b38980c5d022cc961bd1f2923c49c0 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 20:11:57 -0800 Subject: [PATCH 09/14] upgrading version number --- SSASideMenu.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec index 19efd17..a9bf6af 100644 --- a/SSASideMenu.podspec +++ b/SSASideMenu.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SSASideMenu" - s.version = "1.0.0" + s.version = "1.0.1" s.summary = "iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app." s.homepage = "https://github.com/mbalex99/SSASideMenu.git" s.license = { :type => "MIT", :file => "LICENSE" } From 1d9a0cafc8f3f3514adef95b73cb283aa2e1f869 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Thu, 18 Feb 2016 20:13:59 -0800 Subject: [PATCH 10/14] Release 1.0.2 --- SSASideMenu.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec index a9bf6af..451d358 100644 --- a/SSASideMenu.podspec +++ b/SSASideMenu.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SSASideMenu" - s.version = "1.0.1" + s.version = "1.0.2" s.summary = "iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app." s.homepage = "https://github.com/mbalex99/SSASideMenu.git" s.license = { :type => "MIT", :file => "LICENSE" } From acd3958833080f5522642c3b7e501d266bd54cc6 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Fri, 19 Feb 2016 12:17:36 -0800 Subject: [PATCH 11/14] Release 1.0.3 --- SSASideMenu.podspec | 2 +- SSASideMenu/SSASideMenu.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec index 451d358..61c803c 100644 --- a/SSASideMenu.podspec +++ b/SSASideMenu.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SSASideMenu" - s.version = "1.0.2" + s.version = "1.0.3" s.summary = "iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app." s.homepage = "https://github.com/mbalex99/SSASideMenu.git" s.license = { :type => "MIT", :file => "LICENSE" } diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index 4c25fcb..0cbb78a 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -100,7 +100,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { public var bouncesHorizontally: Bool = true public var statusBarStyle: SSAStatusBarStyle = .Black - init(fade: Bool = true, scale: Bool = true, scaleBackground: Bool = true, parallaxEnabled: Bool = true, bouncesHorizontally: Bool = true, statusBarStyle: SSAStatusBarStyle = .Black) { + public init(fade: Bool = true, scale: Bool = true, scaleBackground: Bool = true, parallaxEnabled: Bool = true, bouncesHorizontally: Bool = true, statusBarStyle: SSAStatusBarStyle = .Black) { self.fade = fade self.scale = scale From 391017919a718207a99b700cee3183dbb517bc3d Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Fri, 19 Feb 2016 12:18:23 -0800 Subject: [PATCH 12/14] updating git tag --- SSASideMenu.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec index 61c803c..f8ed1f9 100644 --- a/SSASideMenu.podspec +++ b/SSASideMenu.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.social_media_url = "https://twitter.com/dekatotoro" s.platform = :ios s.ios.deployment_target = "8.0" - s.source = { :git => "https://github.com/mbalex99/SSASideMenu.git", :tag => "1.0.0" } + s.source = { :git => "https://github.com/mbalex99/SSASideMenu.git", :tag => "1.0.3" } s.source_files = "SSASideMenu/*" s.requires_arc = true end \ No newline at end of file From 6e842414d244eb017f06cdf52af2b9c9e7aa6189 Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Fri, 19 Feb 2016 12:19:08 -0800 Subject: [PATCH 13/14] tag url update --- SSASideMenu.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec index f8ed1f9..ef146de 100644 --- a/SSASideMenu.podspec +++ b/SSASideMenu.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.homepage = "https://github.com/mbalex99/SSASideMenu.git" s.license = { :type => "MIT", :file => "LICENSE" } s.author = { "Maximilian Alexander" => "mbalex99@gmail.com" } - s.social_media_url = "https://twitter.com/dekatotoro" + s.social_media_url = "https://twitter.com/mbalex99" s.platform = :ios s.ios.deployment_target = "8.0" s.source = { :git => "https://github.com/mbalex99/SSASideMenu.git", :tag => "1.0.3" } From 5d3de08428b839e30ad6210cf359730f60da37bf Mon Sep 17 00:00:00 2001 From: Maximilian Alexander Date: Fri, 19 Feb 2016 12:20:35 -0800 Subject: [PATCH 14/14] release 1.0.4 --- SSASideMenu.podspec | 4 ++-- SSASideMenu/SSASideMenu.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SSASideMenu.podspec b/SSASideMenu.podspec index ef146de..d5c05ef 100644 --- a/SSASideMenu.podspec +++ b/SSASideMenu.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SSASideMenu" - s.version = "1.0.3" + s.version = "1.0.4" s.summary = "iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app." s.homepage = "https://github.com/mbalex99/SSASideMenu.git" s.license = { :type => "MIT", :file => "LICENSE" } @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.social_media_url = "https://twitter.com/mbalex99" s.platform = :ios s.ios.deployment_target = "8.0" - s.source = { :git => "https://github.com/mbalex99/SSASideMenu.git", :tag => "1.0.3" } + s.source = { :git => "https://github.com/mbalex99/SSASideMenu.git", :tag => "1.0.4" } s.source_files = "SSASideMenu/*" s.requires_arc = true end \ No newline at end of file diff --git a/SSASideMenu/SSASideMenu.swift b/SSASideMenu/SSASideMenu.swift index 0cbb78a..de8eaed 100755 --- a/SSASideMenu/SSASideMenu.swift +++ b/SSASideMenu/SSASideMenu.swift @@ -81,7 +81,7 @@ public class SSASideMenu: UIViewController, UIGestureRecognizerDelegate { public var opacity: Float = 0.4 public var radius: Float = 8.0 - init(enabled: Bool = true, color: UIColor = UIColor.blackColor(), offset: CGSize = CGSizeZero, opacity: Float = 0.4, radius: Float = 8.0) { + public init(enabled: Bool = true, color: UIColor = UIColor.blackColor(), offset: CGSize = CGSizeZero, opacity: Float = 0.4, radius: Float = 8.0) { self.enabled = false self.color = color