Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kawoou committed Jan 8, 2018
2 parents c876b2b + 4466e58 commit f867b95
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.1
4.0
8 changes: 2 additions & 6 deletions DrawerController/Animator/DrawerAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ open class DrawerAnimator {

// MARK: - Public

public func animate(duration: TimeInterval, animations: @escaping (Float)->(), completion: @escaping ((Bool)->())) {

}
public func animate(duration: TimeInterval, animations: @escaping (Float)->(), completion: @escaping ((Bool)->())) {}

public func tick(delta: TimeInterval, duration: TimeInterval, animations: @escaping (Float)->()) {

}
public func tick(delta: TimeInterval, duration: TimeInterval, animations: @escaping (Float)->()) {}


// MARK: - Private
Expand Down
5 changes: 5 additions & 0 deletions Example/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
16 changes: 8 additions & 8 deletions Example/Conroller/LeftOptionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,28 @@ class LeftOptionViewController: UIViewController {
// Dispose of any resources that can be recreated.
}

func absoluteDidTouched(_ sender: UISwitch) {
@objc func absoluteDidTouched(_ sender: UISwitch) {
self.drawerController?.setAbsolute(isAbsolute: sender.isOn, side: .left)
}
func shadowDidTouched(_ sender: UISwitch) {
@objc func shadowDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .left)?.isShadow = sender.isOn
}
func fadeScreenDidTouched(_ sender: UISwitch) {
@objc func fadeScreenDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .left)?.isFadeScreen = sender.isOn
}
func blurScreenDidTouched(_ sender: UISwitch) {
@objc func blurScreenDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .left)?.isBlur = sender.isOn
}
func overflowAnimationDidTouched(_ sender: UISwitch) {
@objc func overflowAnimationDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .left)?.isOverflowAnimation = sender.isOn
}
func gestureDidTouched(_ sender: UISwitch) {
@objc func gestureDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .left)?.isGesture = sender.isOn
}
func tapToCloseDidTouched(_ sender: UISwitch) {
@objc func tapToCloseDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .left)?.isTapToClose = sender.isOn
}
func bringToFrontDidTouched(_ sender: UISwitch) {
@objc func bringToFrontDidTouched(_ sender: UISwitch) {
self.drawerController?.setBringToFront(isBringToFront: sender.isOn, side: .left)
}

Expand Down
16 changes: 8 additions & 8 deletions Example/Conroller/RightOptionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,28 @@ class RightOptionViewController: UIViewController {
// Dispose of any resources that can be recreated.
}

func absoluteDidTouched(_ sender: UISwitch) {
@objc func absoluteDidTouched(_ sender: UISwitch) {
self.drawerController?.setAbsolute(isAbsolute: sender.isOn, side: .right)
}
func shadowDidTouched(_ sender: UISwitch) {
@objc func shadowDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .right)?.isShadow = sender.isOn
}
func fadeScreenDidTouched(_ sender: UISwitch) {
@objc func fadeScreenDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .right)?.isFadeScreen = sender.isOn
}
func blurScreenDidTouched(_ sender: UISwitch) {
@objc func blurScreenDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .right)?.isBlur = sender.isOn
}
func overflowAnimationDidTouched(_ sender: UISwitch) {
@objc func overflowAnimationDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .right)?.isOverflowAnimation = sender.isOn
}
func gestureDidTouched(_ sender: UISwitch) {
@objc func gestureDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .right)?.isGesture = sender.isOn
}
func tapToCloseDidTouched(_ sender: UISwitch) {
@objc func tapToCloseDidTouched(_ sender: UISwitch) {
self.drawerController?.getSideOption(side: .right)?.isTapToClose = sender.isOn
}
func bringToFrontDidTouched(_ sender: UISwitch) {
@objc func bringToFrontDidTouched(_ sender: UISwitch) {
self.drawerController?.setBringToFront(isBringToFront: sender.isOn, side: .right)
}

Expand Down
4 changes: 2 additions & 2 deletions Example/KWDrawerController-Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.kawoou.library.drawer.example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -490,7 +490,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.kawoou.library.drawer.example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
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.7'
s.version = '4.0'
s.summary = 'Drawer view controller that easy to use!'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://github.com/kawoou/KWDrawerController'
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Kawoou (Jungwon An)
Copyright (c) 2018 Kawoou (Jungwon An)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ KWDrawerController
[![Pod Version](http://img.shields.io/cocoapods/v/KWDrawerController.svg?style=flat)](http://cocoadocs.org/docsets/KWDrawerController)
[![Pod Platform](http://img.shields.io/cocoapods/p/KWDrawerController.svg?style=flat)](http://cocoadocs.org/docsets/KWDrawerController)
[![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)
![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg)

Drawer view controller that easy to use!

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

```ruby
// Swift 3.x
pod 'KWDrawerController', '~> 3.7'

// Swift 4
pod 'KWDrawerController', '~> 4.0'
```


Expand Down Expand Up @@ -231,12 +235,12 @@ Changelog
+ 3.6 Fixed an occurs issue while the drawer was open and layout changing.
+ 3.6.1 Fixed layout issue when rotate device.
+ 3.7 Fixed not updating issues on properties.
+ 4.0 Support Swift 4.

⚠️ Requirements
--------------

- iOS 7.1+
- Xcode 8.1+
- iOS 8.0+
- Swift 3.0+


Expand Down

0 comments on commit f867b95

Please sign in to comment.