Skip to content

Commit d40c4d4

Browse files
committed
SegueCatalog: Version 1.0, 2015-06-08
First public release.
1 parent 101243e commit d40c4d4

File tree

12 files changed

+1258
-0
lines changed

12 files changed

+1258
-0
lines changed

SegueCatalog/LICENSE.txt

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Sample code project: SegueCatalog: Customizing and Unwinding with View Controller Containment
2+
Version: 1.0
3+
4+
IMPORTANT: This Apple software is supplied to you by Apple
5+
Inc. ("Apple") in consideration of your agreement to the following
6+
terms, and your use, installation, modification or redistribution of
7+
this Apple software constitutes acceptance of these terms. If you do
8+
not agree with these terms, please do not use, install, modify or
9+
redistribute this Apple software.
10+
11+
In consideration of your agreement to abide by the following terms, and
12+
subject to these terms, Apple grants you a personal, non-exclusive
13+
license, under Apple's copyrights in this original Apple software (the
14+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
15+
Software, with or without modifications, in source and/or binary forms;
16+
provided that if you redistribute the Apple Software in its entirety and
17+
without modifications, you must retain this notice and the following
18+
text and disclaimers in all such redistributions of the Apple Software.
19+
Neither the name, trademarks, service marks or logos of Apple Inc. may
20+
be used to endorse or promote products derived from the Apple Software
21+
without specific prior written permission from Apple. Except as
22+
expressly stated in this notice, no other rights or licenses, express or
23+
implied, are granted by Apple herein, including but not limited to any
24+
patent rights that may be infringed by your derivative works or by other
25+
works in which the Apple Software may be incorporated.
26+
27+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
28+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
29+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
30+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
31+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
32+
33+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
34+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
37+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
38+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
39+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
40+
POSSIBILITY OF SUCH DAMAGE.
41+
42+
Copyright (C) 2015 Apple Inc. All Rights Reserved.

