Skip to content

Commit

Permalink
Fix Access Control issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kawoou committed Feb 18, 2017
1 parent 2d2b03d commit 15b22b5
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 47 deletions.
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerBackEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class DrawerBackEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerBounceEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class DrawerBounceEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerCircEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class DrawerCircEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerCubicEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class DrawerCubicEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerCurveEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class DrawerCurveEaseAnimator: DrawerAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerElasticEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class DrawerElasticEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerExpoEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class DrawerExpoEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerQuadEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class DrawerQuadEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerQuartEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class DrawerQuartEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerQuintEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class DrawerQuintEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Animator/DrawerSineEaseAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class DrawerSineEaseAnimator: DrawerTickAnimator {

// MARK: - Lifecycle

init(easeType: EaseType = .easeInOut) {
public init(easeType: EaseType = .easeInOut) {
self.easeType = easeType

super.init()
Expand Down
2 changes: 1 addition & 1 deletion DrawerController/Models/DrawerContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public class DrawerContent {

// MARK: - Initialize

init(viewController: UIViewController, drawerSide: DrawerSide) {
internal init(viewController: UIViewController, drawerSide: DrawerSide) {

self.contentView = UIView()
self.viewController = viewController
Expand Down
10 changes: 5 additions & 5 deletions DrawerController/Transition/DrawerFloatTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ public class DrawerFloatTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)

content.isBringToFront = false
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

switch content.drawerSide {
case .left:
Expand Down Expand Up @@ -81,7 +81,7 @@ public class DrawerFloatTransition: DrawerTransition {

// MARK: - Lifecycle

init(floatFactor: Float = 0.2875) {
public init(floatFactor: Float = 0.2875) {
self.floatFactor = floatFactor

super.init()
Expand Down
8 changes: 4 additions & 4 deletions DrawerController/Transition/DrawerFoldTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public class DrawerFoldTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)

unbindView(content: content)
Expand Down Expand Up @@ -120,13 +120,13 @@ public class DrawerFoldTransition: DrawerTransition {
}
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)

unbindView(content: content)
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

switch content.drawerSide {
case .left:
Expand Down
10 changes: 5 additions & 5 deletions DrawerController/Transition/DrawerParallaxTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ public class DrawerParallaxTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)

content.isBringToFront = false
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

let newPercentage = content.drawerSide == .none ? percentage : CGFloat(Float(percentage) / self.parallaxFactor)

Expand All @@ -64,7 +64,7 @@ public class DrawerParallaxTransition: DrawerTransition {

// MARK: - Lifecycle

init(parallaxFactor: Float = 2.0) {
public init(parallaxFactor: Float = 2.0) {
self.parallaxFactor = parallaxFactor

super.init()
Expand Down
8 changes: 4 additions & 4 deletions DrawerController/Transition/DrawerScaleTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ public class DrawerScaleTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)

content.contentView.transform = CGAffineTransform.identity
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)

content.contentView.transform = CGAffineTransform.identity
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

switch content.drawerSide {
case .left:
Expand Down
8 changes: 4 additions & 4 deletions DrawerController/Transition/DrawerSlideTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ public class DrawerSlideTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

content.contentView.transform = CGAffineTransform.identity
content.contentView.frame = CGRect(
Expand Down
8 changes: 4 additions & 4 deletions DrawerController/Transition/DrawerSwingTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public class DrawerSwingTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)

content.isBringToFront = false
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)

var affine = CATransform3DIdentity
Expand All @@ -55,15 +55,15 @@ public class DrawerSwingTransition: DrawerTransition {
content.viewController.view.layer.transform = CATransform3DIdentity
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)

content.contentView.layer.sublayerTransform = CATransform3DIdentity
content.viewController.view.layer.transform = CATransform3DIdentity
content.viewController.view.layer.anchorPoint = CGPoint(x: 0.5, y: 0.5)
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

switch content.drawerSide {
case .left:
Expand Down
8 changes: 4 additions & 4 deletions DrawerController/Transition/DrawerZoomTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public class DrawerZoomTransition: DrawerTransition {

// MARK: - Public

override public func initTransition(content: DrawerContent) {
public override func initTransition(content: DrawerContent) {
super.initTransition(content: content)

content.isBringToFront = false
}

override public func startTransition(content: DrawerContent, side: DrawerSide) {
public override func startTransition(content: DrawerContent, side: DrawerSide) {
super.startTransition(content: content, side: side)

content.contentView.transform = CGAffineTransform.identity
Expand All @@ -46,11 +46,11 @@ public class DrawerZoomTransition: DrawerTransition {
)
}

override public func endTransition(content: DrawerContent, side: DrawerSide) {
public override func endTransition(content: DrawerContent, side: DrawerSide) {
super.endTransition(content: content, side: side)
}

override public func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {
public override func transition(content: DrawerContent, side: DrawerSide, percentage: CGFloat, viewRect: CGRect) {

switch content.drawerSide {
case .left:
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion KWDrawerController.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "KWDrawerController"
s.version = "3.1"
s.version = "3.2"
s.summary = "Drawer view controller that easy to use!"
s.license = { :type => "MIT", :file => "LICENSE" }
s.homepage = "https://github.com/Kawoou/KWDrawerController"
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
KWDrawerController
==================

[![Pod Version](http://img.shields.io/cocoapods/v/KWDrawerController.svg?style=flat)](http://cocoadocs.org/docsets/KWDrawerController/3.1)
[![Pod Platform](http://img.shields.io/cocoapods/p/KWDrawerController.svg?style=flat)](http://cocoadocs.org/docsets/KWDrawerController/3.1)
[![Pod Version](http://img.shields.io/cocoapods/v/KWDrawerController.svg?style=flat)](http://cocoadocs.org/docsets/KWDrawerController/3.2)
[![Pod Platform](http://img.shields.io/cocoapods/p/KWDrawerController.svg?style=flat)](http://cocoadocs.org/docsets/KWDrawerController/3.2)
[![Pod License](http://img.shields.io/cocoapods/l/KWDrawerController.svg?style=flat)](https://github.com/kawoou/KWDrawerController/blob/master/LICENSE)
![Swift](https://img.shields.io/badge/Swift-3.0-orange.svg)

Expand All @@ -17,7 +17,7 @@ Installation
KWDrawerController is available on [CocoaPods](https://github.com/cocoapods/cocoapods). Add the following to your Podfile:

```ruby
pod 'KWDrawerController', '~> 3.1'
pod 'KWDrawerController', '~> 3.2'
```


Expand All @@ -26,7 +26,7 @@ pod 'KWDrawerController', '~> 3.1'
I recommend you to try [CocoaSeeds](https://github.com/devxoul/CocoaSeeds), which uses source code instead of dynamic frameworks. Sample Seedfile:

```ruby
github 'kawoou/KWDrawerController', '3.1', :files => 'DrawerController/**.{swift}'
github 'kawoou/KWDrawerController', '3.2', :files => 'DrawerController/**.{swift}'
```


Expand Down Expand Up @@ -233,6 +233,7 @@ Changelog
+ 2.2 Fix animation, and some bugs.
+ 3.0 Written in Swift 3.0
+ 3.1 Fix Access Controls issues.
+ 3.2 Fix Access Controls issues.


⚠️ Requirements
Expand Down

0 comments on commit 15b22b5

Please sign in to comment.