├── README.md ├── SwiftSwipeView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── SwiftSwipeView.xccheckout │ └── xcuserdata │ │ └── brendan.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── brendan.xcuserdatad │ └── xcschemes │ │ ├── SwiftSwipeView.xcscheme │ │ └── xcschememanagement.plist │ └── lee33.xcuserdatad │ └── xcschemes │ ├── SwiftSwipeView.xcscheme │ └── xcschememanagement.plist └── SwiftSwipeView ├── AViewController.swift ├── AViewController.xib ├── AppDelegate.swift ├── BViewController.swift ├── BViewController.xib ├── Base.lproj └── Main.storyboard ├── CViewController.swift ├── CViewController.xib ├── ContainerViewController.swift ├── Images.xcassets ├── AppIcon.appiconset │ └── Contents.json └── LaunchImage.launchimage │ └── Contents.json └── Info.plist /README.md: -------------------------------------------------------------------------------- 1 | SwiftSwipeView 2 | ============== 3 | 4 | 5 | Simple Snap-chat like swipe navigation. Uses one container view controller and three child view controllers to show a swipe navigation between views. 6 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C6164C211984D1CD00F8F7D7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6164C201984D1CD00F8F7D7 /* AppDelegate.swift */; }; 11 | C6164C261984D1CD00F8F7D7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C6164C241984D1CD00F8F7D7 /* Main.storyboard */; }; 12 | C6164C281984D1CD00F8F7D7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C6164C271984D1CD00F8F7D7 /* Images.xcassets */; }; 13 | C6164C3E1984D1F100F8F7D7 /* ContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6164C3D1984D1F100F8F7D7 /* ContainerViewController.swift */; }; 14 | C6164C461984D22D00F8F7D7 /* AViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6164C401984D22D00F8F7D7 /* AViewController.swift */; }; 15 | C6164C471984D22D00F8F7D7 /* AViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = C6164C411984D22D00F8F7D7 /* AViewController.xib */; }; 16 | C6164C481984D22D00F8F7D7 /* BViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6164C421984D22D00F8F7D7 /* BViewController.swift */; }; 17 | C6164C491984D22D00F8F7D7 /* BViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = C6164C431984D22D00F8F7D7 /* BViewController.xib */; }; 18 | C6164C4A1984D22D00F8F7D7 /* CViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6164C441984D22D00F8F7D7 /* CViewController.swift */; }; 19 | C6164C4B1984D22D00F8F7D7 /* CViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = C6164C451984D22D00F8F7D7 /* CViewController.xib */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | C6164C1B1984D1CD00F8F7D7 /* SwiftSwipeView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftSwipeView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | C6164C1F1984D1CD00F8F7D7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 25 | C6164C201984D1CD00F8F7D7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 26 | C6164C251984D1CD00F8F7D7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | C6164C271984D1CD00F8F7D7 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 28 | C6164C321984D1CD00F8F7D7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | C6164C331984D1CD00F8F7D7 /* SwiftSwipeViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftSwipeViewTests.swift; sourceTree = ""; }; 30 | C6164C3D1984D1F100F8F7D7 /* ContainerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContainerViewController.swift; sourceTree = ""; }; 31 | C6164C401984D22D00F8F7D7 /* AViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AViewController.swift; sourceTree = ""; }; 32 | C6164C411984D22D00F8F7D7 /* AViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AViewController.xib; sourceTree = ""; }; 33 | C6164C421984D22D00F8F7D7 /* BViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BViewController.swift; sourceTree = ""; }; 34 | C6164C431984D22D00F8F7D7 /* BViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = BViewController.xib; sourceTree = ""; }; 35 | C6164C441984D22D00F8F7D7 /* CViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CViewController.swift; sourceTree = ""; }; 36 | C6164C451984D22D00F8F7D7 /* CViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CViewController.xib; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | C6164C181984D1CD00F8F7D7 /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | C6164C121984D1CD00F8F7D7 = { 51 | isa = PBXGroup; 52 | children = ( 53 | C6164C1D1984D1CD00F8F7D7 /* SwiftSwipeView */, 54 | C6164C301984D1CD00F8F7D7 /* SwiftSwipeViewTests */, 55 | C6164C1C1984D1CD00F8F7D7 /* Products */, 56 | ); 57 | sourceTree = ""; 58 | }; 59 | C6164C1C1984D1CD00F8F7D7 /* Products */ = { 60 | isa = PBXGroup; 61 | children = ( 62 | C6164C1B1984D1CD00F8F7D7 /* SwiftSwipeView.app */, 63 | ); 64 | name = Products; 65 | sourceTree = ""; 66 | }; 67 | C6164C1D1984D1CD00F8F7D7 /* SwiftSwipeView */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | C6164C201984D1CD00F8F7D7 /* AppDelegate.swift */, 71 | C6164C3D1984D1F100F8F7D7 /* ContainerViewController.swift */, 72 | C6164C241984D1CD00F8F7D7 /* Main.storyboard */, 73 | C6164C3F1984D21300F8F7D7 /* SubViewControllers */, 74 | C6164C271984D1CD00F8F7D7 /* Images.xcassets */, 75 | C6164C1E1984D1CD00F8F7D7 /* Supporting Files */, 76 | ); 77 | path = SwiftSwipeView; 78 | sourceTree = ""; 79 | }; 80 | C6164C1E1984D1CD00F8F7D7 /* Supporting Files */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | C6164C1F1984D1CD00F8F7D7 /* Info.plist */, 84 | ); 85 | name = "Supporting Files"; 86 | sourceTree = ""; 87 | }; 88 | C6164C301984D1CD00F8F7D7 /* SwiftSwipeViewTests */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | C6164C331984D1CD00F8F7D7 /* SwiftSwipeViewTests.swift */, 92 | C6164C311984D1CD00F8F7D7 /* Supporting Files */, 93 | ); 94 | path = SwiftSwipeViewTests; 95 | sourceTree = ""; 96 | }; 97 | C6164C311984D1CD00F8F7D7 /* Supporting Files */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | C6164C321984D1CD00F8F7D7 /* Info.plist */, 101 | ); 102 | name = "Supporting Files"; 103 | sourceTree = ""; 104 | }; 105 | C6164C3F1984D21300F8F7D7 /* SubViewControllers */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | C6164C401984D22D00F8F7D7 /* AViewController.swift */, 109 | C6164C411984D22D00F8F7D7 /* AViewController.xib */, 110 | C6164C421984D22D00F8F7D7 /* BViewController.swift */, 111 | C6164C431984D22D00F8F7D7 /* BViewController.xib */, 112 | C6164C441984D22D00F8F7D7 /* CViewController.swift */, 113 | C6164C451984D22D00F8F7D7 /* CViewController.xib */, 114 | ); 115 | name = SubViewControllers; 116 | sourceTree = ""; 117 | }; 118 | /* End PBXGroup section */ 119 | 120 | /* Begin PBXNativeTarget section */ 121 | C6164C1A1984D1CD00F8F7D7 /* SwiftSwipeView */ = { 122 | isa = PBXNativeTarget; 123 | buildConfigurationList = C6164C371984D1CD00F8F7D7 /* Build configuration list for PBXNativeTarget "SwiftSwipeView" */; 124 | buildPhases = ( 125 | C6164C171984D1CD00F8F7D7 /* Sources */, 126 | C6164C181984D1CD00F8F7D7 /* Frameworks */, 127 | C6164C191984D1CD00F8F7D7 /* Resources */, 128 | ); 129 | buildRules = ( 130 | ); 131 | dependencies = ( 132 | ); 133 | name = SwiftSwipeView; 134 | productName = SwiftSwipeView; 135 | productReference = C6164C1B1984D1CD00F8F7D7 /* SwiftSwipeView.app */; 136 | productType = "com.apple.product-type.application"; 137 | }; 138 | /* End PBXNativeTarget section */ 139 | 140 | /* Begin PBXProject section */ 141 | C6164C131984D1CD00F8F7D7 /* Project object */ = { 142 | isa = PBXProject; 143 | attributes = { 144 | LastUpgradeCheck = 0600; 145 | ORGANIZATIONNAME = "Brendan Lee"; 146 | TargetAttributes = { 147 | C6164C1A1984D1CD00F8F7D7 = { 148 | CreatedOnToolsVersion = 6.0; 149 | }; 150 | }; 151 | }; 152 | buildConfigurationList = C6164C161984D1CD00F8F7D7 /* Build configuration list for PBXProject "SwiftSwipeView" */; 153 | compatibilityVersion = "Xcode 3.2"; 154 | developmentRegion = English; 155 | hasScannedForEncodings = 0; 156 | knownRegions = ( 157 | en, 158 | Base, 159 | ); 160 | mainGroup = C6164C121984D1CD00F8F7D7; 161 | productRefGroup = C6164C1C1984D1CD00F8F7D7 /* Products */; 162 | projectDirPath = ""; 163 | projectRoot = ""; 164 | targets = ( 165 | C6164C1A1984D1CD00F8F7D7 /* SwiftSwipeView */, 166 | ); 167 | }; 168 | /* End PBXProject section */ 169 | 170 | /* Begin PBXResourcesBuildPhase section */ 171 | C6164C191984D1CD00F8F7D7 /* Resources */ = { 172 | isa = PBXResourcesBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | C6164C4B1984D22D00F8F7D7 /* CViewController.xib in Resources */, 176 | C6164C471984D22D00F8F7D7 /* AViewController.xib in Resources */, 177 | C6164C491984D22D00F8F7D7 /* BViewController.xib in Resources */, 178 | C6164C261984D1CD00F8F7D7 /* Main.storyboard in Resources */, 179 | C6164C281984D1CD00F8F7D7 /* Images.xcassets in Resources */, 180 | ); 181 | runOnlyForDeploymentPostprocessing = 0; 182 | }; 183 | /* End PBXResourcesBuildPhase section */ 184 | 185 | /* Begin PBXSourcesBuildPhase section */ 186 | C6164C171984D1CD00F8F7D7 /* Sources */ = { 187 | isa = PBXSourcesBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | C6164C3E1984D1F100F8F7D7 /* ContainerViewController.swift in Sources */, 191 | C6164C481984D22D00F8F7D7 /* BViewController.swift in Sources */, 192 | C6164C4A1984D22D00F8F7D7 /* CViewController.swift in Sources */, 193 | C6164C461984D22D00F8F7D7 /* AViewController.swift in Sources */, 194 | C6164C211984D1CD00F8F7D7 /* AppDelegate.swift in Sources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXSourcesBuildPhase section */ 199 | 200 | /* Begin PBXVariantGroup section */ 201 | C6164C241984D1CD00F8F7D7 /* Main.storyboard */ = { 202 | isa = PBXVariantGroup; 203 | children = ( 204 | C6164C251984D1CD00F8F7D7 /* Base */, 205 | ); 206 | name = Main.storyboard; 207 | sourceTree = ""; 208 | }; 209 | /* End PBXVariantGroup section */ 210 | 211 | /* Begin XCBuildConfiguration section */ 212 | C6164C351984D1CD00F8F7D7 /* Debug */ = { 213 | isa = XCBuildConfiguration; 214 | buildSettings = { 215 | ALWAYS_SEARCH_USER_PATHS = NO; 216 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 217 | CLANG_CXX_LIBRARY = "libc++"; 218 | CLANG_ENABLE_MODULES = YES; 219 | CLANG_ENABLE_OBJC_ARC = YES; 220 | CLANG_WARN_BOOL_CONVERSION = YES; 221 | CLANG_WARN_CONSTANT_CONVERSION = YES; 222 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 223 | CLANG_WARN_EMPTY_BODY = YES; 224 | CLANG_WARN_ENUM_CONVERSION = YES; 225 | CLANG_WARN_INT_CONVERSION = YES; 226 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 227 | CLANG_WARN_UNREACHABLE_CODE = YES; 228 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 229 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 230 | COPY_PHASE_STRIP = NO; 231 | ENABLE_STRICT_OBJC_MSGSEND = YES; 232 | GCC_C_LANGUAGE_STANDARD = gnu99; 233 | GCC_DYNAMIC_NO_PIC = NO; 234 | GCC_OPTIMIZATION_LEVEL = 0; 235 | GCC_PREPROCESSOR_DEFINITIONS = ( 236 | "DEBUG=1", 237 | "$(inherited)", 238 | ); 239 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 240 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 241 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 242 | GCC_WARN_UNDECLARED_SELECTOR = YES; 243 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 244 | GCC_WARN_UNUSED_FUNCTION = YES; 245 | GCC_WARN_UNUSED_VARIABLE = YES; 246 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 247 | MTL_ENABLE_DEBUG_INFO = YES; 248 | ONLY_ACTIVE_ARCH = YES; 249 | SDKROOT = iphoneos; 250 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 251 | }; 252 | name = Debug; 253 | }; 254 | C6164C361984D1CD00F8F7D7 /* Release */ = { 255 | isa = XCBuildConfiguration; 256 | buildSettings = { 257 | ALWAYS_SEARCH_USER_PATHS = NO; 258 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 259 | CLANG_CXX_LIBRARY = "libc++"; 260 | CLANG_ENABLE_MODULES = YES; 261 | CLANG_ENABLE_OBJC_ARC = YES; 262 | CLANG_WARN_BOOL_CONVERSION = YES; 263 | CLANG_WARN_CONSTANT_CONVERSION = YES; 264 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 265 | CLANG_WARN_EMPTY_BODY = YES; 266 | CLANG_WARN_ENUM_CONVERSION = YES; 267 | CLANG_WARN_INT_CONVERSION = YES; 268 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 269 | CLANG_WARN_UNREACHABLE_CODE = YES; 270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 272 | COPY_PHASE_STRIP = YES; 273 | ENABLE_NS_ASSERTIONS = NO; 274 | ENABLE_STRICT_OBJC_MSGSEND = YES; 275 | GCC_C_LANGUAGE_STANDARD = gnu99; 276 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 277 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 278 | GCC_WARN_UNDECLARED_SELECTOR = YES; 279 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 280 | GCC_WARN_UNUSED_FUNCTION = YES; 281 | GCC_WARN_UNUSED_VARIABLE = YES; 282 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 283 | MTL_ENABLE_DEBUG_INFO = NO; 284 | SDKROOT = iphoneos; 285 | VALIDATE_PRODUCT = YES; 286 | }; 287 | name = Release; 288 | }; 289 | C6164C381984D1CD00F8F7D7 /* Debug */ = { 290 | isa = XCBuildConfiguration; 291 | buildSettings = { 292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 293 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 294 | INFOPLIST_FILE = SwiftSwipeView/Info.plist; 295 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 296 | PRODUCT_NAME = "$(TARGET_NAME)"; 297 | }; 298 | name = Debug; 299 | }; 300 | C6164C391984D1CD00F8F7D7 /* Release */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 304 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 305 | INFOPLIST_FILE = SwiftSwipeView/Info.plist; 306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 307 | PRODUCT_NAME = "$(TARGET_NAME)"; 308 | }; 309 | name = Release; 310 | }; 311 | /* End XCBuildConfiguration section */ 312 | 313 | /* Begin XCConfigurationList section */ 314 | C6164C161984D1CD00F8F7D7 /* Build configuration list for PBXProject "SwiftSwipeView" */ = { 315 | isa = XCConfigurationList; 316 | buildConfigurations = ( 317 | C6164C351984D1CD00F8F7D7 /* Debug */, 318 | C6164C361984D1CD00F8F7D7 /* Release */, 319 | ); 320 | defaultConfigurationIsVisible = 0; 321 | defaultConfigurationName = Release; 322 | }; 323 | C6164C371984D1CD00F8F7D7 /* Build configuration list for PBXNativeTarget "SwiftSwipeView" */ = { 324 | isa = XCConfigurationList; 325 | buildConfigurations = ( 326 | C6164C381984D1CD00F8F7D7 /* Debug */, 327 | C6164C391984D1CD00F8F7D7 /* Release */, 328 | ); 329 | defaultConfigurationIsVisible = 0; 330 | defaultConfigurationName = Release; 331 | }; 332 | /* End XCConfigurationList section */ 333 | }; 334 | rootObject = C6164C131984D1CD00F8F7D7 /* Project object */; 335 | } 336 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/project.xcworkspace/xcshareddata/SwiftSwipeView.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | C7795520-321C-4E68-AE30-10BAB8324518 9 | IDESourceControlProjectName 10 | SwiftSwipeView 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | A5A2B390A95D866FB432CF767D8833EA3A755630 14 | https://github.com/lbrendanl/SwiftSwipeView.git 15 | 16 | IDESourceControlProjectPath 17 | SwiftSwipeView.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | A5A2B390A95D866FB432CF767D8833EA3A755630 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/lbrendanl/SwiftSwipeView.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | A5A2B390A95D866FB432CF767D8833EA3A755630 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | A5A2B390A95D866FB432CF767D8833EA3A755630 36 | IDESourceControlWCCName 37 | SwiftSwipeView 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/project.xcworkspace/xcuserdata/brendan.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbrendanl/SwiftSwipeView/50d7e606360c7ed8d01d9d141a455d61b0ee0497/SwiftSwipeView.xcodeproj/project.xcworkspace/xcuserdata/brendan.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/xcuserdata/brendan.xcuserdatad/xcschemes/SwiftSwipeView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/xcuserdata/brendan.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SwiftSwipeView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | C6164C1A1984D1CD00F8F7D7 16 | 17 | primary 18 | 19 | 20 | C6164C2C1984D1CD00F8F7D7 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/xcuserdata/lee33.xcuserdatad/xcschemes/SwiftSwipeView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 51 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /SwiftSwipeView.xcodeproj/xcuserdata/lee33.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SwiftSwipeView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | C6164C1A1984D1CD00F8F7D7 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /SwiftSwipeView/AViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AViewController.swift 3 | // bubble_ios 4 | // 5 | // Created by Brendan Lee on 7/23/14. 6 | // Copyright (c) 2014 Brendan Lee. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class AViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } -------------------------------------------------------------------------------- /SwiftSwipeView/AViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /SwiftSwipeView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftSwipeView 4 | // 5 | // Created by Brendan Lee on 7/26/14. 6 | // Copyright (c) 2014 Brendan Lee. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | func applicationWillResignActive(application: UIApplication) { 22 | // 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. 23 | // 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. 24 | } 25 | 26 | func applicationDidEnterBackground(application: UIApplication) { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | func applicationWillEnterForeground(application: UIApplication) { 32 | // 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. 33 | } 34 | 35 | func applicationDidBecomeActive(application: UIApplication) { 36 | // 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. 37 | } 38 | 39 | func applicationWillTerminate(application: UIApplication) { 40 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 41 | } 42 | 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /SwiftSwipeView/BViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BViewController.swift 3 | // bubble_ios 4 | // 5 | // Created by Brendan Lee on 7/23/14. 6 | // Copyright (c) 2014 Brendan Lee. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class BViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /SwiftSwipeView/BViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /SwiftSwipeView/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 | -------------------------------------------------------------------------------- /SwiftSwipeView/CViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CViewController.swift 3 | // bubble_ios 4 | // 5 | // Created by Brendan Lee on 7/23/14. 6 | // Copyright (c) 2014 Brendan Lee. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /SwiftSwipeView/CViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /SwiftSwipeView/ContainerViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContainerViewController.swift 3 | // bubble_ios 4 | // 5 | // Created by Brendan Lee on 7/23/14. 6 | // Copyright (c) 2014 Brendan Lee. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ContainerViewController: UIViewController { 12 | 13 | // Outlet used in storyboard 14 | @IBOutlet var scrollView: UIScrollView?; 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad(); 18 | 19 | // 1) Create the three views used in the swipe container view 20 | var AVc :AViewController = AViewController(nibName: "AViewController", bundle: nil); 21 | var BVc :BViewController = BViewController(nibName: "BViewController", bundle: nil); 22 | var CVc :CViewController = CViewController(nibName: "CViewController", bundle: nil); 23 | 24 | 25 | // 2) Add in each view to the container view hierarchy 26 | // Add them in opposite order since the view hierarchy is a stack 27 | self.addChildViewController(CVc); 28 | self.scrollView!.addSubview(CVc.view); 29 | CVc.didMoveToParentViewController(self); 30 | 31 | self.addChildViewController(BVc); 32 | self.scrollView!.addSubview(BVc.view); 33 | BVc.didMoveToParentViewController(self); 34 | 35 | self.addChildViewController(AVc); 36 | self.scrollView!.addSubview(AVc.view); 37 | AVc.didMoveToParentViewController(self); 38 | 39 | 40 | // 3) Set up the frames of the view controllers to align 41 | // with eachother inside the container view 42 | var adminFrame :CGRect = AVc.view.frame; 43 | adminFrame.origin.x = adminFrame.width; 44 | BVc.view.frame = adminFrame; 45 | 46 | var BFrame :CGRect = BVc.view.frame; 47 | BFrame.origin.x = 2*BFrame.width; 48 | CVc.view.frame = BFrame; 49 | 50 | 51 | // 4) Finally set the size of the scroll view that contains the frames 52 | var scrollWidth: CGFloat = 3 * self.view.frame.width 53 | var scrollHeight: CGFloat = self.view.frame.size.height 54 | self.scrollView!.contentSize = CGSizeMake(scrollWidth, scrollHeight); 55 | } 56 | 57 | override func didReceiveMemoryWarning() { 58 | super.didReceiveMemoryWarning() 59 | // Dispose of any resources that can be recreated. 60 | } 61 | 62 | 63 | } 64 | 65 | -------------------------------------------------------------------------------- /SwiftSwipeView/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" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftSwipeView/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwiftSwipeView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.swift.demos.${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 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | 32 | 33 | --------------------------------------------------------------------------------