SegueCatalog/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SegueCatalog: Customizing and Unwinding with View Controller Containment
2+
3+
This sample demonstrates how to use External References to factor your storyboards, how to combine UIStoryboardSegue subclasses with Transition Delegates and Adaptivity, and how to use unwind segues with custom container view controllers.
4+
5+
## Requirements
6+
7+
### Build
8+
9+
Xcode 7.0, iOS 9.0 SDK
10+
11+
### Runtime
12+
13+
iOS 9.0
14+
15+
Copyright (C) 2015 Apple Inc. All rights reserved.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,310 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
2722B23C1B1D0692008A78E9 /* AdaptableFormSheetSegue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2722B23B1B1D0692008A78E9 /* AdaptableFormSheetSegue.swift */; };
11+
2759E0471AC24EE500948321 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2759E0461AC24EE500948321 /* AppDelegate.swift */; };
12+
2759E0491AC24EE500948321 /* MasterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2759E0481AC24EE500948321 /* MasterViewController.swift */; };
13+
2759E04E1AC24EE500948321 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2759E04D1AC24EE500948321 /* Images.xcassets */; };
14+
2759E0511AC24EE500948321 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2759E04F1AC24EE500948321 /* LaunchScreen.xib */; };
15+
277E4ADB1AC5EEC500FA6F23 /* Detail.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 277E4ADA1AC5EEC500FA6F23 /* Detail.storyboard */; };
16+
277E4ADD1AC5F00100FA6F23 /* DetailViewControllers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 277E4ADC1AC5F00100FA6F23 /* DetailViewControllers.swift */; };
17+
277E4AE01AC5F27A00FA6F23 /* Split.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 277E4ADE1AC5F27A00FA6F23 /* Split.storyboard */; };
18+
/* End PBXBuildFile section */
19+
20+
/* Begin PBXFileReference section */
21+
2722B23B1B1D0692008A78E9 /* AdaptableFormSheetSegue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AdaptableFormSheetSegue.swift; sourceTree = "<group>"; };
22+
2759E0431AC24EE500948321 /* SegueCatalog.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SegueCatalog.app; sourceTree = BUILT_PRODUCTS_DIR; };
23+
2759E0461AC24EE500948321 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
24+
2759E0481AC24EE500948321 /* MasterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MasterViewController.swift; sourceTree = "<group>"; };
25+
2759E04D1AC24EE500948321 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
26+
2759E0501AC24EE500948321 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
27+
2759E0521AC24EE500948321 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
28+
277E4ADA1AC5EEC500FA6F23 /* Detail.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Detail.storyboard; sourceTree = "<group>"; };
29+
277E4ADC1AC5F00100FA6F23 /* DetailViewControllers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DetailViewControllers.swift; sourceTree = "<group>"; };
30+
277E4ADF1AC5F27A00FA6F23 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Split.storyboard; sourceTree = "<group>"; };
31+
3ED1B1071B1E238300A2F343 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
32+
/* End PBXFileReference section */
33+
34+
/* Begin PBXFrameworksBuildPhase section */
35+
2759E0401AC24EE500948321 /* Frameworks */ = {
36+
isa = PBXFrameworksBuildPhase;
37+
buildActionMask = 2147483647;
38+
files = (
39+
);
40+
runOnlyForDeploymentPostprocessing = 0;
41+
};
42+
/* End PBXFrameworksBuildPhase section */
43+
44+
/* Begin PBXGroup section */
45+
2759E03A1AC24EE500948321 = {
46+
isa = PBXGroup;
47+
children = (
48+
3ED1B1071B1E238300A2F343 /* README.md */,
49+
2759E0451AC24EE500948321 /* SegueCatalog */,
50+
2759E0441AC24EE500948321 /* Products */,
51+
);
52+
sourceTree = "<group>";
53+
};
54+
2759E0441AC24EE500948321 /* Products */ = {
55+
isa = PBXGroup;
56+
children = (
57+
2759E0431AC24EE500948321 /* SegueCatalog.app */,
58+
);
59+
name = Products;
60+
sourceTree = "<group>";
61+
};
62+
2759E0451AC24EE500948321 /* SegueCatalog */ = {
63+
isa = PBXGroup;
64+
children = (
65+
2759E0461AC24EE500948321 /* AppDelegate.swift */,
66+
2759E0481AC24EE500948321 /* MasterViewController.swift */,
67+
277E4ADC1AC5F00100FA6F23 /* DetailViewControllers.swift */,
68+
2722B23B1B1D0692008A78E9 /* AdaptableFormSheetSegue.swift */,
69+
277E4ADE1AC5F27A00FA6F23 /* Split.storyboard */,
70+
277E4ADA1AC5EEC500FA6F23 /* Detail.storyboard */,
71+
2759E04F1AC24EE500948321 /* LaunchScreen.xib */,
72+
2759E0521AC24EE500948321 /* Info.plist */,
73+
2759E04D1AC24EE500948321 /* Images.xcassets */,
74+
);
75+
path = SegueCatalog;
76+
sourceTree = "<group>";
77+
};
78+
/* End PBXGroup section */
79+
80+
/* Begin PBXNativeTarget section */
81+
2759E0421AC24EE500948321 /* SegueCatalog */ = {
82+
isa = PBXNativeTarget;
83+
buildConfigurationList = 2759E0601AC24EE500948321 /* Build configuration list for PBXNativeTarget "SegueCatalog" */;
84+
buildPhases = (
85+
2759E03F1AC24EE500948321 /* Sources */,
86+
2759E0401AC24EE500948321 /* Frameworks */,
87+
2759E0411AC24EE500948321 /* Resources */,
88+
);
89+
buildRules = (
90+
);
91+
dependencies = (
92+
);
93+
name = SegueCatalog;
94+
productName = IncrementalUnwindDemo;
95+
productReference = 2759E0431AC24EE500948321 /* SegueCatalog.app */;
96+
productType = "com.apple.product-type.application";
97+
};
98+
/* End PBXNativeTarget section */
99+
100+
/* Begin PBXProject section */
101+
2759E03B1AC24EE500948321 /* Project object */ = {
102+
isa = PBXProject;
103+
attributes = {
104+
LastSwiftUpdateCheck = 0700;
105+
LastUpgradeCheck = 0700;
106+
ORGANIZATIONNAME = "Apple, Inc.";
107+
TargetAttributes = {
108+
2759E0421AC24EE500948321 = {
109+
CreatedOnToolsVersion = 7.0;
110+
};
111+
};
112+
};
113+
buildConfigurationList = 2759E03E1AC24EE500948321 /* Build configuration list for PBXProject "SegueCatalog" */;
114+
compatibilityVersion = "Xcode 3.2";
115+
developmentRegion = English;
116+
hasScannedForEncodings = 0;
117+
knownRegions = (
118+
en,
119+
Base,
120+
);
121+
mainGroup = 2759E03A1AC24EE500948321;
122+
productRefGroup = 2759E0441AC24EE500948321 /* Products */;
123+
projectDirPath = "";
124+
projectRoot = "";
125+
targets = (
126+
2759E0421AC24EE500948321 /* SegueCatalog */,
127+
);
128+
};
129+
/* End PBXProject section */
130+
131+
/* Begin PBXResourcesBuildPhase section */
132+
2759E0411AC24EE500948321 /* Resources */ = {
133+
isa = PBXResourcesBuildPhase;
134+
buildActionMask = 2147483647;
135+
files = (
136+
2759E0511AC24EE500948321 /* LaunchScreen.xib in Resources */,
137+
2759E04E1AC24EE500948321 /* Images.xcassets in Resources */,
138+
277E4ADB1AC5EEC500FA6F23 /* Detail.storyboard in Resources */,
139+
277E4AE01AC5F27A00FA6F23 /* Split.storyboard in Resources */,
140+
);
141+
runOnlyForDeploymentPostprocessing = 0;
142+
};
143+
/* End PBXResourcesBuildPhase section */
144+
145+
/* Begin PBXSourcesBuildPhase section */
146+
2759E03F1AC24EE500948321 /* Sources */ = {
147+
isa = PBXSourcesBuildPhase;
148+
buildActionMask = 2147483647;
149+
files = (
150+
277E4ADD1AC5F00100FA6F23 /* DetailViewControllers.swift in Sources */,
151+
2759E0491AC24EE500948321 /* MasterViewController.swift in Sources */,
152+
2759E0471AC24EE500948321 /* AppDelegate.swift in Sources */,
153+
2722B23C1B1D0692008A78E9 /* AdaptableFormSheetSegue.swift in Sources */,
154+
);
155+
runOnlyForDeploymentPostprocessing = 0;
156+
};
157+
/* End PBXSourcesBuildPhase section */
158+
159+
/* Begin PBXVariantGroup section */
160+
2759E04F1AC24EE500948321 /* LaunchScreen.xib */ = {
161+
isa = PBXVariantGroup;
162+
children = (
163+
2759E0501AC24EE500948321 /* Base */,
164+
);
165+
name = LaunchScreen.xib;
166+
sourceTree = "<group>";
167+
};
168+
277E4ADE1AC5F27A00FA6F23 /* Split.storyboard */ = {
169+
isa = PBXVariantGroup;
170+
children = (
171+
277E4ADF1AC5F27A00FA6F23 /* Base */,
172+
);
173+
name = Split.storyboard;
174+
sourceTree = "<group>";
175+
};
176+
/* End PBXVariantGroup section */
177+
178+
/* Begin XCBuildConfiguration section */
179+
2759E05E1AC24EE500948321 /* Debug */ = {
180+
isa = XCBuildConfiguration;
181+
buildSettings = {
182+
ALWAYS_SEARCH_USER_PATHS = NO;
183+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
184+
CLANG_CXX_LIBRARY = "libc++";
185+
CLANG_ENABLE_MODULES = YES;
186+
CLANG_ENABLE_OBJC_ARC = YES;
187+
CLANG_WARN_BOOL_CONVERSION = YES;
188+
CLANG_WARN_CONSTANT_CONVERSION = YES;
189+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
190+
CLANG_WARN_EMPTY_BODY = YES;
191+
CLANG_WARN_ENUM_CONVERSION = YES;
192+
CLANG_WARN_INT_CONVERSION = YES;
193+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
194+
CLANG_WARN_UNREACHABLE_CODE = YES;
195+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
196+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
197+
COPY_PHASE_STRIP = NO;
198+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
199+
ENABLE_STRICT_OBJC_MSGSEND = YES;
200+
GCC_C_LANGUAGE_STANDARD = gnu99;
201+
GCC_DYNAMIC_NO_PIC = NO;
202+
GCC_NO_COMMON_BLOCKS = YES;
203+
GCC_OPTIMIZATION_LEVEL = 0;
204+
GCC_PREPROCESSOR_DEFINITIONS = (
205+
"DEBUG=1",
206+
"$(inherited)",
207+
);
208+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
209+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
210+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
211+
GCC_WARN_UNDECLARED_SELECTOR = YES;
212+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
213+
GCC_WARN_UNUSED_FUNCTION = YES;
214+
GCC_WARN_UNUSED_VARIABLE = YES;
215+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
216+
MTL_ENABLE_DEBUG_INFO = YES;
217+
ONLY_ACTIVE_ARCH = YES;
218+
SDKROOT = iphoneos;
219+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
220+
TARGETED_DEVICE_FAMILY = "1,2";
221+
};
222+
name = Debug;
223+
};
224+
2759E05F1AC24EE500948321 /* Release */ = {
225+
isa = XCBuildConfiguration;
226+
buildSettings = {
227+
ALWAYS_SEARCH_USER_PATHS = NO;
228+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
229+
CLANG_CXX_LIBRARY = "libc++";
230+
CLANG_ENABLE_MODULES = YES;
231+
CLANG_ENABLE_OBJC_ARC = YES;
232+
CLANG_WARN_BOOL_CONVERSION = YES;
233+
CLANG_WARN_CONSTANT_CONVERSION = YES;
234+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
235+
CLANG_WARN_EMPTY_BODY = YES;
236+
CLANG_WARN_ENUM_CONVERSION = YES;
237+
CLANG_WARN_INT_CONVERSION = YES;
238+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
239+
CLANG_WARN_UNREACHABLE_CODE = YES;
240+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
241+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
242+
COPY_PHASE_STRIP = NO;
243+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
244+
ENABLE_NS_ASSERTIONS = NO;
245+
ENABLE_STRICT_OBJC_MSGSEND = YES;
246+
GCC_C_LANGUAGE_STANDARD = gnu99;
247+
GCC_NO_COMMON_BLOCKS = YES;
248+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
249+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
250+
GCC_WARN_UNDECLARED_SELECTOR = YES;
251+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
252+
GCC_WARN_UNUSED_FUNCTION = YES;
253+
GCC_WARN_UNUSED_VARIABLE = YES;
254+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
255+
MTL_ENABLE_DEBUG_INFO = NO;
256+
SDKROOT = iphoneos;
257+
TARGETED_DEVICE_FAMILY = "1,2";
258+
VALIDATE_PRODUCT = YES;
259+
};
260+
name = Release;
261+
};
262+
2759E0611AC24EE500948321 /* Debug */ = {
263+
isa = XCBuildConfiguration;
264+
buildSettings = {
265+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
266+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
267+
INFOPLIST_FILE = "$(SRCROOT)/SegueCatalog/Info.plist";
268+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
269+
PRODUCT_NAME = SegueCatalog;
270+
TOOLCHAINS = default;
271+
};
272+
name = Debug;
273+
};
274+
2759E0621AC24EE500948321 /* Release */ = {
275+
isa = XCBuildConfiguration;
276+
buildSettings = {
277+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
278+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
279+
INFOPLIST_FILE = "$(SRCROOT)/SegueCatalog/Info.plist";
280+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
281+
PRODUCT_NAME = SegueCatalog;
282+
TOOLCHAINS = default;
283+
};
284+
name = Release;
285+
};
286+
/* End XCBuildConfiguration section */
287+
288+
/* Begin XCConfigurationList section */
289+
2759E03E1AC24EE500948321 /* Build configuration list for PBXProject "SegueCatalog" */ = {
290+
isa = XCConfigurationList;
291+
buildConfigurations = (
292+
2759E05E1AC24EE500948321 /* Debug */,
293+
2759E05F1AC24EE500948321 /* Release */,
294+
);
295+
defaultConfigurationIsVisible = 0;
296+
defaultConfigurationName = Release;
297+
};
298+
2759E0601AC24EE500948321 /* Build configuration list for PBXNativeTarget "SegueCatalog" */ = {
299+
isa = XCConfigurationList;
300+
buildConfigurations = (
301+
2759E0611AC24EE500948321 /* Debug */,
302+
2759E0621AC24EE500948321 /* Release */,
303+
);
304+
defaultConfigurationIsVisible = 0;
305+
defaultConfigurationName = Release;
306+
};
307+
/* End XCConfigurationList section */
308+
};
309+
rootObject = 2759E03B1AC24EE500948321 /* Project object */;
310+
}

0 commit comments

Comments
 (0)