├── README.md ├── StratosParallax ├── Info.plist ├── StratosParallax.h └── StratosParallaxView.swift ├── StratosParallaxExample.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── StratosParallaxExample.xccheckout └── xcuserdata │ └── claudio.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── StratosParallaxExample.xcscheme │ └── xcschememanagement.plist ├── StratosParallaxExample ├── AppDelegate.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── background.imageset │ │ ├── Contents.json │ │ └── background.pdf │ ├── clouds.imageset │ │ ├── Contents.json │ │ └── clouds.pdf │ ├── hills.imageset │ │ ├── Contents.json │ │ └── hill_left.pdf │ └── sea.imageset │ │ ├── Contents.json │ │ └── sea.pdf ├── Info.plist └── ViewController.swift ├── StratosParallaxExampleTests ├── Info.plist └── StratosParallaxExampleTests.swift ├── StratosParallaxTests ├── Info.plist └── StratosParallaxTests.swift └── media ├── preview.gif └── structure.gif /README.md: -------------------------------------------------------------------------------- 1 | StratosParallax 2 | =============== 3 | 4 | StratosParallax is an iOS library written in *swift* that makes easy to add a multi-stratos (multi view) parallax effect. 5 | 6 | You can use it to make really cool backgrounds for your app/game. 7 | 8 | It is made in *swift*, but it works just fine in an Objective-C project. 9 | 10 | 11 | #* What's the goal? 12 | 13 | The goal is to help you make a multi-view parallax effect like the one in the opening screen of the iOS game [The Boxtrolls](https://itunes.apple.com/us/app/the-boxtrolls-slide-n-sneak/id911631097?mt=8). 14 | 15 | Here's a 4 view parallax made with StratosParallax (bg, mountains, hills and sea + button on top): 16 | ![StratosParallax preview](http://c0393da1d298edea0990-33e475e3e342d2aa8acfcc1c6ae6f136.r94.cf2.rackcdn.com/preview.gif) 17 | 18 | It's the same you get downloading the project. 19 | 20 | 21 | #* How is it made? 22 | Add a **StratosParallaxView** view-component to your view (using Interface Builder or programmatically). Then set the in the property **viewsToAnimate** an array of views you want to apply the effect upon. 23 | 24 | You can add anything that inherits from UIView. Optionally you can set the strength of the parallax effect (with some predefined values or in number of points). 25 | 26 | Here you can see how the views in the StratosParallaxView are layered: 27 | ![StratosParallax structure](http://c0393da1d298edea0990-33e475e3e342d2aa8acfcc1c6ae6f136.r94.cf2.rackcdn.com/structure.gif) 28 | 29 | 30 | #* How-to use this library? 31 | 32 | ### Step 1, Intallation: 33 | You have two ways to install this module/framework/library. 34 | 35 | #### Option A: Frameworks (Better) 36 | Trasnform your XCode project into a workspace. Then add the StratosParallaxExample project to your workspace. Now goes in the Project, select your app *target* and add a new *Linked Framework*. Add the framework with name **StratosParallax.framework**. 37 | 38 | Remember that you should import the module (*import StratosParallax*) in the classes where you're going to use it. 39 | 40 | #### Option B: Copy 41 | Download the code and add to your project the file **StratosParallaxView.swift** . Start to use the new class methods. 42 | 43 | 44 | ### Step 2, option A: Interface Builder 45 | 46 | The first option is to add an UIView component to your view, then opening the **Identity inspector** in the right side pane, change the class of the view to **StratosParallaxView**. 47 | 48 | In your view controller create an IBOutlet and connect it to the StratosParallaxView component in Interface Builder. 49 | 50 | In your ViewController setup the **StratosParallaxView**. Like in the following example: 51 | 52 | import UIKit 53 | import StratosParallax 54 | 55 | class ViewController: UIViewController { 56 | 57 | @IBOutlet weak var stratosParallaxView: StratosParallaxView! 58 | 59 | override func viewDidLoad() { 60 | super.viewDidLoad() 61 | 62 | // Setup the StratosParallaxView 63 | stratosParallaxView.viewsToAnimate = [...] // Array of n views 64 | stratosParallaxView.strength = .Strong // Set the strength of the effect 65 | //stratosParallaxView.strengthPoints = 300.0 // Alternative method to set the strength 66 | } 67 | } 68 | 69 | 70 | ### Step 2, option B: programmatically 71 | 72 | In your view controller instatiate the StratosParallaxView component and the setup it. 73 | Here's an example: 74 | 75 | import UIKit 76 | import StratosParallax 77 | 78 | class ViewController: UIViewController { 79 | 80 | override func viewDidLoad() { 81 | super.viewDidLoad() 82 | 83 | // Setup the StratosParallaxView 84 | var stratosParallaxView = StratosParallaxView(frame: self.view.bounds) 85 | stratosParallaxView.viewsToAnimate = [...] // Array of n views 86 | stratosParallaxView.strength = .Strong // Set the strength of the effect 87 | //stratosParallaxView.strengthPoints = 300.0 // Alternative method to set the strength 88 | 89 | self.view.addSubview(stratosParallaxView) // Add the stratosParallaxView to the view 90 | } 91 | } 92 | 93 | 94 | # Notes 95 | 96 | Few notes here: 97 | 98 | * You can use the StratosParallaxView component in an Objective-C project. The interface is the same 99 | * The component support resizing of the StratosParallaxView component 100 | * The component displays the views as is. It's your responsibility to set their frames. 101 | * The component frame's is incresed and repositioned by an amount big as strengthPoints. This way the StratosParallaxView component is able to move the views inside to create the parallax effect without showing their edges 102 | * You can add as view to animate, everything that subclass UIView 103 | 104 | 105 | # Contacts 106 | 107 | Please comment, report issues and suggest improvements. You can write me at . 108 | Cheers! 109 | -------------------------------------------------------------------------------- /StratosParallax/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | Tugulab.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /StratosParallax/StratosParallax.h: -------------------------------------------------------------------------------- 1 | // 2 | // StratosParallax.h 3 | // StratosParallax 4 | // 5 | // Created by Claudio Carnino on 23/10/2014. 6 | // Copyright (c) 2014 Claudio Carnino's Tugulab. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for StratosParallax. 12 | FOUNDATION_EXPORT double StratosParallaxVersionNumber; 13 | 14 | //! Project version string for StratosParallax. 15 | FOUNDATION_EXPORT const unsigned char StratosParallaxVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /StratosParallax/StratosParallaxView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StratosParallaxView.swift 3 | // StratosParallaxExample 4 | // 5 | // Created by Claudio Carnino on 18/10/2014. 6 | // Copyright (c) 2014 Claudio Carnino's Tugulab. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | 13 | public enum StratosParallaxStrength: Double { 14 | case Strong = 300.0 15 | case Medium = 150.0 16 | case Soft = 50.0 17 | } 18 | 19 | 20 | 21 | public class StratosParallaxView: UIView { 22 | 23 | // MARK: - Public interface 24 | 25 | // Array of views to animate with the parallax effect. The last view in the array will be the most foreground one 26 | public var viewsToAnimate: [UIView] = [] { 27 | willSet { 28 | // Remove the views added previously 29 | for viewToAnimate in viewsToAnimate { 30 | viewToAnimate.removeFromSuperview() 31 | } 32 | } 33 | didSet { 34 | // Add the newly setted views 35 | for viewToAnimate in viewsToAnimate { 36 | self.addSubview(viewToAnimate) 37 | } 38 | 39 | cacheViewsFrames() 40 | self.setNeedsLayout() 41 | } 42 | } 43 | 44 | // Strenght of the parallax effect using the predefined strengths levels 45 | public var strength: StratosParallaxStrength = .Medium { 46 | didSet { 47 | self.strengthPoints = strength.rawValue 48 | self.setNeedsLayout() 49 | } 50 | } 51 | 52 | // Strenght of the parallax effect using the movement in points 53 | public var strengthPoints: Double = StratosParallaxStrength.Medium.rawValue { 54 | didSet { 55 | self.setNeedsLayout() 56 | } 57 | } 58 | 59 | 60 | 61 | // MARK: - Private properties 62 | private var viewsFrames: [CGRect] = [] 63 | 64 | 65 | 66 | // MARK: - App lifecyle 67 | 68 | // override public init() { 69 | // super.init() 70 | // initializer() 71 | // } 72 | 73 | 74 | 75 | override public init(frame: CGRect) { 76 | super.init(frame: frame) 77 | initializer() 78 | } 79 | 80 | 81 | 82 | required public init(coder aDecoder: NSCoder) { 83 | super.init(coder: aDecoder) 84 | initializer() 85 | } 86 | 87 | 88 | 89 | private func initializer() { 90 | 91 | self.backgroundColor = UIColor.clearColor() 92 | } 93 | 94 | 95 | 96 | private func cacheViewsFrames() { 97 | 98 | viewsFrames = [] 99 | for view in viewsToAnimate { 100 | viewsFrames.append(view.bounds) 101 | } 102 | } 103 | 104 | 105 | 106 | /** 107 | Increase the size of the views' frames, so when the parallax move the image, the views' edges are never shown 108 | */ 109 | private func fixViewsFrames() { 110 | 111 | let additionalSpaceNeededForParallax = CGFloat(strengthPoints) 112 | 113 | for index in 0 ..< viewsToAnimate.count { 114 | 115 | let originalFrame = viewsFrames[index] 116 | var view = viewsToAnimate[index] 117 | 118 | var newFrame = originalFrame 119 | newFrame.origin.x = additionalSpaceNeededForParallax / -2.0 120 | newFrame.origin.y = additionalSpaceNeededForParallax / -2.0 121 | newFrame.size.width += additionalSpaceNeededForParallax 122 | newFrame.size.height += additionalSpaceNeededForParallax 123 | 124 | view.bounds = newFrame 125 | } 126 | } 127 | 128 | 129 | 130 | /** 131 | Apply the parallax motion effect to the views to create a parallax effect. 132 | Each view will have a different min/max motion effect relative value, so each view moves in a different fashion. 133 | This will make the parallax effect more realistic 134 | */ 135 | private func applyParallaxEffect() { 136 | 137 | // The most background view will move in the opposite direction of the most foreground one 138 | let startingStrength = strengthPoints / -2.0 139 | 140 | // Calculate how much changes the strength of the effect per view 141 | let strengthChangePerView = strengthPoints / (Double(viewsToAnimate.count) - 1) 142 | 143 | // Apply the correct parallax strength values to the views 144 | for index in 0 ..< viewsToAnimate.count { 145 | 146 | let strenghtCurrentView = startingStrength + strengthChangePerView * Double(index) 147 | 148 | applyParallaxMotionEffectToView(viewsToAnimate[index], strength: strenghtCurrentView) 149 | } 150 | } 151 | 152 | 153 | 154 | private func applyParallaxMotionEffectToView(view: UIView, strength: Double) { 155 | 156 | let horizonalInterpolation = UIInterpolatingMotionEffect(keyPath: "center.x", type: UIInterpolatingMotionEffectType.TiltAlongHorizontalAxis) 157 | horizonalInterpolation.minimumRelativeValue = strength * -1 158 | horizonalInterpolation.maximumRelativeValue = strength 159 | 160 | let verticalInterpolation = UIInterpolatingMotionEffect(keyPath: "center.y", type: UIInterpolatingMotionEffectType.TiltAlongVerticalAxis) 161 | verticalInterpolation.minimumRelativeValue = strength * -1 162 | verticalInterpolation.maximumRelativeValue = strength 163 | 164 | view.motionEffects = [horizonalInterpolation, verticalInterpolation] 165 | } 166 | 167 | 168 | 169 | override public func layoutSubviews() { 170 | 171 | super.layoutSubviews() 172 | 173 | fixViewsFrames() 174 | applyParallaxEffect() 175 | } 176 | 177 | } 178 | -------------------------------------------------------------------------------- /StratosParallaxExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | CA2915E419F302710068FE09 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA2915E319F302710068FE09 /* AppDelegate.swift */; }; 11 | CA2915E619F302710068FE09 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA2915E519F302710068FE09 /* ViewController.swift */; }; 12 | CA2915E919F302710068FE09 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CA2915E719F302710068FE09 /* Main.storyboard */; }; 13 | CA2915EB19F302710068FE09 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CA2915EA19F302710068FE09 /* Images.xcassets */; }; 14 | CA2915EE19F302710068FE09 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = CA2915EC19F302710068FE09 /* LaunchScreen.xib */; }; 15 | CA2915FA19F302710068FE09 /* StratosParallaxExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA2915F919F302710068FE09 /* StratosParallaxExampleTests.swift */; }; 16 | CAB2A98A19F8EF0200840539 /* StratosParallax.h in Headers */ = {isa = PBXBuildFile; fileRef = CAB2A98919F8EF0200840539 /* StratosParallax.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | CAB2A99019F8EF0200840539 /* StratosParallax.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CAB2A98519F8EF0200840539 /* StratosParallax.framework */; }; 18 | CAB2A99919F8EF0200840539 /* StratosParallaxTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAB2A99819F8EF0200840539 /* StratosParallaxTests.swift */; }; 19 | CAB2A99C19F8EF0200840539 /* StratosParallax.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CAB2A98519F8EF0200840539 /* StratosParallax.framework */; }; 20 | CAB2A99D19F8EF0200840539 /* StratosParallax.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = CAB2A98519F8EF0200840539 /* StratosParallax.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 21 | CAB2A9A619F8EF3400840539 /* StratosParallaxView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAB2A9A519F8EF3400840539 /* StratosParallaxView.swift */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | CA2915F419F302710068FE09 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = CA2915D619F302710068FE09 /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = CA2915DD19F302710068FE09; 30 | remoteInfo = StratosParallaxExample; 31 | }; 32 | CAB2A99119F8EF0200840539 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = CA2915D619F302710068FE09 /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = CAB2A98419F8EF0200840539; 37 | remoteInfo = StratosParallax; 38 | }; 39 | CAB2A99319F8EF0200840539 /* PBXContainerItemProxy */ = { 40 | isa = PBXContainerItemProxy; 41 | containerPortal = CA2915D619F302710068FE09 /* Project object */; 42 | proxyType = 1; 43 | remoteGlobalIDString = CA2915DD19F302710068FE09; 44 | remoteInfo = StratosParallaxExample; 45 | }; 46 | CAB2A99A19F8EF0200840539 /* PBXContainerItemProxy */ = { 47 | isa = PBXContainerItemProxy; 48 | containerPortal = CA2915D619F302710068FE09 /* Project object */; 49 | proxyType = 1; 50 | remoteGlobalIDString = CAB2A98419F8EF0200840539; 51 | remoteInfo = StratosParallax; 52 | }; 53 | /* End PBXContainerItemProxy section */ 54 | 55 | /* Begin PBXCopyFilesBuildPhase section */ 56 | CAB2A9A319F8EF0200840539 /* Embed Frameworks */ = { 57 | isa = PBXCopyFilesBuildPhase; 58 | buildActionMask = 2147483647; 59 | dstPath = ""; 60 | dstSubfolderSpec = 10; 61 | files = ( 62 | CAB2A99D19F8EF0200840539 /* StratosParallax.framework in Embed Frameworks */, 63 | ); 64 | name = "Embed Frameworks"; 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | /* End PBXCopyFilesBuildPhase section */ 68 | 69 | /* Begin PBXFileReference section */ 70 | CA2915DE19F302710068FE09 /* StratosParallaxExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StratosParallaxExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | CA2915E219F302710068FE09 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 72 | CA2915E319F302710068FE09 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 73 | CA2915E519F302710068FE09 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 74 | CA2915E819F302710068FE09 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 75 | CA2915EA19F302710068FE09 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 76 | CA2915ED19F302710068FE09 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 77 | CA2915F319F302710068FE09 /* StratosParallaxExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StratosParallaxExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | CA2915F819F302710068FE09 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 79 | CA2915F919F302710068FE09 /* StratosParallaxExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StratosParallaxExampleTests.swift; sourceTree = ""; }; 80 | CAB2A98519F8EF0200840539 /* StratosParallax.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = StratosParallax.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 81 | CAB2A98819F8EF0200840539 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 82 | CAB2A98919F8EF0200840539 /* StratosParallax.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StratosParallax.h; sourceTree = ""; }; 83 | CAB2A98F19F8EF0200840539 /* StratosParallaxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StratosParallaxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 84 | CAB2A99719F8EF0200840539 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 85 | CAB2A99819F8EF0200840539 /* StratosParallaxTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StratosParallaxTests.swift; sourceTree = ""; }; 86 | CAB2A9A519F8EF3400840539 /* StratosParallaxView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StratosParallaxView.swift; sourceTree = ""; }; 87 | /* End PBXFileReference section */ 88 | 89 | /* Begin PBXFrameworksBuildPhase section */ 90 | CA2915DB19F302710068FE09 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | CAB2A99C19F8EF0200840539 /* StratosParallax.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | CA2915F019F302710068FE09 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | CAB2A98119F8EF0200840539 /* Frameworks */ = { 106 | isa = PBXFrameworksBuildPhase; 107 | buildActionMask = 2147483647; 108 | files = ( 109 | ); 110 | runOnlyForDeploymentPostprocessing = 0; 111 | }; 112 | CAB2A98C19F8EF0200840539 /* Frameworks */ = { 113 | isa = PBXFrameworksBuildPhase; 114 | buildActionMask = 2147483647; 115 | files = ( 116 | CAB2A99019F8EF0200840539 /* StratosParallax.framework in Frameworks */, 117 | ); 118 | runOnlyForDeploymentPostprocessing = 0; 119 | }; 120 | /* End PBXFrameworksBuildPhase section */ 121 | 122 | /* Begin PBXGroup section */ 123 | CA2915D519F302710068FE09 = { 124 | isa = PBXGroup; 125 | children = ( 126 | CA2915E019F302710068FE09 /* StratosParallaxExample */, 127 | CA2915F619F302710068FE09 /* StratosParallaxExampleTests */, 128 | CAB2A98619F8EF0200840539 /* StratosParallax */, 129 | CAB2A99519F8EF0200840539 /* StratosParallaxTests */, 130 | CA2915DF19F302710068FE09 /* Products */, 131 | ); 132 | sourceTree = ""; 133 | }; 134 | CA2915DF19F302710068FE09 /* Products */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | CA2915DE19F302710068FE09 /* StratosParallaxExample.app */, 138 | CA2915F319F302710068FE09 /* StratosParallaxExampleTests.xctest */, 139 | CAB2A98519F8EF0200840539 /* StratosParallax.framework */, 140 | CAB2A98F19F8EF0200840539 /* StratosParallaxTests.xctest */, 141 | ); 142 | name = Products; 143 | sourceTree = ""; 144 | }; 145 | CA2915E019F302710068FE09 /* StratosParallaxExample */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | CA2915E319F302710068FE09 /* AppDelegate.swift */, 149 | CA2915E519F302710068FE09 /* ViewController.swift */, 150 | CA2915E719F302710068FE09 /* Main.storyboard */, 151 | CA2915EA19F302710068FE09 /* Images.xcassets */, 152 | CA2915EC19F302710068FE09 /* LaunchScreen.xib */, 153 | CA2915E119F302710068FE09 /* Supporting Files */, 154 | ); 155 | path = StratosParallaxExample; 156 | sourceTree = ""; 157 | }; 158 | CA2915E119F302710068FE09 /* Supporting Files */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | CA2915E219F302710068FE09 /* Info.plist */, 162 | ); 163 | name = "Supporting Files"; 164 | sourceTree = ""; 165 | }; 166 | CA2915F619F302710068FE09 /* StratosParallaxExampleTests */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | CA2915F919F302710068FE09 /* StratosParallaxExampleTests.swift */, 170 | CA2915F719F302710068FE09 /* Supporting Files */, 171 | ); 172 | path = StratosParallaxExampleTests; 173 | sourceTree = ""; 174 | }; 175 | CA2915F719F302710068FE09 /* Supporting Files */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | CA2915F819F302710068FE09 /* Info.plist */, 179 | ); 180 | name = "Supporting Files"; 181 | sourceTree = ""; 182 | }; 183 | CAB2A98619F8EF0200840539 /* StratosParallax */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | CAB2A98919F8EF0200840539 /* StratosParallax.h */, 187 | CAB2A9A519F8EF3400840539 /* StratosParallaxView.swift */, 188 | CAB2A98719F8EF0200840539 /* Supporting Files */, 189 | ); 190 | path = StratosParallax; 191 | sourceTree = ""; 192 | }; 193 | CAB2A98719F8EF0200840539 /* Supporting Files */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | CAB2A98819F8EF0200840539 /* Info.plist */, 197 | ); 198 | name = "Supporting Files"; 199 | sourceTree = ""; 200 | }; 201 | CAB2A99519F8EF0200840539 /* StratosParallaxTests */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | CAB2A99819F8EF0200840539 /* StratosParallaxTests.swift */, 205 | CAB2A99619F8EF0200840539 /* Supporting Files */, 206 | ); 207 | path = StratosParallaxTests; 208 | sourceTree = ""; 209 | }; 210 | CAB2A99619F8EF0200840539 /* Supporting Files */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | CAB2A99719F8EF0200840539 /* Info.plist */, 214 | ); 215 | name = "Supporting Files"; 216 | sourceTree = ""; 217 | }; 218 | /* End PBXGroup section */ 219 | 220 | /* Begin PBXHeadersBuildPhase section */ 221 | CAB2A98219F8EF0200840539 /* Headers */ = { 222 | isa = PBXHeadersBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | CAB2A98A19F8EF0200840539 /* StratosParallax.h in Headers */, 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | }; 229 | /* End PBXHeadersBuildPhase section */ 230 | 231 | /* Begin PBXNativeTarget section */ 232 | CA2915DD19F302710068FE09 /* StratosParallaxExample */ = { 233 | isa = PBXNativeTarget; 234 | buildConfigurationList = CA2915FD19F302710068FE09 /* Build configuration list for PBXNativeTarget "StratosParallaxExample" */; 235 | buildPhases = ( 236 | CA2915DA19F302710068FE09 /* Sources */, 237 | CA2915DB19F302710068FE09 /* Frameworks */, 238 | CA2915DC19F302710068FE09 /* Resources */, 239 | CAB2A9A319F8EF0200840539 /* Embed Frameworks */, 240 | ); 241 | buildRules = ( 242 | ); 243 | dependencies = ( 244 | CAB2A99B19F8EF0200840539 /* PBXTargetDependency */, 245 | ); 246 | name = StratosParallaxExample; 247 | productName = StratosParallaxExample; 248 | productReference = CA2915DE19F302710068FE09 /* StratosParallaxExample.app */; 249 | productType = "com.apple.product-type.application"; 250 | }; 251 | CA2915F219F302710068FE09 /* StratosParallaxExampleTests */ = { 252 | isa = PBXNativeTarget; 253 | buildConfigurationList = CA29160019F302710068FE09 /* Build configuration list for PBXNativeTarget "StratosParallaxExampleTests" */; 254 | buildPhases = ( 255 | CA2915EF19F302710068FE09 /* Sources */, 256 | CA2915F019F302710068FE09 /* Frameworks */, 257 | CA2915F119F302710068FE09 /* Resources */, 258 | ); 259 | buildRules = ( 260 | ); 261 | dependencies = ( 262 | CA2915F519F302710068FE09 /* PBXTargetDependency */, 263 | ); 264 | name = StratosParallaxExampleTests; 265 | productName = StratosParallaxExampleTests; 266 | productReference = CA2915F319F302710068FE09 /* StratosParallaxExampleTests.xctest */; 267 | productType = "com.apple.product-type.bundle.unit-test"; 268 | }; 269 | CAB2A98419F8EF0200840539 /* StratosParallax */ = { 270 | isa = PBXNativeTarget; 271 | buildConfigurationList = CAB2A9A219F8EF0200840539 /* Build configuration list for PBXNativeTarget "StratosParallax" */; 272 | buildPhases = ( 273 | CAB2A98019F8EF0200840539 /* Sources */, 274 | CAB2A98119F8EF0200840539 /* Frameworks */, 275 | CAB2A98219F8EF0200840539 /* Headers */, 276 | CAB2A98319F8EF0200840539 /* Resources */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | ); 282 | name = StratosParallax; 283 | productName = StratosParallax; 284 | productReference = CAB2A98519F8EF0200840539 /* StratosParallax.framework */; 285 | productType = "com.apple.product-type.framework"; 286 | }; 287 | CAB2A98E19F8EF0200840539 /* StratosParallaxTests */ = { 288 | isa = PBXNativeTarget; 289 | buildConfigurationList = CAB2A9A419F8EF0200840539 /* Build configuration list for PBXNativeTarget "StratosParallaxTests" */; 290 | buildPhases = ( 291 | CAB2A98B19F8EF0200840539 /* Sources */, 292 | CAB2A98C19F8EF0200840539 /* Frameworks */, 293 | CAB2A98D19F8EF0200840539 /* Resources */, 294 | ); 295 | buildRules = ( 296 | ); 297 | dependencies = ( 298 | CAB2A99219F8EF0200840539 /* PBXTargetDependency */, 299 | CAB2A99419F8EF0200840539 /* PBXTargetDependency */, 300 | ); 301 | name = StratosParallaxTests; 302 | productName = StratosParallaxTests; 303 | productReference = CAB2A98F19F8EF0200840539 /* StratosParallaxTests.xctest */; 304 | productType = "com.apple.product-type.bundle.unit-test"; 305 | }; 306 | /* End PBXNativeTarget section */ 307 | 308 | /* Begin PBXProject section */ 309 | CA2915D619F302710068FE09 /* Project object */ = { 310 | isa = PBXProject; 311 | attributes = { 312 | LastUpgradeCheck = 0600; 313 | ORGANIZATIONNAME = "Claudio Carnino's Tugulab"; 314 | TargetAttributes = { 315 | CA2915DD19F302710068FE09 = { 316 | CreatedOnToolsVersion = 6.0.1; 317 | DevelopmentTeam = G533U647J9; 318 | }; 319 | CA2915F219F302710068FE09 = { 320 | CreatedOnToolsVersion = 6.0.1; 321 | TestTargetID = CA2915DD19F302710068FE09; 322 | }; 323 | CAB2A98419F8EF0200840539 = { 324 | CreatedOnToolsVersion = 6.1; 325 | DevelopmentTeam = G533U647J9; 326 | }; 327 | CAB2A98E19F8EF0200840539 = { 328 | CreatedOnToolsVersion = 6.1; 329 | TestTargetID = CA2915DD19F302710068FE09; 330 | }; 331 | }; 332 | }; 333 | buildConfigurationList = CA2915D919F302710068FE09 /* Build configuration list for PBXProject "StratosParallaxExample" */; 334 | compatibilityVersion = "Xcode 3.2"; 335 | developmentRegion = English; 336 | hasScannedForEncodings = 0; 337 | knownRegions = ( 338 | en, 339 | Base, 340 | ); 341 | mainGroup = CA2915D519F302710068FE09; 342 | productRefGroup = CA2915DF19F302710068FE09 /* Products */; 343 | projectDirPath = ""; 344 | projectRoot = ""; 345 | targets = ( 346 | CA2915DD19F302710068FE09 /* StratosParallaxExample */, 347 | CA2915F219F302710068FE09 /* StratosParallaxExampleTests */, 348 | CAB2A98419F8EF0200840539 /* StratosParallax */, 349 | CAB2A98E19F8EF0200840539 /* StratosParallaxTests */, 350 | ); 351 | }; 352 | /* End PBXProject section */ 353 | 354 | /* Begin PBXResourcesBuildPhase section */ 355 | CA2915DC19F302710068FE09 /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | CA2915E919F302710068FE09 /* Main.storyboard in Resources */, 360 | CA2915EE19F302710068FE09 /* LaunchScreen.xib in Resources */, 361 | CA2915EB19F302710068FE09 /* Images.xcassets in Resources */, 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | }; 365 | CA2915F119F302710068FE09 /* Resources */ = { 366 | isa = PBXResourcesBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | ); 370 | runOnlyForDeploymentPostprocessing = 0; 371 | }; 372 | CAB2A98319F8EF0200840539 /* Resources */ = { 373 | isa = PBXResourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | CAB2A98D19F8EF0200840539 /* Resources */ = { 380 | isa = PBXResourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | }; 386 | /* End PBXResourcesBuildPhase section */ 387 | 388 | /* Begin PBXSourcesBuildPhase section */ 389 | CA2915DA19F302710068FE09 /* Sources */ = { 390 | isa = PBXSourcesBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | CA2915E619F302710068FE09 /* ViewController.swift in Sources */, 394 | CA2915E419F302710068FE09 /* AppDelegate.swift in Sources */, 395 | ); 396 | runOnlyForDeploymentPostprocessing = 0; 397 | }; 398 | CA2915EF19F302710068FE09 /* Sources */ = { 399 | isa = PBXSourcesBuildPhase; 400 | buildActionMask = 2147483647; 401 | files = ( 402 | CA2915FA19F302710068FE09 /* StratosParallaxExampleTests.swift in Sources */, 403 | ); 404 | runOnlyForDeploymentPostprocessing = 0; 405 | }; 406 | CAB2A98019F8EF0200840539 /* Sources */ = { 407 | isa = PBXSourcesBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | CAB2A9A619F8EF3400840539 /* StratosParallaxView.swift in Sources */, 411 | ); 412 | runOnlyForDeploymentPostprocessing = 0; 413 | }; 414 | CAB2A98B19F8EF0200840539 /* Sources */ = { 415 | isa = PBXSourcesBuildPhase; 416 | buildActionMask = 2147483647; 417 | files = ( 418 | CAB2A99919F8EF0200840539 /* StratosParallaxTests.swift in Sources */, 419 | ); 420 | runOnlyForDeploymentPostprocessing = 0; 421 | }; 422 | /* End PBXSourcesBuildPhase section */ 423 | 424 | /* Begin PBXTargetDependency section */ 425 | CA2915F519F302710068FE09 /* PBXTargetDependency */ = { 426 | isa = PBXTargetDependency; 427 | target = CA2915DD19F302710068FE09 /* StratosParallaxExample */; 428 | targetProxy = CA2915F419F302710068FE09 /* PBXContainerItemProxy */; 429 | }; 430 | CAB2A99219F8EF0200840539 /* PBXTargetDependency */ = { 431 | isa = PBXTargetDependency; 432 | target = CAB2A98419F8EF0200840539 /* StratosParallax */; 433 | targetProxy = CAB2A99119F8EF0200840539 /* PBXContainerItemProxy */; 434 | }; 435 | CAB2A99419F8EF0200840539 /* PBXTargetDependency */ = { 436 | isa = PBXTargetDependency; 437 | target = CA2915DD19F302710068FE09 /* StratosParallaxExample */; 438 | targetProxy = CAB2A99319F8EF0200840539 /* PBXContainerItemProxy */; 439 | }; 440 | CAB2A99B19F8EF0200840539 /* PBXTargetDependency */ = { 441 | isa = PBXTargetDependency; 442 | target = CAB2A98419F8EF0200840539 /* StratosParallax */; 443 | targetProxy = CAB2A99A19F8EF0200840539 /* PBXContainerItemProxy */; 444 | }; 445 | /* End PBXTargetDependency section */ 446 | 447 | /* Begin PBXVariantGroup section */ 448 | CA2915E719F302710068FE09 /* Main.storyboard */ = { 449 | isa = PBXVariantGroup; 450 | children = ( 451 | CA2915E819F302710068FE09 /* Base */, 452 | ); 453 | name = Main.storyboard; 454 | sourceTree = ""; 455 | }; 456 | CA2915EC19F302710068FE09 /* LaunchScreen.xib */ = { 457 | isa = PBXVariantGroup; 458 | children = ( 459 | CA2915ED19F302710068FE09 /* Base */, 460 | ); 461 | name = LaunchScreen.xib; 462 | sourceTree = ""; 463 | }; 464 | /* End PBXVariantGroup section */ 465 | 466 | /* Begin XCBuildConfiguration section */ 467 | CA2915FB19F302710068FE09 /* Debug */ = { 468 | isa = XCBuildConfiguration; 469 | buildSettings = { 470 | ALWAYS_SEARCH_USER_PATHS = NO; 471 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 472 | CLANG_CXX_LIBRARY = "libc++"; 473 | CLANG_ENABLE_MODULES = YES; 474 | CLANG_ENABLE_OBJC_ARC = YES; 475 | CLANG_WARN_BOOL_CONVERSION = YES; 476 | CLANG_WARN_CONSTANT_CONVERSION = YES; 477 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 478 | CLANG_WARN_EMPTY_BODY = YES; 479 | CLANG_WARN_ENUM_CONVERSION = YES; 480 | CLANG_WARN_INT_CONVERSION = YES; 481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 482 | CLANG_WARN_UNREACHABLE_CODE = YES; 483 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 484 | CODE_SIGN_IDENTITY = "iPhone Developer"; 485 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 486 | COPY_PHASE_STRIP = NO; 487 | ENABLE_STRICT_OBJC_MSGSEND = YES; 488 | GCC_C_LANGUAGE_STANDARD = gnu99; 489 | GCC_DYNAMIC_NO_PIC = NO; 490 | GCC_OPTIMIZATION_LEVEL = 0; 491 | GCC_PREPROCESSOR_DEFINITIONS = ( 492 | "DEBUG=1", 493 | "$(inherited)", 494 | ); 495 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 497 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 498 | GCC_WARN_UNDECLARED_SELECTOR = YES; 499 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 500 | GCC_WARN_UNUSED_FUNCTION = YES; 501 | GCC_WARN_UNUSED_VARIABLE = YES; 502 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 503 | MTL_ENABLE_DEBUG_INFO = YES; 504 | ONLY_ACTIVE_ARCH = YES; 505 | SDKROOT = iphoneos; 506 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 507 | TARGETED_DEVICE_FAMILY = "1,2"; 508 | }; 509 | name = Debug; 510 | }; 511 | CA2915FC19F302710068FE09 /* Release */ = { 512 | isa = XCBuildConfiguration; 513 | buildSettings = { 514 | ALWAYS_SEARCH_USER_PATHS = NO; 515 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 516 | CLANG_CXX_LIBRARY = "libc++"; 517 | CLANG_ENABLE_MODULES = YES; 518 | CLANG_ENABLE_OBJC_ARC = YES; 519 | CLANG_WARN_BOOL_CONVERSION = YES; 520 | CLANG_WARN_CONSTANT_CONVERSION = YES; 521 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 522 | CLANG_WARN_EMPTY_BODY = YES; 523 | CLANG_WARN_ENUM_CONVERSION = YES; 524 | CLANG_WARN_INT_CONVERSION = YES; 525 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 526 | CLANG_WARN_UNREACHABLE_CODE = YES; 527 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 528 | CODE_SIGN_IDENTITY = "iPhone Distribution"; 529 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; 530 | COPY_PHASE_STRIP = YES; 531 | ENABLE_NS_ASSERTIONS = NO; 532 | ENABLE_STRICT_OBJC_MSGSEND = YES; 533 | GCC_C_LANGUAGE_STANDARD = gnu99; 534 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 535 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 536 | GCC_WARN_UNDECLARED_SELECTOR = YES; 537 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 538 | GCC_WARN_UNUSED_FUNCTION = YES; 539 | GCC_WARN_UNUSED_VARIABLE = YES; 540 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 541 | MTL_ENABLE_DEBUG_INFO = NO; 542 | SDKROOT = iphoneos; 543 | TARGETED_DEVICE_FAMILY = "1,2"; 544 | VALIDATE_PRODUCT = YES; 545 | }; 546 | name = Release; 547 | }; 548 | CA2915FE19F302710068FE09 /* Debug */ = { 549 | isa = XCBuildConfiguration; 550 | buildSettings = { 551 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 552 | INFOPLIST_FILE = StratosParallaxExample/Info.plist; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 554 | PRODUCT_NAME = "$(TARGET_NAME)"; 555 | }; 556 | name = Debug; 557 | }; 558 | CA2915FF19F302710068FE09 /* Release */ = { 559 | isa = XCBuildConfiguration; 560 | buildSettings = { 561 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 562 | INFOPLIST_FILE = StratosParallaxExample/Info.plist; 563 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 564 | PRODUCT_NAME = "$(TARGET_NAME)"; 565 | }; 566 | name = Release; 567 | }; 568 | CA29160119F302710068FE09 /* Debug */ = { 569 | isa = XCBuildConfiguration; 570 | buildSettings = { 571 | BUNDLE_LOADER = "$(TEST_HOST)"; 572 | FRAMEWORK_SEARCH_PATHS = ( 573 | "$(SDKROOT)/Developer/Library/Frameworks", 574 | "$(inherited)", 575 | ); 576 | GCC_PREPROCESSOR_DEFINITIONS = ( 577 | "DEBUG=1", 578 | "$(inherited)", 579 | ); 580 | INFOPLIST_FILE = StratosParallaxExampleTests/Info.plist; 581 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 582 | PRODUCT_NAME = "$(TARGET_NAME)"; 583 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StratosParallaxExample.app/StratosParallaxExample"; 584 | }; 585 | name = Debug; 586 | }; 587 | CA29160219F302710068FE09 /* Release */ = { 588 | isa = XCBuildConfiguration; 589 | buildSettings = { 590 | BUNDLE_LOADER = "$(TEST_HOST)"; 591 | FRAMEWORK_SEARCH_PATHS = ( 592 | "$(SDKROOT)/Developer/Library/Frameworks", 593 | "$(inherited)", 594 | ); 595 | INFOPLIST_FILE = StratosParallaxExampleTests/Info.plist; 596 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 597 | PRODUCT_NAME = "$(TARGET_NAME)"; 598 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StratosParallaxExample.app/StratosParallaxExample"; 599 | }; 600 | name = Release; 601 | }; 602 | CAB2A99E19F8EF0200840539 /* Debug */ = { 603 | isa = XCBuildConfiguration; 604 | buildSettings = { 605 | CLANG_ENABLE_MODULES = YES; 606 | CURRENT_PROJECT_VERSION = 1; 607 | DEFINES_MODULE = YES; 608 | DYLIB_COMPATIBILITY_VERSION = 1; 609 | DYLIB_CURRENT_VERSION = 1; 610 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 611 | GCC_PREPROCESSOR_DEFINITIONS = ( 612 | "DEBUG=1", 613 | "$(inherited)", 614 | ); 615 | INFOPLIST_FILE = StratosParallax/Info.plist; 616 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 617 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 618 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 619 | PRODUCT_NAME = "$(TARGET_NAME)"; 620 | SKIP_INSTALL = YES; 621 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 622 | VERSIONING_SYSTEM = "apple-generic"; 623 | VERSION_INFO_PREFIX = ""; 624 | }; 625 | name = Debug; 626 | }; 627 | CAB2A99F19F8EF0200840539 /* Release */ = { 628 | isa = XCBuildConfiguration; 629 | buildSettings = { 630 | CLANG_ENABLE_MODULES = YES; 631 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 632 | CURRENT_PROJECT_VERSION = 1; 633 | DEFINES_MODULE = YES; 634 | DYLIB_COMPATIBILITY_VERSION = 1; 635 | DYLIB_CURRENT_VERSION = 1; 636 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 637 | INFOPLIST_FILE = StratosParallax/Info.plist; 638 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 639 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 640 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 641 | PRODUCT_NAME = "$(TARGET_NAME)"; 642 | SKIP_INSTALL = YES; 643 | VERSIONING_SYSTEM = "apple-generic"; 644 | VERSION_INFO_PREFIX = ""; 645 | }; 646 | name = Release; 647 | }; 648 | CAB2A9A019F8EF0200840539 /* Debug */ = { 649 | isa = XCBuildConfiguration; 650 | buildSettings = { 651 | FRAMEWORK_SEARCH_PATHS = ( 652 | "$(SDKROOT)/Developer/Library/Frameworks", 653 | "$(inherited)", 654 | ); 655 | GCC_PREPROCESSOR_DEFINITIONS = ( 656 | "DEBUG=1", 657 | "$(inherited)", 658 | ); 659 | INFOPLIST_FILE = StratosParallaxTests/Info.plist; 660 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 661 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 662 | PRODUCT_NAME = "$(TARGET_NAME)"; 663 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StratosParallaxExample.app/StratosParallaxExample"; 664 | }; 665 | name = Debug; 666 | }; 667 | CAB2A9A119F8EF0200840539 /* Release */ = { 668 | isa = XCBuildConfiguration; 669 | buildSettings = { 670 | FRAMEWORK_SEARCH_PATHS = ( 671 | "$(SDKROOT)/Developer/Library/Frameworks", 672 | "$(inherited)", 673 | ); 674 | INFOPLIST_FILE = StratosParallaxTests/Info.plist; 675 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 676 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 677 | PRODUCT_NAME = "$(TARGET_NAME)"; 678 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StratosParallaxExample.app/StratosParallaxExample"; 679 | }; 680 | name = Release; 681 | }; 682 | /* End XCBuildConfiguration section */ 683 | 684 | /* Begin XCConfigurationList section */ 685 | CA2915D919F302710068FE09 /* Build configuration list for PBXProject "StratosParallaxExample" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | CA2915FB19F302710068FE09 /* Debug */, 689 | CA2915FC19F302710068FE09 /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | CA2915FD19F302710068FE09 /* Build configuration list for PBXNativeTarget "StratosParallaxExample" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | CA2915FE19F302710068FE09 /* Debug */, 698 | CA2915FF19F302710068FE09 /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | CA29160019F302710068FE09 /* Build configuration list for PBXNativeTarget "StratosParallaxExampleTests" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | CA29160119F302710068FE09 /* Debug */, 707 | CA29160219F302710068FE09 /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | CAB2A9A219F8EF0200840539 /* Build configuration list for PBXNativeTarget "StratosParallax" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | CAB2A99E19F8EF0200840539 /* Debug */, 716 | CAB2A99F19F8EF0200840539 /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | CAB2A9A419F8EF0200840539 /* Build configuration list for PBXNativeTarget "StratosParallaxTests" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | CAB2A9A019F8EF0200840539 /* Debug */, 725 | CAB2A9A119F8EF0200840539 /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | /* End XCConfigurationList section */ 731 | }; 732 | rootObject = CA2915D619F302710068FE09 /* Project object */; 733 | } 734 | -------------------------------------------------------------------------------- /StratosParallaxExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /StratosParallaxExample.xcodeproj/project.xcworkspace/xcshareddata/StratosParallaxExample.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | AE54B398-2C7D-4058-AD64-C5379AF73177 9 | IDESourceControlProjectName 10 | StratosParallaxExample 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | BCE3160FD850C8FC6CBC1E0F101675F8C290D365 14 | github.com:ccarnino/StratosParallax.git 15 | 16 | IDESourceControlProjectPath 17 | StratosParallaxExample.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | BCE3160FD850C8FC6CBC1E0F101675F8C290D365 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | github.com:ccarnino/StratosParallax.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | BCE3160FD850C8FC6CBC1E0F101675F8C290D365 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | BCE3160FD850C8FC6CBC1E0F101675F8C290D365 36 | IDESourceControlWCCName 37 | StratosParallaxExample 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /StratosParallaxExample.xcodeproj/xcuserdata/claudio.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /StratosParallaxExample.xcodeproj/xcuserdata/claudio.xcuserdatad/xcschemes/StratosParallaxExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 71 | 77 | 78 | 79 | 80 | 81 | 87 | 88 | 89 | 90 | 99 | 100 | 106 | 107 | 108 | 109 | 110 | 111 | 117 | 118 | 124 | 125 | 126 | 127 | 129 | 130 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /StratosParallaxExample.xcodeproj/xcuserdata/claudio.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | StratosParallax.xcscheme 8 | 9 | orderHint 10 | 1 11 | 12 | StratosParallaxExample.xcscheme 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | CA2915DD19F302710068FE09 21 | 22 | primary 23 | 24 | 25 | CA2915F219F302710068FE09 26 | 27 | primary 28 | 29 | 30 | CAB2A98419F8EF0200840539 31 | 32 | primary 33 | 34 | 35 | CAB2A98E19F8EF0200840539 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /StratosParallaxExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // StratosParallaxExample 4 | // 5 | // Created by Claudio Carnino on 18/10/2014. 6 | // Copyright (c) 2014 Claudio Carnino's Tugulab. 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: [NSObject: AnyObject]?) -> 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 | -------------------------------------------------------------------------------- /StratosParallaxExample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /StratosParallaxExample/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 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "background.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/background.imageset/background.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clacladev/StratosParallax/5ed9bc196a2c05fc710ebf1854b84c7548d7ace2/StratosParallaxExample/Images.xcassets/background.imageset/background.pdf -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/clouds.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "clouds.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/clouds.imageset/clouds.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clacladev/StratosParallax/5ed9bc196a2c05fc710ebf1854b84c7548d7ace2/StratosParallaxExample/Images.xcassets/clouds.imageset/clouds.pdf -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/hills.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "hill_left.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/hills.imageset/hill_left.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clacladev/StratosParallax/5ed9bc196a2c05fc710ebf1854b84c7548d7ace2/StratosParallaxExample/Images.xcassets/hills.imageset/hill_left.pdf -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/sea.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sea.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /StratosParallaxExample/Images.xcassets/sea.imageset/sea.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clacladev/StratosParallax/5ed9bc196a2c05fc710ebf1854b84c7548d7ace2/StratosParallaxExample/Images.xcassets/sea.imageset/sea.pdf -------------------------------------------------------------------------------- /StratosParallaxExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | Tugulab.$(PRODUCT_NAME:rfc1034identifier) 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 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /StratosParallaxExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // StratosParallaxExample 4 | // 5 | // Created by Claudio Carnino on 18/10/2014. 6 | // Copyright (c) 2014 Claudio Carnino's Tugulab. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import StratosParallax 11 | 12 | 13 | 14 | class ViewController: UIViewController { 15 | 16 | @IBOutlet weak var stratosParallaxView: StratosParallaxView! 17 | 18 | 19 | 20 | override func viewDidLoad() { 21 | 22 | super.viewDidLoad() 23 | 24 | // Setup the StratosParallaxView 25 | stratosParallaxView.viewsToAnimate = exampleViewsForParallax() 26 | stratosParallaxView.strength = .Strong 27 | //stratosParallaxView.strengthPoints = 300.0 // Alternative method to set the strength 28 | } 29 | 30 | 31 | 32 | func exampleViewsForParallax() -> [UIView] { 33 | 34 | var exampleViews: [UIView] = [] 35 | 36 | var imageNames = ["background", "clouds", "hills", "sea"] 37 | 38 | for imageName in imageNames { 39 | let imageView = UIImageView(frame: self.view.bounds) 40 | imageView.image = UIImage(named: imageName) 41 | imageView.contentMode = UIViewContentMode.ScaleAspectFill 42 | exampleViews.append(imageView) 43 | 44 | } 45 | 46 | return exampleViews 47 | } 48 | 49 | 50 | override func didReceiveMemoryWarning() { 51 | stratosParallaxView.viewsToAnimate = [] 52 | } 53 | 54 | 55 | 56 | override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) { 57 | 58 | // Calculate the other 59 | var newFrame = self.view.bounds 60 | newFrame.size = size 61 | 62 | // Update the frame of the views to animate. 63 | // This is not mandatory. If you want to keep the frame of the views always the same 64 | for viewToAnimate in stratosParallaxView.viewsToAnimate { 65 | viewToAnimate.frame = newFrame 66 | } 67 | } 68 | 69 | } 70 | 71 | -------------------------------------------------------------------------------- /StratosParallaxExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | Tugulab.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /StratosParallaxExampleTests/StratosParallaxExampleTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StratosParallaxExampleTests.swift 3 | // StratosParallaxExampleTests 4 | // 5 | // Created by Claudio Carnino on 18/10/2014. 6 | // Copyright (c) 2014 Claudio Carnino's Tugulab. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class StratosParallaxExampleTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /StratosParallaxTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | Tugulab.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /StratosParallaxTests/StratosParallaxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StratosParallaxTests.swift 3 | // StratosParallaxTests 4 | // 5 | // Created by Claudio Carnino on 23/10/2014. 6 | // Copyright (c) 2014 Claudio Carnino's Tugulab. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class StratosParallaxTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /media/preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clacladev/StratosParallax/5ed9bc196a2c05fc710ebf1854b84c7548d7ace2/media/preview.gif -------------------------------------------------------------------------------- /media/structure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clacladev/StratosParallax/5ed9bc196a2c05fc710ebf1854b84c7548d7ace2/media/structure.gif --------------------------------------------------------------------------------