File tree 6 files changed +10
-9
lines changed
ViewControllers/UserViewController
DisplaySwitcher.xcodeproj 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
3
3
s . name = "DisplaySwitcher"
4
- s . version = "0.1.0 "
4
+ s . version = "0.1.1 "
5
5
s . summary = "This component implements custom transition between two collection view layouts."
6
6
s . screenshot = 'https://d13yacurqjgara.cloudfront.net/users/116693/screenshots/2276068/open-uri20151005-3-walc59'
7
7
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
13
13
s . platform = :ios , '8.0'
14
14
s . ios . deployment_target = '8.0'
15
15
16
- s . source = { :git => "https://github.com/Yalantis/DisplaySwitcher.git" , :tag => ' 0.1.0' }
16
+ s . source = { :git => "https://github.com/Yalantis/DisplaySwitcher.git" , :tag => " 0.1.1" }
17
17
s . source_files = 'Pod/Classes/**/*'
18
18
19
19
s . requires_arc = true
Original file line number Diff line number Diff line change 661
661
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
662
662
CLANG_ENABLE_MODULES = YES;
663
663
INFOPLIST_FILE = DisplaySwitcher/Info.plist;
664
- IPHONEOS_DEPLOYMENT_TARGET = 9.0 ;
664
+ IPHONEOS_DEPLOYMENT_TARGET = 9.3 ;
665
665
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
666
666
MODULE_NAME = ExampleApp;
667
667
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
678
678
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
679
679
CLANG_ENABLE_MODULES = YES;
680
680
INFOPLIST_FILE = DisplaySwitcher/Info.plist;
681
- IPHONEOS_DEPLOYMENT_TARGET = 9.0 ;
681
+ IPHONEOS_DEPLOYMENT_TARGET = 9.3 ;
682
682
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
683
683
MODULE_NAME = ExampleApp;
684
684
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 9059 " systemVersion =" 14F1505 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" KUR-je-Sh7" >
2
+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 10116 " systemVersion =" 15E65 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" KUR-je-Sh7" >
3
3
<dependencies >
4
- <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 9049" />
4
+ <deployment identifier =" iOS" />
5
+ <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 10085" />
5
6
</dependencies >
6
7
<scenes >
7
8
<!-- Navigation Controller-->
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class UserViewController: UIViewController {
44
44
}
45
45
46
46
private func addGestureRecognizerToNavBar( ) {
47
- let tapRecognizer = UITapGestureRecognizer ( target: self , action: " tapRecognized " )
47
+ let tapRecognizer = UITapGestureRecognizer ( target: self , action: #selector ( UserViewController . tapRecognized) )
48
48
navigationController!. navigationBar. addGestureRecognizer ( tapRecognizer)
49
49
}
50
50
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public class BaseLayout: UICollectionViewLayout {
74
74
baseLayoutAttributes. append ( attributes)
75
75
contentHeight = max ( contentHeight, CGRectGetMaxY ( frame) )
76
76
yOffset [ column] = yOffset [ column] + height
77
- column = column == ( numberOfColumns - 1 ) ? 0 : ++ column
77
+ column = column == ( numberOfColumns - 1 ) ? 0 : column + 1
78
78
}
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public class TransitionManager {
44
44
// MARK: - Private methods
45
45
private func createUpdaterAndStart( ) {
46
46
start = CACurrentMediaTime ( )
47
- updater = CADisplayLink ( target: self , selector: Selector ( " updateTransitionProgress " ) )
47
+ updater = CADisplayLink ( target: self , selector: #selector ( updateTransitionProgress) )
48
48
updater. frameInterval = 1
49
49
updater. addToRunLoop ( NSRunLoop . currentRunLoop ( ) , forMode: NSRunLoopCommonModes)
50
50
}
You can’t perform that action at this time.
0 commit comments