├── .swift-version ├── .travis.yml ├── Example ├── MMParallaxView.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── MMParallaxView-Example.xcscheme ├── MMParallaxView.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── millmanyang.xcuserdatad │ │ ├── UserInterfaceState.xcuserstate │ │ └── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist ├── MMParallaxView │ ├── 0001095.jpg │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Cell │ │ ├── ImageCell.swift │ │ ├── ImageCell.xib │ │ ├── TitleCell.swift │ │ └── TitleCell.xib │ ├── DemoListViewController.swift │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── demo1.imageset │ │ │ ├── 0001095 (1).jpg │ │ │ └── Contents.json │ │ ├── demo2.imageset │ │ │ ├── Contents.json │ │ │ └── demo2.jpg │ │ ├── demo3.imageset │ │ │ ├── Contents.json │ │ │ └── demo3.jpg │ │ └── demo4.imageset │ │ │ ├── Contents.json │ │ │ └── demo4.jpg │ ├── Info.plist │ ├── ParallaxController │ │ ├── ChildBottomViewController.swift │ │ ├── ChildPresentViewController.swift │ │ ├── ChildTopViewController.swift │ │ ├── MapViewController.swift │ │ └── SecondViewController.swift │ └── Simple │ │ └── SimpleViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── MMParallaxView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcuserdata │ │ │ └── millmanyang.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── MMParallaxView.xcscheme │ │ │ ├── Pods-MMParallaxView_Example.xcscheme │ │ │ ├── Pods-MMParallaxView_Tests.xcscheme │ │ │ └── xcschememanagement.plist │ └── Target Support Files │ │ ├── MMParallaxView │ │ ├── Info.plist │ │ ├── MMParallaxView-dummy.m │ │ ├── MMParallaxView-prefix.pch │ │ ├── MMParallaxView-umbrella.h │ │ ├── MMParallaxView.modulemap │ │ └── MMParallaxView.xcconfig │ │ ├── Pods-MMParallaxView_Example │ │ ├── Info.plist │ │ ├── Pods-MMParallaxView_Example-acknowledgements.markdown │ │ ├── Pods-MMParallaxView_Example-acknowledgements.plist │ │ ├── Pods-MMParallaxView_Example-dummy.m │ │ ├── Pods-MMParallaxView_Example-frameworks.sh │ │ ├── Pods-MMParallaxView_Example-resources.sh │ │ ├── Pods-MMParallaxView_Example-umbrella.h │ │ ├── Pods-MMParallaxView_Example.debug.xcconfig │ │ ├── Pods-MMParallaxView_Example.modulemap │ │ └── Pods-MMParallaxView_Example.release.xcconfig │ │ └── Pods-MMParallaxView_Tests │ │ ├── Info.plist │ │ ├── Pods-MMParallaxView_Tests-acknowledgements.markdown │ │ ├── Pods-MMParallaxView_Tests-acknowledgements.plist │ │ ├── Pods-MMParallaxView_Tests-dummy.m │ │ ├── Pods-MMParallaxView_Tests-frameworks.sh │ │ ├── Pods-MMParallaxView_Tests-resources.sh │ │ ├── Pods-MMParallaxView_Tests-umbrella.h │ │ ├── Pods-MMParallaxView_Tests.debug.xcconfig │ │ ├── Pods-MMParallaxView_Tests.modulemap │ │ └── Pods-MMParallaxView_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── MMParallaxView.podspec ├── MMParallaxView ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── CGFLoat+Decimal.swift │ ├── MMParallaxView.swift │ ├── MMParallaxViewController.swift │ ├── MMParallaxViewDefine.swift │ └── UIViewController+Parallax+Find.swift ├── README.md └── demoGIF ├── demo1.gif └── demo2.gif /.swift-version: -------------------------------------------------------------------------------- 1 | 5.0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/MMParallaxView.xcworkspace -scheme MMParallaxView-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/MMParallaxView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5E82B22920C24AFC00CB439E /* ChildBottomViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E82B22820C24AFC00CB439E /* ChildBottomViewController.swift */; }; 11 | 5E82B22B20C24B0300CB439E /* ChildTopViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E82B22A20C24B0300CB439E /* ChildTopViewController.swift */; }; 12 | 5E82B22D20C24C5A00CB439E /* ChildPresentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E82B22C20C24C5A00CB439E /* ChildPresentViewController.swift */; }; 13 | 5E82B23020C267DC00CB439E /* ImageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E82B22E20C267DC00CB439E /* ImageCell.swift */; }; 14 | 5E82B23120C267DC00CB439E /* ImageCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5E82B22F20C267DC00CB439E /* ImageCell.xib */; }; 15 | 5EDC765620C5BF5E00CA81EB /* MapViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EDC765520C5BF5E00CA81EB /* MapViewController.swift */; }; 16 | 5EE6853C20BEEE29006E38CF /* DemoListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6853B20BEEE29006E38CF /* DemoListViewController.swift */; }; 17 | 5EE6853E20BEEE77006E38CF /* SimpleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6853D20BEEE77006E38CF /* SimpleViewController.swift */; }; 18 | 5EE6854A20BEF8C9006E38CF /* TitleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6854820BEF8C9006E38CF /* TitleCell.swift */; }; 19 | 5EE6854B20BEF8C9006E38CF /* TitleCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5EE6854920BEF8C9006E38CF /* TitleCell.xib */; }; 20 | 5EFD65AC20C19B88001258EE /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EFD65AB20C19B88001258EE /* SecondViewController.swift */; }; 21 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 22 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 23 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 24 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 25 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 26 | 81A3F59B04AF491BB023B61E /* Pods_MMParallaxView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EC49ABD6F0F7DA1BF714240B /* Pods_MMParallaxView_Example.framework */; }; 27 | E8A8C3F935E1F29F83651DF7 /* Pods_MMParallaxView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39D57AED49B797F24DAE8E98 /* Pods_MMParallaxView_Tests.framework */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 36 | remoteInfo = MMParallaxView; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1169F2DE9845E1F7EB8FD445 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 42 | 39D57AED49B797F24DAE8E98 /* Pods_MMParallaxView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MMParallaxView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 5E82B22820C24AFC00CB439E /* ChildBottomViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildBottomViewController.swift; sourceTree = ""; }; 44 | 5E82B22A20C24B0300CB439E /* ChildTopViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildTopViewController.swift; sourceTree = ""; }; 45 | 5E82B22C20C24C5A00CB439E /* ChildPresentViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChildPresentViewController.swift; sourceTree = ""; }; 46 | 5E82B22E20C267DC00CB439E /* ImageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageCell.swift; sourceTree = ""; }; 47 | 5E82B22F20C267DC00CB439E /* ImageCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ImageCell.xib; sourceTree = ""; }; 48 | 5EDC765520C5BF5E00CA81EB /* MapViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapViewController.swift; sourceTree = ""; }; 49 | 5EE6853B20BEEE29006E38CF /* DemoListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoListViewController.swift; sourceTree = ""; }; 50 | 5EE6853D20BEEE77006E38CF /* SimpleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleViewController.swift; sourceTree = ""; }; 51 | 5EE6854820BEF8C9006E38CF /* TitleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleCell.swift; sourceTree = ""; }; 52 | 5EE6854920BEF8C9006E38CF /* TitleCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleCell.xib; sourceTree = ""; }; 53 | 5EFD65AB20C19B88001258EE /* SecondViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = ""; }; 54 | 607FACD01AFB9204008FA782 /* MMParallaxView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MMParallaxView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 57 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 58 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 59 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 60 | 607FACE51AFB9204008FA782 /* MMParallaxView_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MMParallaxView_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 63 | 63A9C60E9C9A068CD59DA2A1 /* Pods-MMParallaxView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MMParallaxView_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.debug.xcconfig"; sourceTree = ""; }; 64 | 6D4B7D963C99E84042FD4503 /* MMParallaxView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MMParallaxView.podspec; path = ../MMParallaxView.podspec; sourceTree = ""; }; 65 | 7BAAFF9DAF5E0C88B6B143F9 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 66 | 8CC6058A3823604FE8262E20 /* Pods-MMParallaxView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MMParallaxView_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.debug.xcconfig"; sourceTree = ""; }; 67 | EC49ABD6F0F7DA1BF714240B /* Pods_MMParallaxView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MMParallaxView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | F21A49367EB1C8FD4B49C648 /* Pods-MMParallaxView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MMParallaxView_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.release.xcconfig"; sourceTree = ""; }; 69 | FCEA6653BA0B3910101E2CAE /* Pods-MMParallaxView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MMParallaxView_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.release.xcconfig"; sourceTree = ""; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | 81A3F59B04AF491BB023B61E /* Pods_MMParallaxView_Example.framework in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | E8A8C3F935E1F29F83651DF7 /* Pods_MMParallaxView_Tests.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | /* End PBXFrameworksBuildPhase section */ 90 | 91 | /* Begin PBXGroup section */ 92 | 5EE6854720BEF8B1006E38CF /* Cell */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 5EE6854820BEF8C9006E38CF /* TitleCell.swift */, 96 | 5EE6854920BEF8C9006E38CF /* TitleCell.xib */, 97 | 5E82B22E20C267DC00CB439E /* ImageCell.swift */, 98 | 5E82B22F20C267DC00CB439E /* ImageCell.xib */, 99 | ); 100 | path = Cell; 101 | sourceTree = ""; 102 | }; 103 | 5EFD65AD20C19C84001258EE /* Simple */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 5EE6853D20BEEE77006E38CF /* SimpleViewController.swift */, 107 | ); 108 | path = Simple; 109 | sourceTree = ""; 110 | }; 111 | 5EFD65AE20C19C8E001258EE /* ParallaxController */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 5EFD65AB20C19B88001258EE /* SecondViewController.swift */, 115 | 5E82B22820C24AFC00CB439E /* ChildBottomViewController.swift */, 116 | 5E82B22A20C24B0300CB439E /* ChildTopViewController.swift */, 117 | 5E82B22C20C24C5A00CB439E /* ChildPresentViewController.swift */, 118 | 5EDC765520C5BF5E00CA81EB /* MapViewController.swift */, 119 | ); 120 | path = ParallaxController; 121 | sourceTree = ""; 122 | }; 123 | 607FACC71AFB9204008FA782 = { 124 | isa = PBXGroup; 125 | children = ( 126 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 127 | 607FACD21AFB9204008FA782 /* Example for MMParallaxView */, 128 | 607FACE81AFB9204008FA782 /* Tests */, 129 | 607FACD11AFB9204008FA782 /* Products */, 130 | F34C02F6269F890524943233 /* Pods */, 131 | BC6226C711BE1ABC600D58C5 /* Frameworks */, 132 | ); 133 | sourceTree = ""; 134 | }; 135 | 607FACD11AFB9204008FA782 /* Products */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACD01AFB9204008FA782 /* MMParallaxView_Example.app */, 139 | 607FACE51AFB9204008FA782 /* MMParallaxView_Tests.xctest */, 140 | ); 141 | name = Products; 142 | sourceTree = ""; 143 | }; 144 | 607FACD21AFB9204008FA782 /* Example for MMParallaxView */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 5EFD65AE20C19C8E001258EE /* ParallaxController */, 148 | 5EFD65AD20C19C84001258EE /* Simple */, 149 | 5EE6854720BEF8B1006E38CF /* Cell */, 150 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 151 | 5EE6853B20BEEE29006E38CF /* DemoListViewController.swift */, 152 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 153 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 154 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 155 | 607FACD31AFB9204008FA782 /* Supporting Files */, 156 | ); 157 | name = "Example for MMParallaxView"; 158 | path = MMParallaxView; 159 | sourceTree = ""; 160 | }; 161 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 607FACD41AFB9204008FA782 /* Info.plist */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | 607FACE81AFB9204008FA782 /* Tests */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 173 | 607FACE91AFB9204008FA782 /* Supporting Files */, 174 | ); 175 | path = Tests; 176 | sourceTree = ""; 177 | }; 178 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 607FACEA1AFB9204008FA782 /* Info.plist */, 182 | ); 183 | name = "Supporting Files"; 184 | sourceTree = ""; 185 | }; 186 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 6D4B7D963C99E84042FD4503 /* MMParallaxView.podspec */, 190 | 1169F2DE9845E1F7EB8FD445 /* README.md */, 191 | 7BAAFF9DAF5E0C88B6B143F9 /* LICENSE */, 192 | ); 193 | name = "Podspec Metadata"; 194 | sourceTree = ""; 195 | }; 196 | BC6226C711BE1ABC600D58C5 /* Frameworks */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | EC49ABD6F0F7DA1BF714240B /* Pods_MMParallaxView_Example.framework */, 200 | 39D57AED49B797F24DAE8E98 /* Pods_MMParallaxView_Tests.framework */, 201 | ); 202 | name = Frameworks; 203 | sourceTree = ""; 204 | }; 205 | F34C02F6269F890524943233 /* Pods */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 63A9C60E9C9A068CD59DA2A1 /* Pods-MMParallaxView_Example.debug.xcconfig */, 209 | FCEA6653BA0B3910101E2CAE /* Pods-MMParallaxView_Example.release.xcconfig */, 210 | 8CC6058A3823604FE8262E20 /* Pods-MMParallaxView_Tests.debug.xcconfig */, 211 | F21A49367EB1C8FD4B49C648 /* Pods-MMParallaxView_Tests.release.xcconfig */, 212 | ); 213 | name = Pods; 214 | sourceTree = ""; 215 | }; 216 | /* End PBXGroup section */ 217 | 218 | /* Begin PBXNativeTarget section */ 219 | 607FACCF1AFB9204008FA782 /* MMParallaxView_Example */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MMParallaxView_Example" */; 222 | buildPhases = ( 223 | 2AC802A0FE072B51CD599C63 /* [CP] Check Pods Manifest.lock */, 224 | 607FACCC1AFB9204008FA782 /* Sources */, 225 | 607FACCD1AFB9204008FA782 /* Frameworks */, 226 | 607FACCE1AFB9204008FA782 /* Resources */, 227 | D74C152B8689DDB145737DE4 /* [CP] Embed Pods Frameworks */, 228 | 9255959793860E38319EA11C /* [CP] Copy Pods Resources */, 229 | ); 230 | buildRules = ( 231 | ); 232 | dependencies = ( 233 | ); 234 | name = MMParallaxView_Example; 235 | productName = MMParallaxView; 236 | productReference = 607FACD01AFB9204008FA782 /* MMParallaxView_Example.app */; 237 | productType = "com.apple.product-type.application"; 238 | }; 239 | 607FACE41AFB9204008FA782 /* MMParallaxView_Tests */ = { 240 | isa = PBXNativeTarget; 241 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MMParallaxView_Tests" */; 242 | buildPhases = ( 243 | 3CFC0728DA3FF5575603BFB1 /* [CP] Check Pods Manifest.lock */, 244 | 607FACE11AFB9204008FA782 /* Sources */, 245 | 607FACE21AFB9204008FA782 /* Frameworks */, 246 | 607FACE31AFB9204008FA782 /* Resources */, 247 | BF582DA44EAACBAB0B4EA498 /* [CP] Embed Pods Frameworks */, 248 | B0C77C8F277E9F78A1C53CF9 /* [CP] Copy Pods Resources */, 249 | ); 250 | buildRules = ( 251 | ); 252 | dependencies = ( 253 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 254 | ); 255 | name = MMParallaxView_Tests; 256 | productName = Tests; 257 | productReference = 607FACE51AFB9204008FA782 /* MMParallaxView_Tests.xctest */; 258 | productType = "com.apple.product-type.bundle.unit-test"; 259 | }; 260 | /* End PBXNativeTarget section */ 261 | 262 | /* Begin PBXProject section */ 263 | 607FACC81AFB9204008FA782 /* Project object */ = { 264 | isa = PBXProject; 265 | attributes = { 266 | LastSwiftUpdateCheck = 0830; 267 | LastUpgradeCheck = 0830; 268 | ORGANIZATIONNAME = CocoaPods; 269 | TargetAttributes = { 270 | 607FACCF1AFB9204008FA782 = { 271 | CreatedOnToolsVersion = 6.3.1; 272 | DevelopmentTeam = BSPD9WB6WT; 273 | LastSwiftMigration = 0900; 274 | }; 275 | 607FACE41AFB9204008FA782 = { 276 | CreatedOnToolsVersion = 6.3.1; 277 | DevelopmentTeam = Q4F8GN9847; 278 | LastSwiftMigration = 0900; 279 | TestTargetID = 607FACCF1AFB9204008FA782; 280 | }; 281 | }; 282 | }; 283 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MMParallaxView" */; 284 | compatibilityVersion = "Xcode 3.2"; 285 | developmentRegion = English; 286 | hasScannedForEncodings = 0; 287 | knownRegions = ( 288 | English, 289 | en, 290 | Base, 291 | ); 292 | mainGroup = 607FACC71AFB9204008FA782; 293 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 294 | projectDirPath = ""; 295 | projectRoot = ""; 296 | targets = ( 297 | 607FACCF1AFB9204008FA782 /* MMParallaxView_Example */, 298 | 607FACE41AFB9204008FA782 /* MMParallaxView_Tests */, 299 | ); 300 | }; 301 | /* End PBXProject section */ 302 | 303 | /* Begin PBXResourcesBuildPhase section */ 304 | 607FACCE1AFB9204008FA782 /* Resources */ = { 305 | isa = PBXResourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | 5EE6854B20BEF8C9006E38CF /* TitleCell.xib in Resources */, 309 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 310 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 311 | 5E82B23120C267DC00CB439E /* ImageCell.xib in Resources */, 312 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 607FACE31AFB9204008FA782 /* Resources */ = { 317 | isa = PBXResourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | /* End PBXResourcesBuildPhase section */ 324 | 325 | /* Begin PBXShellScriptBuildPhase section */ 326 | 2AC802A0FE072B51CD599C63 /* [CP] Check Pods Manifest.lock */ = { 327 | isa = PBXShellScriptBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | ); 331 | inputPaths = ( 332 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 333 | "${PODS_ROOT}/Manifest.lock", 334 | ); 335 | name = "[CP] Check Pods Manifest.lock"; 336 | outputPaths = ( 337 | "$(DERIVED_FILE_DIR)/Pods-MMParallaxView_Example-checkManifestLockResult.txt", 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | shellPath = /bin/sh; 341 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 342 | showEnvVarsInLog = 0; 343 | }; 344 | 3CFC0728DA3FF5575603BFB1 /* [CP] Check Pods Manifest.lock */ = { 345 | isa = PBXShellScriptBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | ); 349 | inputPaths = ( 350 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 351 | "${PODS_ROOT}/Manifest.lock", 352 | ); 353 | name = "[CP] Check Pods Manifest.lock"; 354 | outputPaths = ( 355 | "$(DERIVED_FILE_DIR)/Pods-MMParallaxView_Tests-checkManifestLockResult.txt", 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | shellPath = /bin/sh; 359 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 360 | showEnvVarsInLog = 0; 361 | }; 362 | 9255959793860E38319EA11C /* [CP] Copy Pods Resources */ = { 363 | isa = PBXShellScriptBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | inputPaths = ( 368 | ); 369 | name = "[CP] Copy Pods Resources"; 370 | outputPaths = ( 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | shellPath = /bin/sh; 374 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-resources.sh\"\n"; 375 | showEnvVarsInLog = 0; 376 | }; 377 | B0C77C8F277E9F78A1C53CF9 /* [CP] Copy Pods Resources */ = { 378 | isa = PBXShellScriptBuildPhase; 379 | buildActionMask = 2147483647; 380 | files = ( 381 | ); 382 | inputPaths = ( 383 | ); 384 | name = "[CP] Copy Pods Resources"; 385 | outputPaths = ( 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | shellPath = /bin/sh; 389 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-resources.sh\"\n"; 390 | showEnvVarsInLog = 0; 391 | }; 392 | BF582DA44EAACBAB0B4EA498 /* [CP] Embed Pods Frameworks */ = { 393 | isa = PBXShellScriptBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | ); 397 | inputPaths = ( 398 | ); 399 | name = "[CP] Embed Pods Frameworks"; 400 | outputPaths = ( 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | shellPath = /bin/sh; 404 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-frameworks.sh\"\n"; 405 | showEnvVarsInLog = 0; 406 | }; 407 | D74C152B8689DDB145737DE4 /* [CP] Embed Pods Frameworks */ = { 408 | isa = PBXShellScriptBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | ); 412 | inputPaths = ( 413 | "${SRCROOT}/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-frameworks.sh", 414 | "${BUILT_PRODUCTS_DIR}/MMParallaxView/MMParallaxView.framework", 415 | ); 416 | name = "[CP] Embed Pods Frameworks"; 417 | outputPaths = ( 418 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MMParallaxView.framework", 419 | ); 420 | runOnlyForDeploymentPostprocessing = 0; 421 | shellPath = /bin/sh; 422 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-frameworks.sh\"\n"; 423 | showEnvVarsInLog = 0; 424 | }; 425 | /* End PBXShellScriptBuildPhase section */ 426 | 427 | /* Begin PBXSourcesBuildPhase section */ 428 | 607FACCC1AFB9204008FA782 /* Sources */ = { 429 | isa = PBXSourcesBuildPhase; 430 | buildActionMask = 2147483647; 431 | files = ( 432 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 433 | 5EE6854A20BEF8C9006E38CF /* TitleCell.swift in Sources */, 434 | 5E82B23020C267DC00CB439E /* ImageCell.swift in Sources */, 435 | 5EDC765620C5BF5E00CA81EB /* MapViewController.swift in Sources */, 436 | 5EE6853C20BEEE29006E38CF /* DemoListViewController.swift in Sources */, 437 | 5E82B22B20C24B0300CB439E /* ChildTopViewController.swift in Sources */, 438 | 5EFD65AC20C19B88001258EE /* SecondViewController.swift in Sources */, 439 | 5E82B22920C24AFC00CB439E /* ChildBottomViewController.swift in Sources */, 440 | 5E82B22D20C24C5A00CB439E /* ChildPresentViewController.swift in Sources */, 441 | 5EE6853E20BEEE77006E38CF /* SimpleViewController.swift in Sources */, 442 | ); 443 | runOnlyForDeploymentPostprocessing = 0; 444 | }; 445 | 607FACE11AFB9204008FA782 /* Sources */ = { 446 | isa = PBXSourcesBuildPhase; 447 | buildActionMask = 2147483647; 448 | files = ( 449 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 450 | ); 451 | runOnlyForDeploymentPostprocessing = 0; 452 | }; 453 | /* End PBXSourcesBuildPhase section */ 454 | 455 | /* Begin PBXTargetDependency section */ 456 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 457 | isa = PBXTargetDependency; 458 | target = 607FACCF1AFB9204008FA782 /* MMParallaxView_Example */; 459 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 460 | }; 461 | /* End PBXTargetDependency section */ 462 | 463 | /* Begin PBXVariantGroup section */ 464 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 465 | isa = PBXVariantGroup; 466 | children = ( 467 | 607FACDA1AFB9204008FA782 /* Base */, 468 | ); 469 | name = Main.storyboard; 470 | sourceTree = ""; 471 | }; 472 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 473 | isa = PBXVariantGroup; 474 | children = ( 475 | 607FACDF1AFB9204008FA782 /* Base */, 476 | ); 477 | name = LaunchScreen.xib; 478 | sourceTree = ""; 479 | }; 480 | /* End PBXVariantGroup section */ 481 | 482 | /* Begin XCBuildConfiguration section */ 483 | 607FACED1AFB9204008FA782 /* Debug */ = { 484 | isa = XCBuildConfiguration; 485 | buildSettings = { 486 | ALWAYS_SEARCH_USER_PATHS = NO; 487 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 488 | CLANG_CXX_LIBRARY = "libc++"; 489 | CLANG_ENABLE_MODULES = YES; 490 | CLANG_ENABLE_OBJC_ARC = YES; 491 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 492 | CLANG_WARN_BOOL_CONVERSION = YES; 493 | CLANG_WARN_COMMA = YES; 494 | CLANG_WARN_CONSTANT_CONVERSION = YES; 495 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 496 | CLANG_WARN_EMPTY_BODY = YES; 497 | CLANG_WARN_ENUM_CONVERSION = YES; 498 | CLANG_WARN_INFINITE_RECURSION = YES; 499 | CLANG_WARN_INT_CONVERSION = YES; 500 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 501 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 502 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 503 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 504 | CLANG_WARN_STRICT_PROTOTYPES = YES; 505 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 506 | CLANG_WARN_UNREACHABLE_CODE = YES; 507 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 508 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 509 | COPY_PHASE_STRIP = NO; 510 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 511 | ENABLE_STRICT_OBJC_MSGSEND = YES; 512 | ENABLE_TESTABILITY = YES; 513 | GCC_C_LANGUAGE_STANDARD = gnu99; 514 | GCC_DYNAMIC_NO_PIC = NO; 515 | GCC_NO_COMMON_BLOCKS = YES; 516 | GCC_OPTIMIZATION_LEVEL = 0; 517 | GCC_PREPROCESSOR_DEFINITIONS = ( 518 | "DEBUG=1", 519 | "$(inherited)", 520 | ); 521 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 522 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 523 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 524 | GCC_WARN_UNDECLARED_SELECTOR = YES; 525 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 526 | GCC_WARN_UNUSED_FUNCTION = YES; 527 | GCC_WARN_UNUSED_VARIABLE = YES; 528 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 529 | MTL_ENABLE_DEBUG_INFO = YES; 530 | ONLY_ACTIVE_ARCH = YES; 531 | SDKROOT = iphoneos; 532 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 533 | }; 534 | name = Debug; 535 | }; 536 | 607FACEE1AFB9204008FA782 /* Release */ = { 537 | isa = XCBuildConfiguration; 538 | buildSettings = { 539 | ALWAYS_SEARCH_USER_PATHS = NO; 540 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 541 | CLANG_CXX_LIBRARY = "libc++"; 542 | CLANG_ENABLE_MODULES = YES; 543 | CLANG_ENABLE_OBJC_ARC = YES; 544 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 545 | CLANG_WARN_BOOL_CONVERSION = YES; 546 | CLANG_WARN_COMMA = YES; 547 | CLANG_WARN_CONSTANT_CONVERSION = YES; 548 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 549 | CLANG_WARN_EMPTY_BODY = YES; 550 | CLANG_WARN_ENUM_CONVERSION = YES; 551 | CLANG_WARN_INFINITE_RECURSION = YES; 552 | CLANG_WARN_INT_CONVERSION = YES; 553 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 554 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 555 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 556 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 557 | CLANG_WARN_STRICT_PROTOTYPES = YES; 558 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 559 | CLANG_WARN_UNREACHABLE_CODE = YES; 560 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 561 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 562 | COPY_PHASE_STRIP = NO; 563 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 564 | ENABLE_NS_ASSERTIONS = NO; 565 | ENABLE_STRICT_OBJC_MSGSEND = YES; 566 | GCC_C_LANGUAGE_STANDARD = gnu99; 567 | GCC_NO_COMMON_BLOCKS = YES; 568 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 569 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 570 | GCC_WARN_UNDECLARED_SELECTOR = YES; 571 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 572 | GCC_WARN_UNUSED_FUNCTION = YES; 573 | GCC_WARN_UNUSED_VARIABLE = YES; 574 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 575 | MTL_ENABLE_DEBUG_INFO = NO; 576 | SDKROOT = iphoneos; 577 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 578 | VALIDATE_PRODUCT = YES; 579 | }; 580 | name = Release; 581 | }; 582 | 607FACF01AFB9204008FA782 /* Debug */ = { 583 | isa = XCBuildConfiguration; 584 | baseConfigurationReference = 63A9C60E9C9A068CD59DA2A1 /* Pods-MMParallaxView_Example.debug.xcconfig */; 585 | buildSettings = { 586 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 587 | DEVELOPMENT_TEAM = BSPD9WB6WT; 588 | INFOPLIST_FILE = MMParallaxView/Info.plist; 589 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 590 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 591 | MODULE_NAME = ExampleApp; 592 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 593 | PRODUCT_NAME = "$(TARGET_NAME)"; 594 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 595 | SWIFT_VERSION = 5.0; 596 | }; 597 | name = Debug; 598 | }; 599 | 607FACF11AFB9204008FA782 /* Release */ = { 600 | isa = XCBuildConfiguration; 601 | baseConfigurationReference = FCEA6653BA0B3910101E2CAE /* Pods-MMParallaxView_Example.release.xcconfig */; 602 | buildSettings = { 603 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 604 | DEVELOPMENT_TEAM = BSPD9WB6WT; 605 | INFOPLIST_FILE = MMParallaxView/Info.plist; 606 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 607 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 608 | MODULE_NAME = ExampleApp; 609 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 610 | PRODUCT_NAME = "$(TARGET_NAME)"; 611 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 612 | SWIFT_VERSION = 5.0; 613 | }; 614 | name = Release; 615 | }; 616 | 607FACF31AFB9204008FA782 /* Debug */ = { 617 | isa = XCBuildConfiguration; 618 | baseConfigurationReference = 8CC6058A3823604FE8262E20 /* Pods-MMParallaxView_Tests.debug.xcconfig */; 619 | buildSettings = { 620 | DEVELOPMENT_TEAM = Q4F8GN9847; 621 | FRAMEWORK_SEARCH_PATHS = ( 622 | "$(SDKROOT)/Developer/Library/Frameworks", 623 | "$(inherited)", 624 | ); 625 | GCC_PREPROCESSOR_DEFINITIONS = ( 626 | "DEBUG=1", 627 | "$(inherited)", 628 | ); 629 | INFOPLIST_FILE = Tests/Info.plist; 630 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 631 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 632 | PRODUCT_NAME = "$(TARGET_NAME)"; 633 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 634 | SWIFT_VERSION = 5.0; 635 | }; 636 | name = Debug; 637 | }; 638 | 607FACF41AFB9204008FA782 /* Release */ = { 639 | isa = XCBuildConfiguration; 640 | baseConfigurationReference = F21A49367EB1C8FD4B49C648 /* Pods-MMParallaxView_Tests.release.xcconfig */; 641 | buildSettings = { 642 | DEVELOPMENT_TEAM = Q4F8GN9847; 643 | FRAMEWORK_SEARCH_PATHS = ( 644 | "$(SDKROOT)/Developer/Library/Frameworks", 645 | "$(inherited)", 646 | ); 647 | INFOPLIST_FILE = Tests/Info.plist; 648 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 649 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 650 | PRODUCT_NAME = "$(TARGET_NAME)"; 651 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 652 | SWIFT_VERSION = 5.0; 653 | }; 654 | name = Release; 655 | }; 656 | /* End XCBuildConfiguration section */ 657 | 658 | /* Begin XCConfigurationList section */ 659 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MMParallaxView" */ = { 660 | isa = XCConfigurationList; 661 | buildConfigurations = ( 662 | 607FACED1AFB9204008FA782 /* Debug */, 663 | 607FACEE1AFB9204008FA782 /* Release */, 664 | ); 665 | defaultConfigurationIsVisible = 0; 666 | defaultConfigurationName = Release; 667 | }; 668 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MMParallaxView_Example" */ = { 669 | isa = XCConfigurationList; 670 | buildConfigurations = ( 671 | 607FACF01AFB9204008FA782 /* Debug */, 672 | 607FACF11AFB9204008FA782 /* Release */, 673 | ); 674 | defaultConfigurationIsVisible = 0; 675 | defaultConfigurationName = Release; 676 | }; 677 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MMParallaxView_Tests" */ = { 678 | isa = XCConfigurationList; 679 | buildConfigurations = ( 680 | 607FACF31AFB9204008FA782 /* Debug */, 681 | 607FACF41AFB9204008FA782 /* Release */, 682 | ); 683 | defaultConfigurationIsVisible = 0; 684 | defaultConfigurationName = Release; 685 | }; 686 | /* End XCConfigurationList section */ 687 | }; 688 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 689 | } 690 | -------------------------------------------------------------------------------- /Example/MMParallaxView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/MMParallaxView.xcodeproj/xcshareddata/xcschemes/MMParallaxView-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/MMParallaxView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/MMParallaxView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/MMParallaxView.xcworkspace/xcuserdata/millmanyang.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/Example/MMParallaxView.xcworkspace/xcuserdata/millmanyang.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Example/MMParallaxView.xcworkspace/xcuserdata/millmanyang.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Example/MMParallaxView/0001095.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/Example/MMParallaxView/0001095.jpg -------------------------------------------------------------------------------- /Example/MMParallaxView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // MMParallaxView 4 | // 5 | // Created by millmanyang@gmail.com on 05/30/2018. 6 | // Copyright (c) 2018 millmanyang@gmail.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 163 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Cell/ImageCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ImageCell.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/6/2. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ImageCell: UITableViewCell { 12 | 13 | @IBOutlet weak var labTitle: UILabel! 14 | @IBOutlet weak var imgView: UIImageView! 15 | override func awakeFromNib() { 16 | super.awakeFromNib() 17 | // Initialization code 18 | } 19 | 20 | func set(title: String, img: UIImage) { 21 | self.labTitle.text = title 22 | self.imgView.image = img 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Cell/ImageCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Cell/TitleCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TitleCell.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/5/30. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TitleCell: UITableViewCell { 12 | @IBOutlet weak var labTitle: UILabel! 13 | override func awakeFromNib() { 14 | super.awakeFromNib() 15 | // Initialization code 16 | } 17 | 18 | func set(title: String) { 19 | self.labTitle.text = title 20 | } 21 | override func setSelected(_ selected: Bool, animated: Bool) { 22 | super.setSelected(selected, animated: animated) 23 | 24 | // Configure the view for the selected state 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Cell/TitleCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/MMParallaxView/DemoListViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DemoListViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/5/30. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class DemoListViewController: UITableViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | // Uncomment the following line to preserve selection between presentations 17 | // self.clearsSelectionOnViewWillAppear = false 18 | 19 | // Uncomment the following line to display an Edit button in the navigation bar for this view controller. 20 | // self.navigationItem.rightBarButtonItem = self.editButtonItem 21 | } 22 | 23 | override func didReceiveMemoryWarning() { 24 | super.didReceiveMemoryWarning() 25 | // Dispose of any resources that can be recreated. 26 | } 27 | 28 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 29 | let identifier = "sample\(indexPath.row)" 30 | self.performSegue(withIdentifier: identifier, sender: nil) 31 | } 32 | 33 | 34 | /* 35 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 36 | let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath) 37 | 38 | // Configure the cell... 39 | 40 | return cell 41 | } 42 | */ 43 | 44 | /* 45 | // Override to support conditional editing of the table view. 46 | override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { 47 | // Return false if you do not want the specified item to be editable. 48 | return true 49 | } 50 | */ 51 | 52 | /* 53 | // Override to support editing the table view. 54 | override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) { 55 | if editingStyle == .delete { 56 | // Delete the row from the data source 57 | tableView.deleteRows(at: [indexPath], with: .fade) 58 | } else if editingStyle == .insert { 59 | // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view 60 | } 61 | } 62 | */ 63 | 64 | /* 65 | // Override to support rearranging the table view. 66 | override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { 67 | 68 | } 69 | */ 70 | 71 | /* 72 | // Override to support conditional rearranging of the table view. 73 | override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { 74 | // Return false if you do not want the item to be re-orderable. 75 | return true 76 | } 77 | */ 78 | 79 | /* 80 | // MARK: - Navigation 81 | 82 | // In a storyboard-based application, you will often want to do a little preparation before navigation 83 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 84 | // Get the new view controller using segue.destinationViewController. 85 | // Pass the selected object to the new view controller. 86 | } 87 | */ 88 | 89 | } 90 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo1.imageset/0001095 (1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/Example/MMParallaxView/Images.xcassets/demo1.imageset/0001095 (1).jpg -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "0001095 (1).jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "demo2.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo2.imageset/demo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/Example/MMParallaxView/Images.xcassets/demo2.imageset/demo2.jpg -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "demo3.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo3.imageset/demo3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/Example/MMParallaxView/Images.xcassets/demo3.imageset/demo3.jpg -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "demo4.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/MMParallaxView/Images.xcassets/demo4.imageset/demo4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/Example/MMParallaxView/Images.xcassets/demo4.imageset/demo4.jpg -------------------------------------------------------------------------------- /Example/MMParallaxView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSLocationAlwaysAndWhenInUseUsageDescription 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/MMParallaxView/ParallaxController/ChildBottomViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ChildBottomViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/6/2. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | let list = [("demo1", #imageLiteral(resourceName: "demo1")), ("demo2", #imageLiteral(resourceName: "demo2")),("demo3", #imageLiteral(resourceName: "demo3")) ,("demo4", #imageLiteral(resourceName: "demo4"))] 11 | class ChildBottomViewController: UIViewController { 12 | @IBOutlet weak var tableView: UITableView! 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | self.view.backgroundColor = UIColor.clear 17 | self.tableView.radius(r: 10) 18 | self.view.shadow(radius: 10, opacity: 0.1, offset: CGSize.init(width: 0, height: -10)) 19 | tableView.register(UINib.init(nibName: "ImageCell", bundle: nil), forCellReuseIdentifier: "ImageCell") 20 | } 21 | } 22 | 23 | extension ChildBottomViewController: UITableViewDelegate { 24 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 25 | DispatchQueue.main.async { [weak self] in 26 | tableView.deselectRow(at: indexPath, animated: true) 27 | let child = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ChildPresentViewController") as! ChildPresentViewController 28 | child.info = list[indexPath.row].0 29 | child.img = list[indexPath.row].1 30 | child.modalPresentationStyle = .overCurrentContext 31 | self?.present(child, animated: true, completion: nil) 32 | } 33 | } 34 | } 35 | 36 | extension ChildBottomViewController: UITableViewDataSource { 37 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 38 | return list.count 39 | } 40 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 41 | let cell = tableView.dequeueReusableCell(withIdentifier: "ImageCell", for: indexPath) as! ImageCell 42 | let data = list[indexPath.row] 43 | cell.set(title: data.0, img: data.1) 44 | // cell.selectionStyle = .none 45 | return cell 46 | } 47 | } 48 | 49 | extension UIView { 50 | func shadow(radius: Float, opacity: Float = 0.5, offset: CGSize = CGSize(width: 0, height: 1)) { 51 | self.layer.shadowOffset = offset 52 | self.layer.shadowColor = UIColor.black.cgColor 53 | self.layer.shadowOpacity = opacity 54 | self.layer.shadowRadius = CGFloat(radius) 55 | self.clipsToBounds = false 56 | } 57 | 58 | func radius(r: CGFloat) { 59 | self.layer.cornerRadius = r 60 | self.clipsToBounds = true 61 | } 62 | } 63 | 64 | -------------------------------------------------------------------------------- /Example/MMParallaxView/ParallaxController/ChildPresentViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ChildPresentViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/6/2. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ChildPresentViewController: UIViewController { 12 | @IBOutlet weak var labTitle: UILabel! 13 | @IBOutlet weak var imgView: UIImageView! 14 | var info: String? 15 | var img: UIImage? 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | self.labTitle.text = info 19 | self.imgView.image = img 20 | self.view.radius(r: 10) 21 | // Do any additional setup after loading the view. 22 | } 23 | 24 | override func didReceiveMemoryWarning() { 25 | super.didReceiveMemoryWarning() 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | 30 | @IBAction func dismissAction() { 31 | self.dismiss(animated: true, completion: nil) 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Example/MMParallaxView/ParallaxController/ChildTopViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ChildTopViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/6/2. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ChildTopViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | 25 | /* 26 | // MARK: - Navigation 27 | 28 | // In a storyboard-based application, you will often want to do a little preparation before navigation 29 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 30 | // Get the new view controller using segue.destinationViewController. 31 | // Pass the selected object to the new view controller. 32 | } 33 | */ 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Example/MMParallaxView/ParallaxController/MapViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MapViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/6/5. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MapKit 11 | class MapViewController: UIViewController { 12 | @IBOutlet weak var mapView: MKMapView! 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | 25 | /* 26 | // MARK: - Navigation 27 | 28 | // In a storyboard-based application, you will often want to do a little preparation before navigation 29 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 30 | // Get the new view controller using segue.destinationViewController. 31 | // Pass the selected object to the new view controller. 32 | } 33 | */ 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Example/MMParallaxView/ParallaxController/SecondViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/6/1. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MMParallaxView 11 | class SecondViewController: MMParallaxViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | self.navigationItem.title = "Demo2" 16 | self.performSegue(withIdentifier: "MMParallaxTop", sender: nil) 17 | self.performSegue(withIdentifier: "MMParallaxBottom", sender: nil) 18 | 19 | parallaxView.pauseLocation = 0.5 20 | parallaxView.parallaxTopShiftRate = 1.0 21 | parallaxView.topMargin = 100 22 | parallaxView.heightType = .percentHeight(value: 0.7) 23 | parallaxView.shiftStatus = { [weak self] (status) in 24 | switch status { 25 | case .hide: 26 | print("upper") 27 | case .show: 28 | print("lower") 29 | case .percent(let value): 30 | if value < 0.5 { 31 | self?.parallaxView.maskAlpha = 0.0 32 | } else { 33 | print(value*0.5) 34 | self?.parallaxView.maskAlpha = (value-0.5)*0.5 35 | } 36 | } 37 | } 38 | parallaxView.parallaxBottomOffsetTop = -10 39 | } 40 | 41 | override func didReceiveMemoryWarning() { 42 | super.didReceiveMemoryWarning() 43 | // Dispose of any resources that can be recreated. 44 | } 45 | 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /Example/MMParallaxView/Simple/SimpleViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleViewController.swift 3 | // MMParallaxView_Example 4 | // 5 | // Created by Millman YANG on 2018/5/30. 6 | // Copyright © 2018年 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MMParallaxView 11 | private let listTitle = ["Hide top View", 12 | "Show top view", 13 | "Top view height 400", 14 | "Top height 0.5 of parallax height", 15 | "Set top margin 64", 16 | "Set top margin 0", 17 | "Set pauseLocation 0.5", 18 | "Set PauseLocation 0", 19 | "Top View Shift Rate 1.0", 20 | "Top View Shift Rate 2.0", 21 | "Demo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View ContextDemo Parallax View Context"] 22 | private let listSection2 = [("demo1", #imageLiteral(resourceName: "demo1")), ("demo2", #imageLiteral(resourceName: "demo2")),("demo3", #imageLiteral(resourceName: "demo3")) ,("demo4", #imageLiteral(resourceName: "demo4"))] 23 | 24 | class SimpleViewController: UIViewController { 25 | @IBOutlet weak var tableView: UITableView! 26 | @IBOutlet weak var parallaxView: MMParallaxView! 27 | @IBOutlet weak var imgView: UIImageView! 28 | override func viewDidLoad() { 29 | super.viewDidLoad() 30 | self.navigationItem.title = "Demo1" 31 | tableView.contentInset = UIEdgeInsets.init(top: 100, left: 0, bottom: 0, right: 0) 32 | tableView.register(UINib.init(nibName: "ImageCell", bundle: nil), forCellReuseIdentifier: "ImageCell") 33 | tableView.register(UINib.init(nibName: "TitleCell", bundle: nil), forCellReuseIdentifier: "TitleCell") 34 | parallaxView.heightType = .dependOnIntrinsicContent 35 | parallaxView.autoScrollWhenHide = true 36 | parallaxView.shiftStatus = { [weak self] (status) in 37 | switch status { 38 | case .hide: 39 | break 40 | // print("upper") 41 | case .show: 42 | break 43 | // print("lower") 44 | case .percent(let value): 45 | self?.parallaxView.maskAlpha = value*0.5 46 | } 47 | } 48 | } 49 | } 50 | 51 | extension SimpleViewController: UITableViewDelegate { 52 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 53 | tableView.deselectRow(at: indexPath, animated: true) 54 | if indexPath.section != 0 { 55 | return 56 | } 57 | switch indexPath.row { 58 | case 0: 59 | parallaxView.hideTopView() 60 | case 1: 61 | parallaxView.showTopView() 62 | case 2: 63 | parallaxView.heightType = .height(value: 400) 64 | case 3: 65 | parallaxView.heightType = .percentHeight(value: 0.5) 66 | case 4: 67 | parallaxView.topMargin = 64 68 | case 5: 69 | parallaxView.topMargin = 0 70 | case 6: 71 | parallaxView.pauseLocation = 0.5 72 | case 7: 73 | parallaxView.pauseLocation = nil 74 | case 8: 75 | parallaxView.parallaxTopShiftRate = 1.0 76 | case 9: 77 | parallaxView.parallaxTopShiftRate = 2.0 78 | default: 79 | break 80 | } 81 | } 82 | } 83 | 84 | extension SimpleViewController: UITableViewDataSource { 85 | func numberOfSections(in tableView: UITableView) -> Int { 86 | return 2 87 | } 88 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 89 | return section == 0 ? listTitle.count : listSection2.count 90 | } 91 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 92 | if indexPath.section == 0 { 93 | let cell = tableView.dequeueReusableCell(withIdentifier: "TitleCell", for: indexPath) as! TitleCell 94 | cell.set(title: listTitle[indexPath.row]) 95 | return cell 96 | } else { 97 | let cell = tableView.dequeueReusableCell(withIdentifier: "ImageCell", for: indexPath) as! ImageCell 98 | cell.set(title: listSection2[indexPath.row].0, img: listSection2[indexPath.row].1) 99 | return cell 100 | } 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'MMParallaxView_Example' do 4 | pod 'MMParallaxView', :path => '../' 5 | 6 | target 'MMParallaxView_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MMParallaxView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MMParallaxView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MMParallaxView: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | MMParallaxView: c2d3b08f429a849348360e3e20b2d98fcf00bb70 13 | 14 | PODFILE CHECKSUM: 501cfe7e7e50b8cd1bafe3ed0bfc5d1cc1b8c6f0 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/MMParallaxView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MMParallaxView", 3 | "version": "0.1.0", 4 | "summary": "A short description of MMParallaxView.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/millmanyang@gmail.com/MMParallaxView", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "millmanyang@gmail.com": "millmanyang@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/millmanyang@gmail.com/MMParallaxView.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "MMParallaxView/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MMParallaxView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - MMParallaxView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MMParallaxView: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | MMParallaxView: c2d3b08f429a849348360e3e20b2d98fcf00bb70 13 | 14 | PODFILE CHECKSUM: 501cfe7e7e50b8cd1bafe3ed0bfc5d1cc1b8c6f0 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1962DF784A5A736C8A367B36F08BBD08 /* Pods-MMParallaxView_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0325A78BA336607239B62C39A6F60FD9 /* Pods-MMParallaxView_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 1D8B4FED82B688049DA2F6DA7F0A1BD6 /* MMParallaxView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 43644A15402D6E714EC946E8A09DBEA4 /* MMParallaxView-dummy.m */; }; 12 | 27119845614CA9EC7AFBAF42B6D748D7 /* MMParallaxView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C9551A185F8FB7486F88579F942E5EE /* MMParallaxView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 454461EED9158B18743D6B94306AA42C /* Pods-MMParallaxView_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EE384AEB1ECDDD8AB94084D0D09FF96 /* Pods-MMParallaxView_Tests-dummy.m */; }; 14 | 5EA4158E20C5B241008B0B0C /* CGFLoat+Decimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EA4158D20C5B241008B0B0C /* CGFLoat+Decimal.swift */; }; 15 | 5EA4158F20C5B241008B0B0C /* CGFLoat+Decimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EA4158D20C5B241008B0B0C /* CGFLoat+Decimal.swift */; }; 16 | 5EDC765820C637F400CA81EB /* UIViewController+Parallax+Find.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EDC765720C637F400CA81EB /* UIViewController+Parallax+Find.swift */; }; 17 | 5EDC765920C637F400CA81EB /* UIViewController+Parallax+Find.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EDC765720C637F400CA81EB /* UIViewController+Parallax+Find.swift */; }; 18 | 5EE6854120BEF3D4006E38CF /* MMParallaxViewDefine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6853F20BEF3D4006E38CF /* MMParallaxViewDefine.swift */; }; 19 | 5EE6854220BEF3D4006E38CF /* MMParallaxViewDefine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6853F20BEF3D4006E38CF /* MMParallaxViewDefine.swift */; }; 20 | 5EE6854320BEF3D4006E38CF /* MMParallaxView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6854020BEF3D4006E38CF /* MMParallaxView.swift */; }; 21 | 5EE6854420BEF3D4006E38CF /* MMParallaxView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE6854020BEF3D4006E38CF /* MMParallaxView.swift */; }; 22 | 5EFD65A920C19B07001258EE /* MMParallaxViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EFD65A820C19B07001258EE /* MMParallaxViewController.swift */; }; 23 | 5EFD65AA20C19B07001258EE /* MMParallaxViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EFD65A820C19B07001258EE /* MMParallaxViewController.swift */; }; 24 | 91BE254FAFBC3425D06AF2CBCFA39EED /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 25 | 91FE50C951734EF6392B9D8BD25D11A7 /* Pods-MMParallaxView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E73565BFBABE3C6B037EA45305689B5E /* Pods-MMParallaxView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 26 | B5BA05BDF1A17B901F0B9667799D7C6D /* Pods-MMParallaxView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 46B1BAC42F95A84C21E4189072546164 /* Pods-MMParallaxView_Example-dummy.m */; }; 27 | BD5AFDAC071E13EE3E5F5165511E05C3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 28 | F9D7E289231D6946F6E2C502EC32EB62 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | 2DB1759E7B717C5DAD2CC1A19C1AFEE1 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = 00946656900DA76738CD3046658F1535; 37 | remoteInfo = MMParallaxView; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 0325A78BA336607239B62C39A6F60FD9 /* Pods-MMParallaxView_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MMParallaxView_Tests-umbrella.h"; sourceTree = ""; }; 43 | 0F988D6DAEE9070CCEB8E4B613ECF11B /* MMParallaxView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MMParallaxView.xcconfig; sourceTree = ""; }; 44 | 115350309794B8F23B982A7179F383F7 /* MMParallaxView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MMParallaxView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 134ABC8FEEACC4E74917C29A3E3A80FA /* Pods-MMParallaxView_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MMParallaxView_Tests-acknowledgements.plist"; sourceTree = ""; }; 46 | 16CE7E12F49D9D9D4DC31ADF5C92C55B /* Pods-MMParallaxView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MMParallaxView_Tests.debug.xcconfig"; sourceTree = ""; }; 47 | 3399618E39457BBF418CF8CEFA69D8F5 /* Pods-MMParallaxView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MMParallaxView_Example-frameworks.sh"; sourceTree = ""; }; 48 | 39C8D1D7500C280917C8661BD14710B5 /* Pods_MMParallaxView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MMParallaxView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 43644A15402D6E714EC946E8A09DBEA4 /* MMParallaxView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MMParallaxView-dummy.m"; sourceTree = ""; }; 50 | 43C2B477D5299A366E1EB7D60690A403 /* Pods-MMParallaxView_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MMParallaxView_Example-resources.sh"; sourceTree = ""; }; 51 | 46B1BAC42F95A84C21E4189072546164 /* Pods-MMParallaxView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MMParallaxView_Example-dummy.m"; sourceTree = ""; }; 52 | 4711B1B5E35BCCE17DBDD7F410C92328 /* Pods-MMParallaxView_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MMParallaxView_Tests-acknowledgements.markdown"; sourceTree = ""; }; 53 | 4BFA473F5482D936E3861F642A96FC28 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | 5D024D411001E597C088BEB3A0D436BE /* Pods-MMParallaxView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-MMParallaxView_Example.modulemap"; sourceTree = ""; }; 55 | 5EA4158D20C5B241008B0B0C /* CGFLoat+Decimal.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "CGFLoat+Decimal.swift"; path = "MMParallaxView/Classes/CGFLoat+Decimal.swift"; sourceTree = ""; }; 56 | 5EDC765720C637F400CA81EB /* UIViewController+Parallax+Find.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "UIViewController+Parallax+Find.swift"; path = "MMParallaxView/Classes/UIViewController+Parallax+Find.swift"; sourceTree = ""; }; 57 | 5EE384AEB1ECDDD8AB94084D0D09FF96 /* Pods-MMParallaxView_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MMParallaxView_Tests-dummy.m"; sourceTree = ""; }; 58 | 5EE6853F20BEF3D4006E38CF /* MMParallaxViewDefine.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MMParallaxViewDefine.swift; path = MMParallaxView/Classes/MMParallaxViewDefine.swift; sourceTree = ""; }; 59 | 5EE6854020BEF3D4006E38CF /* MMParallaxView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MMParallaxView.swift; path = MMParallaxView/Classes/MMParallaxView.swift; sourceTree = ""; }; 60 | 5EFD65A820C19B07001258EE /* MMParallaxViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MMParallaxViewController.swift; path = MMParallaxView/Classes/MMParallaxViewController.swift; sourceTree = ""; }; 61 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 62 | 74609F82AA040B0354E0913CFF5CD06B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | 7BAF038648D8C735C998BE83AD644696 /* Pods-MMParallaxView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MMParallaxView_Example.release.xcconfig"; sourceTree = ""; }; 64 | 7C9551A185F8FB7486F88579F942E5EE /* MMParallaxView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MMParallaxView-umbrella.h"; sourceTree = ""; }; 65 | 7D598EE188B5B03374C754CD088EBF40 /* MMParallaxView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MMParallaxView-prefix.pch"; sourceTree = ""; }; 66 | 839922507F3FFDB7DAFD2FB400BA898F /* Pods-MMParallaxView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MMParallaxView_Example-acknowledgements.plist"; sourceTree = ""; }; 67 | 8BAFBFC1CA3DEB40D49FD06C32F77E93 /* Pods-MMParallaxView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MMParallaxView_Tests.release.xcconfig"; sourceTree = ""; }; 68 | 8D134714A7F0670EC18AA5AED1C92BA0 /* Pods-MMParallaxView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MMParallaxView_Example-acknowledgements.markdown"; sourceTree = ""; }; 69 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 70 | 93DEC8A7BF778381A70A1191C94A2338 /* MMParallaxView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = MMParallaxView.modulemap; sourceTree = ""; }; 71 | A83A1261D9442AD7E739990994DA1D78 /* Pods-MMParallaxView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MMParallaxView_Example.debug.xcconfig"; sourceTree = ""; }; 72 | C5ACA0E62D578544DCE630067E838829 /* Pods-MMParallaxView_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-MMParallaxView_Tests.modulemap"; sourceTree = ""; }; 73 | D432FCCA556EE2AB1C8935348B6103E0 /* Pods-MMParallaxView_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MMParallaxView_Tests-frameworks.sh"; sourceTree = ""; }; 74 | DD434C8EF19A06E725F34DC3A97E8B5D /* Pods-MMParallaxView_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MMParallaxView_Tests-resources.sh"; sourceTree = ""; }; 75 | E37B7428BDF9C810C74307B9677468A6 /* Pods_MMParallaxView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MMParallaxView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 76 | E73565BFBABE3C6B037EA45305689B5E /* Pods-MMParallaxView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MMParallaxView_Example-umbrella.h"; sourceTree = ""; }; 77 | E9AB3290189971005F4AC2EFA729D8B1 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 78 | /* End PBXFileReference section */ 79 | 80 | /* Begin PBXFrameworksBuildPhase section */ 81 | 4E06D2CA945DDCB126B808F5E847E0DB /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | BD5AFDAC071E13EE3E5F5165511E05C3 /* Foundation.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 8148729D564929F4DE30FE2BBE68B88E /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | F9D7E289231D6946F6E2C502EC32EB62 /* Foundation.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | CA370046B59371271D6E0D4A0612A9B8 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 91BE254FAFBC3425D06AF2CBCFA39EED /* Foundation.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 034522FA9AA32534A1CB21BF9E0E4FE9 /* Pods-MMParallaxView_Tests */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 4BFA473F5482D936E3861F642A96FC28 /* Info.plist */, 112 | C5ACA0E62D578544DCE630067E838829 /* Pods-MMParallaxView_Tests.modulemap */, 113 | 4711B1B5E35BCCE17DBDD7F410C92328 /* Pods-MMParallaxView_Tests-acknowledgements.markdown */, 114 | 134ABC8FEEACC4E74917C29A3E3A80FA /* Pods-MMParallaxView_Tests-acknowledgements.plist */, 115 | 5EE384AEB1ECDDD8AB94084D0D09FF96 /* Pods-MMParallaxView_Tests-dummy.m */, 116 | D432FCCA556EE2AB1C8935348B6103E0 /* Pods-MMParallaxView_Tests-frameworks.sh */, 117 | DD434C8EF19A06E725F34DC3A97E8B5D /* Pods-MMParallaxView_Tests-resources.sh */, 118 | 0325A78BA336607239B62C39A6F60FD9 /* Pods-MMParallaxView_Tests-umbrella.h */, 119 | 16CE7E12F49D9D9D4DC31ADF5C92C55B /* Pods-MMParallaxView_Tests.debug.xcconfig */, 120 | 8BAFBFC1CA3DEB40D49FD06C32F77E93 /* Pods-MMParallaxView_Tests.release.xcconfig */, 121 | ); 122 | name = "Pods-MMParallaxView_Tests"; 123 | path = "Target Support Files/Pods-MMParallaxView_Tests"; 124 | sourceTree = ""; 125 | }; 126 | 13E207F665DB04C9398406B23373C972 /* Pods-MMParallaxView_Example */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 74609F82AA040B0354E0913CFF5CD06B /* Info.plist */, 130 | 5D024D411001E597C088BEB3A0D436BE /* Pods-MMParallaxView_Example.modulemap */, 131 | 8D134714A7F0670EC18AA5AED1C92BA0 /* Pods-MMParallaxView_Example-acknowledgements.markdown */, 132 | 839922507F3FFDB7DAFD2FB400BA898F /* Pods-MMParallaxView_Example-acknowledgements.plist */, 133 | 46B1BAC42F95A84C21E4189072546164 /* Pods-MMParallaxView_Example-dummy.m */, 134 | 3399618E39457BBF418CF8CEFA69D8F5 /* Pods-MMParallaxView_Example-frameworks.sh */, 135 | 43C2B477D5299A366E1EB7D60690A403 /* Pods-MMParallaxView_Example-resources.sh */, 136 | E73565BFBABE3C6B037EA45305689B5E /* Pods-MMParallaxView_Example-umbrella.h */, 137 | A83A1261D9442AD7E739990994DA1D78 /* Pods-MMParallaxView_Example.debug.xcconfig */, 138 | 7BAF038648D8C735C998BE83AD644696 /* Pods-MMParallaxView_Example.release.xcconfig */, 139 | ); 140 | name = "Pods-MMParallaxView_Example"; 141 | path = "Target Support Files/Pods-MMParallaxView_Example"; 142 | sourceTree = ""; 143 | }; 144 | 556267137D5F9A792EB999639EE1F573 /* MMParallaxView */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 5EA4158D20C5B241008B0B0C /* CGFLoat+Decimal.swift */, 148 | 5EFD65A820C19B07001258EE /* MMParallaxViewController.swift */, 149 | 5EE6854020BEF3D4006E38CF /* MMParallaxView.swift */, 150 | 5EE6853F20BEF3D4006E38CF /* MMParallaxViewDefine.swift */, 151 | 5EDC765720C637F400CA81EB /* UIViewController+Parallax+Find.swift */, 152 | 8C992A7D18A0FFA42D1E292906E176DF /* Support Files */, 153 | ); 154 | name = MMParallaxView; 155 | path = ../..; 156 | sourceTree = ""; 157 | }; 158 | 58F06E45EC101CC98D3BD6275412A82C /* Products */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 115350309794B8F23B982A7179F383F7 /* MMParallaxView.framework */, 162 | E37B7428BDF9C810C74307B9677468A6 /* Pods_MMParallaxView_Example.framework */, 163 | 39C8D1D7500C280917C8661BD14710B5 /* Pods_MMParallaxView_Tests.framework */, 164 | ); 165 | name = Products; 166 | sourceTree = ""; 167 | }; 168 | 7DB346D0F39D3F0E887471402A8071AB = { 169 | isa = PBXGroup; 170 | children = ( 171 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 172 | E748674C5AA34E8A8B1D8BF37992B6D5 /* Development Pods */, 173 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 174 | 58F06E45EC101CC98D3BD6275412A82C /* Products */, 175 | 844AB03D4F7E9A263EA74858F3934788 /* Targets Support Files */, 176 | ); 177 | sourceTree = ""; 178 | }; 179 | 844AB03D4F7E9A263EA74858F3934788 /* Targets Support Files */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 13E207F665DB04C9398406B23373C972 /* Pods-MMParallaxView_Example */, 183 | 034522FA9AA32534A1CB21BF9E0E4FE9 /* Pods-MMParallaxView_Tests */, 184 | ); 185 | name = "Targets Support Files"; 186 | sourceTree = ""; 187 | }; 188 | 8C992A7D18A0FFA42D1E292906E176DF /* Support Files */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | E9AB3290189971005F4AC2EFA729D8B1 /* Info.plist */, 192 | 93DEC8A7BF778381A70A1191C94A2338 /* MMParallaxView.modulemap */, 193 | 0F988D6DAEE9070CCEB8E4B613ECF11B /* MMParallaxView.xcconfig */, 194 | 43644A15402D6E714EC946E8A09DBEA4 /* MMParallaxView-dummy.m */, 195 | 7D598EE188B5B03374C754CD088EBF40 /* MMParallaxView-prefix.pch */, 196 | 7C9551A185F8FB7486F88579F942E5EE /* MMParallaxView-umbrella.h */, 197 | ); 198 | name = "Support Files"; 199 | path = "Example/Pods/Target Support Files/MMParallaxView"; 200 | sourceTree = ""; 201 | }; 202 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 206 | ); 207 | name = Frameworks; 208 | sourceTree = ""; 209 | }; 210 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 214 | ); 215 | name = iOS; 216 | sourceTree = ""; 217 | }; 218 | E748674C5AA34E8A8B1D8BF37992B6D5 /* Development Pods */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 556267137D5F9A792EB999639EE1F573 /* MMParallaxView */, 222 | ); 223 | name = "Development Pods"; 224 | sourceTree = ""; 225 | }; 226 | /* End PBXGroup section */ 227 | 228 | /* Begin PBXHeadersBuildPhase section */ 229 | 1BFFDA2D16EB1E4E6D80888B852C0194 /* Headers */ = { 230 | isa = PBXHeadersBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 1962DF784A5A736C8A367B36F08BBD08 /* Pods-MMParallaxView_Tests-umbrella.h in Headers */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | D62926F7C0C08326DE34C7CD52A0B159 /* Headers */ = { 238 | isa = PBXHeadersBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 91FE50C951734EF6392B9D8BD25D11A7 /* Pods-MMParallaxView_Example-umbrella.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | D81B1E18767146BF33DC60F8E743CA1E /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 27119845614CA9EC7AFBAF42B6D748D7 /* MMParallaxView-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | /* End PBXHeadersBuildPhase section */ 254 | 255 | /* Begin PBXNativeTarget section */ 256 | 00946656900DA76738CD3046658F1535 /* MMParallaxView */ = { 257 | isa = PBXNativeTarget; 258 | buildConfigurationList = ED3E37D3F60F7FA6999B68662010B17F /* Build configuration list for PBXNativeTarget "MMParallaxView" */; 259 | buildPhases = ( 260 | 505CB63EDBBA365A1533E4EFB945F151 /* Sources */, 261 | 8148729D564929F4DE30FE2BBE68B88E /* Frameworks */, 262 | D81B1E18767146BF33DC60F8E743CA1E /* Headers */, 263 | ); 264 | buildRules = ( 265 | ); 266 | dependencies = ( 267 | ); 268 | name = MMParallaxView; 269 | productName = MMParallaxView; 270 | productReference = 115350309794B8F23B982A7179F383F7 /* MMParallaxView.framework */; 271 | productType = "com.apple.product-type.framework"; 272 | }; 273 | 1C35EA86C21B6249FFE14B6D591EC112 /* Pods-MMParallaxView_Example */ = { 274 | isa = PBXNativeTarget; 275 | buildConfigurationList = B955CF8AE78F8C1A50B7BBFE29C6FB92 /* Build configuration list for PBXNativeTarget "Pods-MMParallaxView_Example" */; 276 | buildPhases = ( 277 | 32BF7B3A666E93FC3112CF69EE6E6A44 /* Sources */, 278 | CA370046B59371271D6E0D4A0612A9B8 /* Frameworks */, 279 | D62926F7C0C08326DE34C7CD52A0B159 /* Headers */, 280 | ); 281 | buildRules = ( 282 | ); 283 | dependencies = ( 284 | 534A5D27608CE0244B3F54622DA2B3DF /* PBXTargetDependency */, 285 | ); 286 | name = "Pods-MMParallaxView_Example"; 287 | productName = "Pods-MMParallaxView_Example"; 288 | productReference = E37B7428BDF9C810C74307B9677468A6 /* Pods_MMParallaxView_Example.framework */; 289 | productType = "com.apple.product-type.framework"; 290 | }; 291 | 7B229D9DC46E01CDBF56B0051C1F0F32 /* Pods-MMParallaxView_Tests */ = { 292 | isa = PBXNativeTarget; 293 | buildConfigurationList = CFB0D5D5BF2860F2F1D32A3B85857305 /* Build configuration list for PBXNativeTarget "Pods-MMParallaxView_Tests" */; 294 | buildPhases = ( 295 | 4083CB99F655B227A6D7BF95D6B1EE83 /* Sources */, 296 | 4E06D2CA945DDCB126B808F5E847E0DB /* Frameworks */, 297 | 1BFFDA2D16EB1E4E6D80888B852C0194 /* Headers */, 298 | ); 299 | buildRules = ( 300 | ); 301 | dependencies = ( 302 | ); 303 | name = "Pods-MMParallaxView_Tests"; 304 | productName = "Pods-MMParallaxView_Tests"; 305 | productReference = 39C8D1D7500C280917C8661BD14710B5 /* Pods_MMParallaxView_Tests.framework */; 306 | productType = "com.apple.product-type.framework"; 307 | }; 308 | /* End PBXNativeTarget section */ 309 | 310 | /* Begin PBXProject section */ 311 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 312 | isa = PBXProject; 313 | attributes = { 314 | LastSwiftUpdateCheck = 0830; 315 | LastUpgradeCheck = 0700; 316 | TargetAttributes = { 317 | 00946656900DA76738CD3046658F1535 = { 318 | LastSwiftMigration = 0930; 319 | }; 320 | 1C35EA86C21B6249FFE14B6D591EC112 = { 321 | LastSwiftMigration = 0930; 322 | }; 323 | }; 324 | }; 325 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 326 | compatibilityVersion = "Xcode 3.2"; 327 | developmentRegion = English; 328 | hasScannedForEncodings = 0; 329 | knownRegions = ( 330 | English, 331 | en, 332 | ); 333 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 334 | productRefGroup = 58F06E45EC101CC98D3BD6275412A82C /* Products */; 335 | projectDirPath = ""; 336 | projectRoot = ""; 337 | targets = ( 338 | 00946656900DA76738CD3046658F1535 /* MMParallaxView */, 339 | 1C35EA86C21B6249FFE14B6D591EC112 /* Pods-MMParallaxView_Example */, 340 | 7B229D9DC46E01CDBF56B0051C1F0F32 /* Pods-MMParallaxView_Tests */, 341 | ); 342 | }; 343 | /* End PBXProject section */ 344 | 345 | /* Begin PBXSourcesBuildPhase section */ 346 | 32BF7B3A666E93FC3112CF69EE6E6A44 /* Sources */ = { 347 | isa = PBXSourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | 5EE6854420BEF3D4006E38CF /* MMParallaxView.swift in Sources */, 351 | 5EE6854220BEF3D4006E38CF /* MMParallaxViewDefine.swift in Sources */, 352 | 5EDC765920C637F400CA81EB /* UIViewController+Parallax+Find.swift in Sources */, 353 | B5BA05BDF1A17B901F0B9667799D7C6D /* Pods-MMParallaxView_Example-dummy.m in Sources */, 354 | 5EA4158F20C5B241008B0B0C /* CGFLoat+Decimal.swift in Sources */, 355 | 5EFD65AA20C19B07001258EE /* MMParallaxViewController.swift in Sources */, 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | 4083CB99F655B227A6D7BF95D6B1EE83 /* Sources */ = { 360 | isa = PBXSourcesBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | 454461EED9158B18743D6B94306AA42C /* Pods-MMParallaxView_Tests-dummy.m in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 505CB63EDBBA365A1533E4EFB945F151 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 5EE6854320BEF3D4006E38CF /* MMParallaxView.swift in Sources */, 372 | 5EE6854120BEF3D4006E38CF /* MMParallaxViewDefine.swift in Sources */, 373 | 5EDC765820C637F400CA81EB /* UIViewController+Parallax+Find.swift in Sources */, 374 | 1D8B4FED82B688049DA2F6DA7F0A1BD6 /* MMParallaxView-dummy.m in Sources */, 375 | 5EA4158E20C5B241008B0B0C /* CGFLoat+Decimal.swift in Sources */, 376 | 5EFD65A920C19B07001258EE /* MMParallaxViewController.swift in Sources */, 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | }; 380 | /* End PBXSourcesBuildPhase section */ 381 | 382 | /* Begin PBXTargetDependency section */ 383 | 534A5D27608CE0244B3F54622DA2B3DF /* PBXTargetDependency */ = { 384 | isa = PBXTargetDependency; 385 | name = MMParallaxView; 386 | target = 00946656900DA76738CD3046658F1535 /* MMParallaxView */; 387 | targetProxy = 2DB1759E7B717C5DAD2CC1A19C1AFEE1 /* PBXContainerItemProxy */; 388 | }; 389 | /* End PBXTargetDependency section */ 390 | 391 | /* Begin XCBuildConfiguration section */ 392 | 02DEDD326BE46F1A25C259A6EF38DE15 /* Debug */ = { 393 | isa = XCBuildConfiguration; 394 | baseConfigurationReference = A83A1261D9442AD7E739990994DA1D78 /* Pods-MMParallaxView_Example.debug.xcconfig */; 395 | buildSettings = { 396 | CLANG_ENABLE_MODULES = YES; 397 | CODE_SIGN_IDENTITY = ""; 398 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 399 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 400 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 401 | CURRENT_PROJECT_VERSION = 1; 402 | DEBUG_INFORMATION_FORMAT = dwarf; 403 | DEFINES_MODULE = YES; 404 | DYLIB_COMPATIBILITY_VERSION = 1; 405 | DYLIB_CURRENT_VERSION = 1; 406 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 407 | ENABLE_STRICT_OBJC_MSGSEND = YES; 408 | GCC_NO_COMMON_BLOCKS = YES; 409 | INFOPLIST_FILE = "Target Support Files/Pods-MMParallaxView_Example/Info.plist"; 410 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 411 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 412 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 413 | MACH_O_TYPE = staticlib; 414 | MODULEMAP_FILE = "Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.modulemap"; 415 | MTL_ENABLE_DEBUG_INFO = YES; 416 | OTHER_LDFLAGS = ""; 417 | OTHER_LIBTOOLFLAGS = ""; 418 | PODS_ROOT = "$(SRCROOT)"; 419 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 420 | PRODUCT_NAME = Pods_MMParallaxView_Example; 421 | SDKROOT = iphoneos; 422 | SKIP_INSTALL = YES; 423 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 424 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 425 | SWIFT_VERSION = 5.0; 426 | TARGETED_DEVICE_FAMILY = "1,2"; 427 | VERSIONING_SYSTEM = "apple-generic"; 428 | VERSION_INFO_PREFIX = ""; 429 | }; 430 | name = Debug; 431 | }; 432 | 157AF0CD5E5AB2A2E74D3B8ECD865185 /* Release */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | ALWAYS_SEARCH_USER_PATHS = NO; 436 | CLANG_ANALYZER_NONNULL = YES; 437 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 438 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 439 | CLANG_CXX_LIBRARY = "libc++"; 440 | CLANG_ENABLE_MODULES = YES; 441 | CLANG_ENABLE_OBJC_ARC = YES; 442 | CLANG_WARN_BOOL_CONVERSION = YES; 443 | CLANG_WARN_CONSTANT_CONVERSION = YES; 444 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 445 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 446 | CLANG_WARN_EMPTY_BODY = YES; 447 | CLANG_WARN_ENUM_CONVERSION = YES; 448 | CLANG_WARN_INFINITE_RECURSION = YES; 449 | CLANG_WARN_INT_CONVERSION = YES; 450 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 451 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 452 | CLANG_WARN_UNREACHABLE_CODE = YES; 453 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 454 | CODE_SIGNING_REQUIRED = NO; 455 | COPY_PHASE_STRIP = YES; 456 | ENABLE_NS_ASSERTIONS = NO; 457 | GCC_C_LANGUAGE_STANDARD = gnu99; 458 | GCC_PREPROCESSOR_DEFINITIONS = ( 459 | "POD_CONFIGURATION_RELEASE=1", 460 | "$(inherited)", 461 | ); 462 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 463 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 464 | GCC_WARN_UNDECLARED_SELECTOR = YES; 465 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 466 | GCC_WARN_UNUSED_FUNCTION = YES; 467 | GCC_WARN_UNUSED_VARIABLE = YES; 468 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 469 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 470 | STRIP_INSTALLED_PRODUCT = NO; 471 | SYMROOT = "${SRCROOT}/../build"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 32C7F6E941C52164B59638A3DB604CCF /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 0F988D6DAEE9070CCEB8E4B613ECF11B /* MMParallaxView.xcconfig */; 479 | buildSettings = { 480 | CLANG_ENABLE_MODULES = YES; 481 | CODE_SIGN_IDENTITY = ""; 482 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 483 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 484 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 485 | CURRENT_PROJECT_VERSION = 1; 486 | DEBUG_INFORMATION_FORMAT = dwarf; 487 | DEFINES_MODULE = YES; 488 | DYLIB_COMPATIBILITY_VERSION = 1; 489 | DYLIB_CURRENT_VERSION = 1; 490 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 491 | ENABLE_STRICT_OBJC_MSGSEND = YES; 492 | GCC_NO_COMMON_BLOCKS = YES; 493 | GCC_PREFIX_HEADER = "Target Support Files/MMParallaxView/MMParallaxView-prefix.pch"; 494 | INFOPLIST_FILE = "Target Support Files/MMParallaxView/Info.plist"; 495 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 496 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 497 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 498 | MODULEMAP_FILE = "Target Support Files/MMParallaxView/MMParallaxView.modulemap"; 499 | MTL_ENABLE_DEBUG_INFO = YES; 500 | PRODUCT_NAME = MMParallaxView; 501 | SDKROOT = iphoneos; 502 | SKIP_INSTALL = YES; 503 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 504 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 505 | SWIFT_VERSION = 5.0; 506 | TARGETED_DEVICE_FAMILY = "1,2"; 507 | VERSIONING_SYSTEM = "apple-generic"; 508 | VERSION_INFO_PREFIX = ""; 509 | }; 510 | name = Debug; 511 | }; 512 | 7F002C3AB1AC318EF4C683CBE87AF38D /* Release */ = { 513 | isa = XCBuildConfiguration; 514 | baseConfigurationReference = 7BAF038648D8C735C998BE83AD644696 /* Pods-MMParallaxView_Example.release.xcconfig */; 515 | buildSettings = { 516 | CLANG_ENABLE_MODULES = YES; 517 | CODE_SIGN_IDENTITY = ""; 518 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 519 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 520 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 521 | CURRENT_PROJECT_VERSION = 1; 522 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 523 | DEFINES_MODULE = YES; 524 | DYLIB_COMPATIBILITY_VERSION = 1; 525 | DYLIB_CURRENT_VERSION = 1; 526 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 527 | ENABLE_STRICT_OBJC_MSGSEND = YES; 528 | GCC_NO_COMMON_BLOCKS = YES; 529 | INFOPLIST_FILE = "Target Support Files/Pods-MMParallaxView_Example/Info.plist"; 530 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 531 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 533 | MACH_O_TYPE = staticlib; 534 | MODULEMAP_FILE = "Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.modulemap"; 535 | MTL_ENABLE_DEBUG_INFO = NO; 536 | OTHER_LDFLAGS = ""; 537 | OTHER_LIBTOOLFLAGS = ""; 538 | PODS_ROOT = "$(SRCROOT)"; 539 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 540 | PRODUCT_NAME = Pods_MMParallaxView_Example; 541 | SDKROOT = iphoneos; 542 | SKIP_INSTALL = YES; 543 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 544 | SWIFT_VERSION = 5.0; 545 | TARGETED_DEVICE_FAMILY = "1,2"; 546 | VERSIONING_SYSTEM = "apple-generic"; 547 | VERSION_INFO_PREFIX = ""; 548 | }; 549 | name = Release; 550 | }; 551 | 999483810C92AFF0AE723C1D04522089 /* Debug */ = { 552 | isa = XCBuildConfiguration; 553 | baseConfigurationReference = 16CE7E12F49D9D9D4DC31ADF5C92C55B /* Pods-MMParallaxView_Tests.debug.xcconfig */; 554 | buildSettings = { 555 | CODE_SIGN_IDENTITY = ""; 556 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 557 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 558 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 559 | CURRENT_PROJECT_VERSION = 1; 560 | DEBUG_INFORMATION_FORMAT = dwarf; 561 | DEFINES_MODULE = YES; 562 | DYLIB_COMPATIBILITY_VERSION = 1; 563 | DYLIB_CURRENT_VERSION = 1; 564 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 565 | ENABLE_STRICT_OBJC_MSGSEND = YES; 566 | GCC_NO_COMMON_BLOCKS = YES; 567 | INFOPLIST_FILE = "Target Support Files/Pods-MMParallaxView_Tests/Info.plist"; 568 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 569 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 570 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 571 | MACH_O_TYPE = staticlib; 572 | MODULEMAP_FILE = "Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.modulemap"; 573 | MTL_ENABLE_DEBUG_INFO = YES; 574 | OTHER_LDFLAGS = ""; 575 | OTHER_LIBTOOLFLAGS = ""; 576 | PODS_ROOT = "$(SRCROOT)"; 577 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 578 | PRODUCT_NAME = Pods_MMParallaxView_Tests; 579 | SDKROOT = iphoneos; 580 | SKIP_INSTALL = YES; 581 | TARGETED_DEVICE_FAMILY = "1,2"; 582 | VERSIONING_SYSTEM = "apple-generic"; 583 | VERSION_INFO_PREFIX = ""; 584 | }; 585 | name = Debug; 586 | }; 587 | D3C60B75E0B89D9F342A7AA0B6896ADA /* Release */ = { 588 | isa = XCBuildConfiguration; 589 | baseConfigurationReference = 0F988D6DAEE9070CCEB8E4B613ECF11B /* MMParallaxView.xcconfig */; 590 | buildSettings = { 591 | CLANG_ENABLE_MODULES = YES; 592 | CODE_SIGN_IDENTITY = ""; 593 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 594 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 595 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 596 | CURRENT_PROJECT_VERSION = 1; 597 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 598 | DEFINES_MODULE = YES; 599 | DYLIB_COMPATIBILITY_VERSION = 1; 600 | DYLIB_CURRENT_VERSION = 1; 601 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 602 | ENABLE_STRICT_OBJC_MSGSEND = YES; 603 | GCC_NO_COMMON_BLOCKS = YES; 604 | GCC_PREFIX_HEADER = "Target Support Files/MMParallaxView/MMParallaxView-prefix.pch"; 605 | INFOPLIST_FILE = "Target Support Files/MMParallaxView/Info.plist"; 606 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 607 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 608 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 609 | MODULEMAP_FILE = "Target Support Files/MMParallaxView/MMParallaxView.modulemap"; 610 | MTL_ENABLE_DEBUG_INFO = NO; 611 | PRODUCT_NAME = MMParallaxView; 612 | SDKROOT = iphoneos; 613 | SKIP_INSTALL = YES; 614 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 615 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 616 | SWIFT_VERSION = 5.0; 617 | TARGETED_DEVICE_FAMILY = "1,2"; 618 | VERSIONING_SYSTEM = "apple-generic"; 619 | VERSION_INFO_PREFIX = ""; 620 | }; 621 | name = Release; 622 | }; 623 | D5726A29EC87D2CE2E94397396C09B34 /* Release */ = { 624 | isa = XCBuildConfiguration; 625 | baseConfigurationReference = 8BAFBFC1CA3DEB40D49FD06C32F77E93 /* Pods-MMParallaxView_Tests.release.xcconfig */; 626 | buildSettings = { 627 | CODE_SIGN_IDENTITY = ""; 628 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 629 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 630 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 631 | CURRENT_PROJECT_VERSION = 1; 632 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 633 | DEFINES_MODULE = YES; 634 | DYLIB_COMPATIBILITY_VERSION = 1; 635 | DYLIB_CURRENT_VERSION = 1; 636 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 637 | ENABLE_STRICT_OBJC_MSGSEND = YES; 638 | GCC_NO_COMMON_BLOCKS = YES; 639 | INFOPLIST_FILE = "Target Support Files/Pods-MMParallaxView_Tests/Info.plist"; 640 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 641 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 642 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 643 | MACH_O_TYPE = staticlib; 644 | MODULEMAP_FILE = "Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.modulemap"; 645 | MTL_ENABLE_DEBUG_INFO = NO; 646 | OTHER_LDFLAGS = ""; 647 | OTHER_LIBTOOLFLAGS = ""; 648 | PODS_ROOT = "$(SRCROOT)"; 649 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 650 | PRODUCT_NAME = Pods_MMParallaxView_Tests; 651 | SDKROOT = iphoneos; 652 | SKIP_INSTALL = YES; 653 | TARGETED_DEVICE_FAMILY = "1,2"; 654 | VERSIONING_SYSTEM = "apple-generic"; 655 | VERSION_INFO_PREFIX = ""; 656 | }; 657 | name = Release; 658 | }; 659 | EED546DBB23FC32035C9BDC4E22B30BD /* Debug */ = { 660 | isa = XCBuildConfiguration; 661 | buildSettings = { 662 | ALWAYS_SEARCH_USER_PATHS = NO; 663 | CLANG_ANALYZER_NONNULL = YES; 664 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 665 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 666 | CLANG_CXX_LIBRARY = "libc++"; 667 | CLANG_ENABLE_MODULES = YES; 668 | CLANG_ENABLE_OBJC_ARC = YES; 669 | CLANG_WARN_BOOL_CONVERSION = YES; 670 | CLANG_WARN_CONSTANT_CONVERSION = YES; 671 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 672 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 673 | CLANG_WARN_EMPTY_BODY = YES; 674 | CLANG_WARN_ENUM_CONVERSION = YES; 675 | CLANG_WARN_INFINITE_RECURSION = YES; 676 | CLANG_WARN_INT_CONVERSION = YES; 677 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 678 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 679 | CLANG_WARN_UNREACHABLE_CODE = YES; 680 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 681 | CODE_SIGNING_REQUIRED = NO; 682 | COPY_PHASE_STRIP = NO; 683 | ENABLE_TESTABILITY = YES; 684 | GCC_C_LANGUAGE_STANDARD = gnu99; 685 | GCC_DYNAMIC_NO_PIC = NO; 686 | GCC_OPTIMIZATION_LEVEL = 0; 687 | GCC_PREPROCESSOR_DEFINITIONS = ( 688 | "POD_CONFIGURATION_DEBUG=1", 689 | "DEBUG=1", 690 | "$(inherited)", 691 | ); 692 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 693 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 694 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 695 | GCC_WARN_UNDECLARED_SELECTOR = YES; 696 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 697 | GCC_WARN_UNUSED_FUNCTION = YES; 698 | GCC_WARN_UNUSED_VARIABLE = YES; 699 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 700 | ONLY_ACTIVE_ARCH = YES; 701 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 702 | STRIP_INSTALLED_PRODUCT = NO; 703 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 704 | SYMROOT = "${SRCROOT}/../build"; 705 | }; 706 | name = Debug; 707 | }; 708 | /* End XCBuildConfiguration section */ 709 | 710 | /* Begin XCConfigurationList section */ 711 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 712 | isa = XCConfigurationList; 713 | buildConfigurations = ( 714 | EED546DBB23FC32035C9BDC4E22B30BD /* Debug */, 715 | 157AF0CD5E5AB2A2E74D3B8ECD865185 /* Release */, 716 | ); 717 | defaultConfigurationIsVisible = 0; 718 | defaultConfigurationName = Release; 719 | }; 720 | B955CF8AE78F8C1A50B7BBFE29C6FB92 /* Build configuration list for PBXNativeTarget "Pods-MMParallaxView_Example" */ = { 721 | isa = XCConfigurationList; 722 | buildConfigurations = ( 723 | 02DEDD326BE46F1A25C259A6EF38DE15 /* Debug */, 724 | 7F002C3AB1AC318EF4C683CBE87AF38D /* Release */, 725 | ); 726 | defaultConfigurationIsVisible = 0; 727 | defaultConfigurationName = Release; 728 | }; 729 | CFB0D5D5BF2860F2F1D32A3B85857305 /* Build configuration list for PBXNativeTarget "Pods-MMParallaxView_Tests" */ = { 730 | isa = XCConfigurationList; 731 | buildConfigurations = ( 732 | 999483810C92AFF0AE723C1D04522089 /* Debug */, 733 | D5726A29EC87D2CE2E94397396C09B34 /* Release */, 734 | ); 735 | defaultConfigurationIsVisible = 0; 736 | defaultConfigurationName = Release; 737 | }; 738 | ED3E37D3F60F7FA6999B68662010B17F /* Build configuration list for PBXNativeTarget "MMParallaxView" */ = { 739 | isa = XCConfigurationList; 740 | buildConfigurations = ( 741 | 32C7F6E941C52164B59638A3DB604CCF /* Debug */, 742 | D3C60B75E0B89D9F342A7AA0B6896ADA /* Release */, 743 | ); 744 | defaultConfigurationIsVisible = 0; 745 | defaultConfigurationName = Release; 746 | }; 747 | /* End XCConfigurationList section */ 748 | }; 749 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 750 | } 751 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/millmanyang.xcuserdatad/xcschemes/MMParallaxView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/millmanyang.xcuserdatad/xcschemes/Pods-MMParallaxView_Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/millmanyang.xcuserdatad/xcschemes/Pods-MMParallaxView_Tests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/millmanyang.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MMParallaxView.xcscheme 8 | 9 | isShown 10 | 11 | 12 | Pods-MMParallaxView_Example.xcscheme 13 | 14 | isShown 15 | 16 | 17 | Pods-MMParallaxView_Tests.xcscheme 18 | 19 | isShown 20 | 21 | 22 | 23 | SuppressBuildableAutocreation 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MMParallaxView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MMParallaxView/MMParallaxView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MMParallaxView : NSObject 3 | @end 4 | @implementation PodsDummy_MMParallaxView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MMParallaxView/MMParallaxView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MMParallaxView/MMParallaxView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double MMParallaxViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char MMParallaxViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MMParallaxView/MMParallaxView.modulemap: -------------------------------------------------------------------------------- 1 | framework module MMParallaxView { 2 | umbrella header "MMParallaxView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MMParallaxView/MMParallaxView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/MMParallaxView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## MMParallaxView 5 | 6 | Copyright (c) 2018 millmanyang@gmail.com 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2018 millmanyang@gmail.com <millmanyang@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | MMParallaxView 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MMParallaxView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MMParallaxView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | 104 | if [[ "$CONFIGURATION" == "Debug" ]]; then 105 | install_framework "${BUILT_PRODUCTS_DIR}/MMParallaxView/MMParallaxView.framework" 106 | fi 107 | if [[ "$CONFIGURATION" == "Release" ]]; then 108 | install_framework "${BUILT_PRODUCTS_DIR}/MMParallaxView/MMParallaxView.framework" 109 | fi 110 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 111 | wait 112 | fi 113 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MMParallaxView_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MMParallaxView_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView/MMParallaxView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "MMParallaxView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MMParallaxView_Example { 2 | umbrella header "Pods-MMParallaxView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Example/Pods-MMParallaxView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView/MMParallaxView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "MMParallaxView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MMParallaxView_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MMParallaxView_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 104 | wait 105 | fi 106 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MMParallaxView_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MMParallaxView_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView/MMParallaxView.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MMParallaxView_Tests { 2 | umbrella header "Pods-MMParallaxView_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MMParallaxView_Tests/Pods-MMParallaxView_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/MMParallaxView/MMParallaxView.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import MMParallaxView 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 millmanyang@gmail.com 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /MMParallaxView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint MMParallaxView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'MMParallaxView' 11 | s.version = '5.0.7' 12 | s.summary = 'Parallax effect when scrolling' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = 'Parallax effect when scrolling, and custom like ios map app' 21 | 22 | s.homepage = 'https://github.com/MillmanY/MMParallaxView.git' 23 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 24 | s.license = { :type => 'MIT', :file => 'LICENSE' } 25 | s.author = { 'millmanyang@gmail.com' => 'millmanyang@gmail.com' } 26 | s.source = { :git => 'https://github.com/MillmanY/MMParallaxView.git', :tag => s.version.to_s } 27 | # s.social_media_url = 'https://twitter.com/' 28 | 29 | s.ios.deployment_target = '10.0' 30 | 31 | s.source_files = 'MMParallaxView/Classes/**/*' 32 | 33 | # s.resource_bundles = { 34 | # 'MMParallaxView' => ['MMParallaxView/Assets/*.png'] 35 | # } 36 | 37 | # s.public_header_files = 'Pod/Classes/**/*.h' 38 | # s.frameworks = 'UIKit', 'MapKit' 39 | # s.dependency 'AFNetworking', '~> 2.3' 40 | end 41 | -------------------------------------------------------------------------------- /MMParallaxView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/MMParallaxView/Assets/.gitkeep -------------------------------------------------------------------------------- /MMParallaxView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/MMParallaxView/Classes/.gitkeep -------------------------------------------------------------------------------- /MMParallaxView/Classes/CGFLoat+Decimal.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CGFLoat+Decimal.swift 3 | // MMParallaxView 4 | // 5 | // Created by Millman YANG on 2018/6/5. 6 | // 7 | 8 | import UIKit 9 | public extension CGFloat { 10 | func decimalCount(count : Int) -> CGFloat { 11 | let format = String(format: "%%.%if", count) 12 | let value = String(format: format, self) 13 | return CGFloat(atof(value)) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /MMParallaxView/Classes/MMParallaxView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MMParallaxView.swift 3 | // MMParallaxView 4 | // 5 | // Created by Millman YANG on 2018/5/30. 6 | // 7 | 8 | import Foundation 9 | import UIKit 10 | 11 | public class MMParallaxView: UIView { 12 | fileprivate lazy var maskTopView: UIView = { 13 | let v = UIView() 14 | v.backgroundColor = UIColor.black 15 | v.alpha = 0.0 16 | return v 17 | }() 18 | @IBOutlet weak public var parallaxTopView: UIView? { 19 | didSet { 20 | self.topView = parallaxTopView 21 | } 22 | } 23 | @IBOutlet weak public var parallaxBottomView: UIView? { 24 | didSet { 25 | 26 | guard let bot = parallaxBottomView else { 27 | return 28 | } 29 | bot.removeFromSuperview() 30 | bot.translatesAutoresizingMaskIntoConstraints = true 31 | bottomBaseView.addSubview(bot) 32 | } 33 | } 34 | public var autoScrollWhenHide = false 35 | public var maskAlpha: CGFloat = 0.0 { 36 | didSet { 37 | self.maskTopView.alpha = maskAlpha 38 | } 39 | } 40 | public var topMargin: CGFloat = 0.0 { 41 | didSet { 42 | self.setNeedsLayout() 43 | self.layoutIfNeeded() 44 | } 45 | } 46 | public var shiftStatus: ((ShiftStatus)->Void)? { 47 | didSet { 48 | self.queryShiftStatus() 49 | } 50 | } 51 | 52 | public func queryShiftStatus() { 53 | self.shiftStatus?(status) 54 | } 55 | 56 | public var heightType: TopHeightType = .height(value: 300) { 57 | didSet { 58 | switch heightType { 59 | case .height(let value): 60 | self.height = value 61 | case .percentHeight(let value): 62 | self.height = self.frame.height*value 63 | case .dependOnIntrinsicContent: 64 | self.height = self.topView?.intrinsicContentSize.height ?? .zero 65 | } 66 | self.superview?.layoutIfNeeded() 67 | self.reload() 68 | } 69 | } 70 | public var parallaxBottomOffsetTop: CGFloat = 0.0 { 71 | didSet { 72 | self.setNeedsLayout() 73 | self.layoutIfNeeded() 74 | } 75 | } 76 | public var parallaxTopShiftRate: CGFloat = 2.0 77 | fileprivate var displayTimer: Timer? 78 | private(set) var height: CGFloat = 300 79 | fileprivate var baseGesture: UIPanGestureRecognizer? 80 | fileprivate var bottomOffsetObserver: NSKeyValueObservation? 81 | fileprivate var offsetObserver: NSKeyValueObservation? 82 | fileprivate var topFrameObserver: NSKeyValueObservation? 83 | fileprivate var bottomObserver: NSKeyValueObservation? 84 | fileprivate var prePoint: CGPoint = .zero 85 | fileprivate let scrollView = UIScrollView() 86 | fileprivate var realTopHeight: CGFloat { 87 | get { 88 | return (self.topView?.frame.height ?? 0) - topMargin + parallaxBottomOffsetTop 89 | } 90 | } 91 | fileprivate var topView: UIView? { 92 | didSet { 93 | guard let t = topView else { 94 | return 95 | } 96 | t.addSubview(maskTopView) 97 | 98 | topFrameObserver = t.observe(\.bounds, options: [.new], changeHandler: { [weak self] (view, value) in 99 | self?.maskTopView.frame = value.newValue ?? .zero 100 | }) 101 | t.translatesAutoresizingMaskIntoConstraints = true 102 | self.clearConstraint(view: t) 103 | 104 | scrollView.addSubview(t) 105 | } 106 | } 107 | fileprivate var bottomGestureView: UIScrollView? { 108 | didSet { 109 | 110 | guard let bot = bottomGestureView else { 111 | bottomObserver?.invalidate() 112 | oldValue?.panGestureRecognizer.removeTarget(self, action: #selector(pan(gesture:))) 113 | return 114 | } 115 | 116 | if oldValue != bot { 117 | bottomObserver = bot.observe(\.contentOffset, options: [.new, .old]) { [weak self] (scroll, value) in 118 | guard let status = self?.status, let offset = value.newValue, let old = value.oldValue, self?.displayTimer == nil else { 119 | return 120 | } 121 | 122 | switch status { 123 | case .hide: 124 | if offset.y < 0, old.y > 0 , !scroll.isTracking { 125 | self?.startAnimate(isUp: false) 126 | } 127 | case .percent(_): 128 | let edgeTop = bot.contentInset.top 129 | if offset.y != -edgeTop, self?.displayTimer == nil { 130 | bot.contentOffset.y = -edgeTop 131 | } 132 | default : break 133 | } 134 | } 135 | } 136 | } 137 | } 138 | lazy var bottomBaseView: UIView = { 139 | let v = UIView() 140 | v.backgroundColor = UIColor.clear 141 | return v 142 | }() 143 | 144 | // 0 ~ 1 145 | public var pauseLocation: CGFloat? 146 | public var status: ShiftStatus = .show { 147 | didSet { 148 | if oldValue == status { 149 | return 150 | } 151 | switch status { 152 | case .hide: 153 | self.maskTopView.alpha = maskAlpha 154 | self.shiftStatus?(.hide) 155 | case .show: 156 | self.maskTopView.alpha = 0.0 157 | self.shiftStatus?(.show) 158 | case .percent(let value): 159 | self.maskTopView.alpha = maskAlpha * value 160 | self.shiftStatus?(.percent(value: value)) 161 | } 162 | } 163 | } 164 | 165 | override init(frame: CGRect) { 166 | super.init(frame: frame) 167 | self.setup() 168 | } 169 | 170 | required public init?(coder aDecoder: NSCoder) { 171 | super.init(coder: aDecoder) 172 | self.setup() 173 | } 174 | 175 | func setup() { 176 | if #available(iOS 11.0, *) { 177 | scrollView.contentInsetAdjustmentBehavior = .never 178 | } 179 | baseGesture = UIPanGestureRecognizer(target: self, action: #selector(pan(gesture:))) 180 | baseGesture?.delegate = self 181 | bottomBaseView.addGestureRecognizer(baseGesture!) 182 | scrollView.bounces = false 183 | scrollView.backgroundColor = UIColor.clear 184 | self.addSubview(scrollView) 185 | scrollView.addSubview(bottomBaseView) 186 | offsetObserver = scrollView.observe(\.contentOffset, options: [.new, .old]) { [weak self] (scroll, value) in 187 | guard let new = value.newValue, let width = self?.frame.width, let height = self?.height, let shiftRate = self?.parallaxTopShiftRate, let convert = self?.realTopHeight else { 188 | return 189 | } 190 | switch Int(new.y) { 191 | case ...0: 192 | self?.parallaxTopView?.frame = CGRect(x: 0, y: 0, width: width, height: height) 193 | if self?.displayTimer == nil { 194 | self?.status = .show 195 | } 196 | case Int(convert)...: 197 | self?.parallaxTopView?.frame = CGRect(x: 0, y: convert/shiftRate, width: width, height: height) 198 | if self?.displayTimer == nil { 199 | self?.status = .hide 200 | } 201 | case 0.. 0.3 { duration = 0.3 } 274 | self.bottomGestureView?.isScrollEnabled = false 275 | if !autoScrollWhenHide, let b = bottomGestureView { 276 | let point = CGPoint.init(x: 0, y: -b.contentInset.top) 277 | b.setContentOffset(point, animated: false) 278 | } 279 | UIView.animate(withDuration: duration, delay: 0.0, options: UIView.AnimationOptions.curveEaseOut, animations: { 280 | if let pause = self.pauseLocation, isUp && currentPercent < pause || !isUp && currentPercent > pause { 281 | self.scrollView.contentOffset.y = self.realTopHeight * pause 282 | } else { 283 | self.scrollView.contentOffset.y = isUp ? self.realTopHeight : 0 284 | } 285 | }, completion: { [weak self] (_) in 286 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.05, execute: { 287 | self?.stop() 288 | }) 289 | }) 290 | } 291 | 292 | fileprivate func stop() { 293 | self.bottomGestureView?.isScrollEnabled = true 294 | self.bottomGestureView = nil 295 | displayTimer?.invalidate() 296 | displayTimer = nil 297 | } 298 | 299 | @objc func displayLoop() { 300 | guard let y = scrollView.layer.presentation()?.bounds.origin.y else { 301 | return 302 | } 303 | let convert = self.realTopHeight 304 | switch Int(y) { 305 | case ...0: 306 | self.status = .show 307 | case Int(convert)...: 308 | self.status = .hide 309 | case 0..= 0.99 { 312 | self.status = .hide 313 | } else if percent <= 0.01 { 314 | self.status = .show 315 | } else { 316 | self.status = .percent(value: percent) 317 | } 318 | default: 319 | break 320 | } 321 | } 322 | 323 | deinit { 324 | topFrameObserver?.invalidate() 325 | topFrameObserver = nil 326 | bottomObserver?.invalidate() 327 | bottomObserver = nil 328 | offsetObserver?.invalidate() 329 | offsetObserver = nil 330 | } 331 | } 332 | 333 | extension MMParallaxView { 334 | 335 | @objc func pan(gesture: UIPanGestureRecognizer) { 336 | if let b = bottomGestureView, gesture.view != b { 337 | return 338 | } 339 | let vel = gesture.velocity(in: self) 340 | let point = gesture.location(in: self) 341 | switch gesture.state { 342 | case .began: 343 | self.prePoint = point 344 | case .ended: 345 | switch status { 346 | case .hide: 347 | if let bot = gesture.view as? UIScrollView, bot.contentOffset.y > 0 { 348 | self.prePoint = point 349 | return 350 | } 351 | case .percent(_): 352 | self.startAnimate(isUp: vel.y < 0) 353 | case .show: 354 | if vel.y <= 0 { 355 | self.startAnimate(isUp: vel.y < 0) 356 | } 357 | } 358 | self.prePoint = .zero 359 | case .changed: 360 | if gesture.numberOfTouches != 1 { return } 361 | // - is UP + is Down 362 | let shift = point.y-self.prePoint.y 363 | if shift == 0 { 364 | break 365 | } 366 | 367 | let will = self.scrollView.contentOffset.y-shift 368 | self.shift(position: will, isUp: shift < 0) 369 | default: 370 | break 371 | } 372 | self.prePoint = point 373 | } 374 | 375 | fileprivate func shift(position: CGFloat, isUp: Bool) { 376 | let topHeight = self.realTopHeight 377 | if let scroll = bottomGestureView { 378 | if position > topHeight { 379 | self.scrollView.contentOffset.y = topHeight 380 | return 381 | } 382 | let edgeTop = bottomGestureView?.contentInset.top ?? 0.0 383 | if isUp, position < topHeight, scroll.contentOffset.y+edgeTop >= 0 || scroll.contentSize.height == 0 { 384 | self.scrollView.contentOffset.y = position 385 | } else if !isUp, position >= 0, (scroll.contentOffset.y <= 10 || !scroll.isTracking) { 386 | self.scrollView.contentOffset.y = position 387 | } else if position <= 0 { 388 | self.scrollView.contentOffset = .zero 389 | } 390 | } else { 391 | switch position { 392 | case topHeight...: 393 | self.scrollView.contentOffset.y = topHeight 394 | case 0...topHeight: 395 | self.scrollView.contentOffset.y = position 396 | case ...0: 397 | self.scrollView.contentOffset.y = 0 398 | default: 399 | break 400 | } 401 | } 402 | } 403 | 404 | fileprivate func clearConstraint(view: UIView) { 405 | view.removeFromSuperview() 406 | view.constraints.forEach { 407 | if let first = $0.firstItem as? UIView, $0.secondItem == nil, first == view { 408 | view.removeConstraint($0) 409 | } else if let second = $0.secondItem as? UIView, $0.firstItem == nil, second == view { 410 | view.removeConstraint($0) 411 | } 412 | } 413 | } 414 | } 415 | 416 | extension MMParallaxView: UIGestureRecognizerDelegate { 417 | public override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { 418 | if displayTimer == nil { 419 | bottomGestureView = nil 420 | return super.gestureRecognizerShouldBegin(gestureRecognizer) 421 | } else { 422 | return false 423 | } 424 | } 425 | 426 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { 427 | if let other = otherGestureRecognizer.view as? UIScrollView, other != scrollView, bottomGestureView == nil { 428 | bottomGestureView = other 429 | bottomGestureView?.panGestureRecognizer.addTarget(self, action: #selector(pan(gesture:))) 430 | bottomGestureView?.decelerationRate = UIScrollView.DecelerationRate.normal 431 | 432 | } 433 | return true 434 | } 435 | } 436 | 437 | // Offset return 0 438 | 439 | -------------------------------------------------------------------------------- /MMParallaxView/Classes/MMParallaxViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MMParallaxViewController.swift 3 | // Pods 4 | // 5 | // Created by Millman YANG on 2018/6/1. 6 | // 7 | 8 | import UIKit 9 | let topIdentifier = "MMParallaxTop" 10 | let bottomIdentifier = "MMParallaxBottom" 11 | 12 | open class MMParallaxViewController: UIViewController { 13 | public let parallaxView = MMParallaxView() 14 | override open func viewDidLoad() { 15 | super.viewDidLoad() 16 | self.view.addSubview(parallaxView) 17 | } 18 | 19 | open override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 20 | switch segue { 21 | case _ as MMParallaxTopSegue: 22 | parallaxView.parallaxTopView = segue.destination.view 23 | self.addChild(segue.destination) 24 | segue.destination.didMove(toParent: self) 25 | case _ as MMParallaxBottomSegue: 26 | segue.destination.definesPresentationContext = true 27 | self.addChild(segue.destination) 28 | parallaxView.parallaxBottomView = segue.destination.view 29 | segue.destination.didMove(toParent: self) 30 | default: 31 | break 32 | } 33 | } 34 | 35 | override open func viewDidLayoutSubviews() { 36 | super.viewDidLayoutSubviews() 37 | parallaxView.frame = self.view.bounds 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MMParallaxView/Classes/MMParallaxViewDefine.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MMParallaxViewDefine.swift 3 | // MMParallaxView 4 | // 5 | // Created by Millman YANG on 2018/5/30. 6 | // 7 | 8 | import Foundation 9 | public extension MMParallaxView { 10 | enum TopHeightType { 11 | case height(value: CGFloat) 12 | case percentHeight(value: CGFloat) 13 | case dependOnIntrinsicContent 14 | } 15 | 16 | enum ShiftStatus: Equatable { 17 | case hide 18 | case show 19 | case percent(value: CGFloat) 20 | public static func == (lhs: ShiftStatus, rhs: ShiftStatus) -> Bool { 21 | switch (lhs, rhs) { 22 | case (.show, .show), (.hide, .hide): 23 | return true 24 | case (.percent(let lValue), .percent(let rValue)): 25 | return lValue == rValue 26 | default: 27 | return false 28 | } 29 | } 30 | 31 | var percent: CGFloat { 32 | get { 33 | switch self { 34 | case .hide: 35 | return 1 36 | case .show: 37 | return 0 38 | case .percent(let value): 39 | return value 40 | } 41 | } 42 | } 43 | 44 | } 45 | } 46 | 47 | public class MMParallaxTopSegue: UIStoryboardSegue { 48 | override public func perform() {} 49 | } 50 | 51 | public class MMParallaxBottomSegue: UIStoryboardSegue { 52 | override public func perform() {} 53 | } 54 | -------------------------------------------------------------------------------- /MMParallaxView/Classes/UIViewController+Parallax+Find.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+Parallax+Find.swift 3 | // Pods 4 | // 5 | // Created by Millman YANG on 2018/6/5. 6 | // 7 | 8 | import Foundation 9 | extension UIViewController { 10 | 11 | public var parallax: MMParallaxView? { 12 | get { 13 | return UIViewController.findFrom(vc: self) 14 | } 15 | } 16 | 17 | 18 | static func findFrom(vc: UIViewController?) -> MMParallaxView? { 19 | guard let p = vc?.parent else { 20 | return nil 21 | } 22 | 23 | if let parallx = p as? MMParallaxViewController { 24 | return parallx.parallaxView 25 | } else { 26 | return UIViewController.findFrom(vc: p) 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MMParallaxView 2 | 3 | [![CI Status](https://img.shields.io/travis/millmanyang@gmail.com/MMParallaxView.svg?style=flat)](https://travis-ci.org/millmanyang@gmail.com/MMParallaxView) 4 | [![Version](https://img.shields.io/cocoapods/v/MMParallaxView.svg?style=flat)](https://cocoapods.org/pods/MMParallaxView) 5 | [![License](https://img.shields.io/cocoapods/l/MMParallaxView.svg?style=flat)](https://cocoapods.org/pods/MMParallaxView) 6 | [![Platform](https://img.shields.io/cocoapods/p/MMParallaxView.svg?style=flat)](https://cocoapods.org/pods/MMParallaxView) 7 | 8 | 9 | ![demo1](https://github.com/MillmanY/MMParallaxView/blob/master/demoGIF/demo1.gif) 10 | ![demo2](https://github.com/MillmanY/MMParallaxView/blob/master/demoGIF/demo2.gif) 11 | 12 | 13 | ## MMParallaxViewController 14 | //Find your parallaxView in sub viewController 15 | public var parallax: MMParallaxView.MMParallaxView? { get } 16 | 17 | ## MMParallaxView 18 | //Set top view 19 | @IBOutlet weak public var parallaxTopView: UIView? 20 | //Set bottom view 21 | @IBOutlet weak public var parallaxBottomView: UIView? 22 | //mask on Top View 23 | public var maskAlpha: CGFloat 24 | //set parallaxBottomView margin with view top 25 | public var topMargin: CGFloat 26 | //scroll observer 27 | public var shiftStatus: ((MMParallaxView.MMParallaxView.ShiftStatus) -> Swift.Void)? 28 | //set parallaxTopView height 29 | public var heightType: MMParallaxView.MMParallaxView.TopHeightType 30 | public var parallaxBottomOffsetTop: CGFloat 31 | //set top view shift rate when you scroll bottom view (value need >= 1) 32 | public var parallaxTopShiftRate: CGFloat 33 | // value 0-1 to pause view when animate stop 34 | public var pauseLocation: CGFloat? 35 | public var status: MMParallaxView.MMParallaxView.ShiftStatus 36 | required public init?(coder aDecoder: NSCoder) 37 | public func showTopView() 38 | public func hideTopView() 39 | public func set(topView: UIView, bottomView: UIView, topHeight: MMParallaxView.MMParallaxView.TopHeightType) 40 | 41 | ## Requirements 42 | iOS 10.0+ 43 | Xcode 8.0+ 44 | Swift 3.0+, 4.0+ 45 | ## Installation 46 | 47 | MMParallaxView is available through [CocoaPods](https://cocoapods.org). To install 48 | it, simply add the following line to your Podfile: 49 | 50 | ```ruby 51 | pod 'MMParallaxView' 52 | ``` 53 | 54 | ## Author 55 | 56 | millmanyang@gmail.com 57 | 58 | ## License 59 | 60 | MMParallaxView is available under the MIT license. See the LICENSE file for more info. 61 | -------------------------------------------------------------------------------- /demoGIF/demo1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/demoGIF/demo1.gif -------------------------------------------------------------------------------- /demoGIF/demo2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MillmanY/MMParallaxView/6e6d4930a407c3cd7aae3872a14461e25ac8d80a/demoGIF/demo2.gif --------------------------------------------------------------------------------