Add projects

This commit is contained in:
Ivan Vorobei
2019-06-07 08:56:26 +03:00
parent f1382c2bca
commit 5b758db8cd
117 changed files with 5413 additions and 0 deletions

View File

@@ -0,0 +1,538 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
8D49A1F722A8839D002D1C10 /* VideoRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D49A1F622A8839D002D1C10 /* VideoRow.swift */; };
8DC3392C22A89A7D00EDE8CF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8DC3392A22A89A7D00EDE8CF /* Assets.xcassets */; };
8DC3393122A8A14800EDE8CF /* UserData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DC3393022A8A14800EDE8CF /* UserData.swift */; };
B83D3F7B22A8529B000A9E72 /* PlayerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B83D3F7A22A8529B000A9E72 /* PlayerViewController.swift */; };
B83D3F7D22A855C8000A9E72 /* Video.swift in Sources */ = {isa = PBXBuildFile; fileRef = B83D3F7C22A855C8000A9E72 /* Video.swift */; };
B8C3352422A83894003AD9B4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8C3352322A83894003AD9B4 /* AppDelegate.swift */; };
B8C3352622A83894003AD9B4 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8C3352522A83894003AD9B4 /* SceneDelegate.swift */; };
B8C3352822A83894003AD9B4 /* MainView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8C3352722A83894003AD9B4 /* MainView.swift */; };
B8C3352D22A83897003AD9B4 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B8C3352C22A83897003AD9B4 /* Preview Assets.xcassets */; };
B8C3353022A83897003AD9B4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B8C3352E22A83897003AD9B4 /* LaunchScreen.storyboard */; };
B8C3353B22A83898003AD9B4 /* WWDCPlayerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8C3353A22A83898003AD9B4 /* WWDCPlayerTests.swift */; };
B8E926AD22A8E22A009D3FF1 /* WeekDay.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8E926AC22A8E22A009D3FF1 /* WeekDay.swift */; };
B8E926AF22A8E242009D3FF1 /* Platform.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8E926AE22A8E242009D3FF1 /* Platform.swift */; };
B8E926B422A9CD69009D3FF1 /* WWDCPlayerTests.xctest in Resources */ = {isa = PBXBuildFile; fileRef = B8C3353622A83897003AD9B4 /* WWDCPlayerTests.xctest */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
B8C3353722A83897003AD9B4 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = B8C3351822A83894003AD9B4 /* Project object */;
proxyType = 1;
remoteGlobalIDString = B8C3351F22A83894003AD9B4;
remoteInfo = SwiftUISample;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
8D49A1F622A8839D002D1C10 /* VideoRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = VideoRow.swift; path = ../VideoRow.swift; sourceTree = "<group>"; };
8DC3392A22A89A7D00EDE8CF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8DC3392B22A89A7D00EDE8CF /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8DC3393022A8A14800EDE8CF /* UserData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserData.swift; sourceTree = "<group>"; };
B83D3F7A22A8529B000A9E72 /* PlayerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PlayerViewController.swift; path = ../PlayerViewController.swift; sourceTree = "<group>"; };
B83D3F7C22A855C8000A9E72 /* Video.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Video.swift; sourceTree = "<group>"; };
B8C3352022A83894003AD9B4 /* WWDCPlayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WWDCPlayer.app; sourceTree = BUILT_PRODUCTS_DIR; };
B8C3352322A83894003AD9B4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
B8C3352522A83894003AD9B4 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
B8C3352722A83894003AD9B4 /* MainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MainView.swift; path = ../MainView.swift; sourceTree = "<group>"; };
B8C3352C22A83897003AD9B4 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
B8C3352F22A83897003AD9B4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
B8C3353622A83897003AD9B4 /* WWDCPlayerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WWDCPlayerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
B8C3353A22A83898003AD9B4 /* WWDCPlayerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WWDCPlayerTests.swift; sourceTree = "<group>"; };
B8C3353C22A83898003AD9B4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B8E926AC22A8E22A009D3FF1 /* WeekDay.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeekDay.swift; sourceTree = "<group>"; };
B8E926AE22A8E242009D3FF1 /* Platform.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Platform.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
B8C3351D22A83894003AD9B4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
B8C3353322A83897003AD9B4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
8D7DEE8B22A8950D005D6A10 /* Delegates */ = {
isa = PBXGroup;
children = (
B8C3352322A83894003AD9B4 /* AppDelegate.swift */,
B8C3352522A83894003AD9B4 /* SceneDelegate.swift */,
);
path = Delegates;
sourceTree = "<group>";
};
8DC3392922A89A7D00EDE8CF /* Supporting Files */ = {
isa = PBXGroup;
children = (
8DC3392A22A89A7D00EDE8CF /* Assets.xcassets */,
8DC3392B22A89A7D00EDE8CF /* Info.plist */,
);
path = "Supporting Files";
sourceTree = "<group>";
};
B8C3351722A83894003AD9B4 = {
isa = PBXGroup;
children = (
B8C3352222A83894003AD9B4 /* WWDCPlayer */,
B8C3353922A83898003AD9B4 /* WWDCPlayerTests */,
B8C3352122A83894003AD9B4 /* Products */,
);
sourceTree = "<group>";
};
B8C3352122A83894003AD9B4 /* Products */ = {
isa = PBXGroup;
children = (
B8C3352022A83894003AD9B4 /* WWDCPlayer.app */,
B8C3353622A83897003AD9B4 /* WWDCPlayerTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
B8C3352222A83894003AD9B4 /* WWDCPlayer */ = {
isa = PBXGroup;
children = (
B8C3352E22A83897003AD9B4 /* LaunchScreen.storyboard */,
8D7DEE8B22A8950D005D6A10 /* Delegates */,
B8C67D6522A8D09500C0B63F /* Model */,
B8E926B322A9CCAD009D3FF1 /* View */,
B8E926B022A8E24D009D3FF1 /* Enum */,
8DC3392922A89A7D00EDE8CF /* Supporting Files */,
B8C3352B22A83897003AD9B4 /* Preview Content */,
);
path = WWDCPlayer;
sourceTree = "<group>";
};
B8C3352B22A83897003AD9B4 /* Preview Content */ = {
isa = PBXGroup;
children = (
B8C3352C22A83897003AD9B4 /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
B8C3353922A83898003AD9B4 /* WWDCPlayerTests */ = {
isa = PBXGroup;
children = (
B8C3353A22A83898003AD9B4 /* WWDCPlayerTests.swift */,
B8C3353C22A83898003AD9B4 /* Info.plist */,
);
path = WWDCPlayerTests;
sourceTree = "<group>";
};
B8C67D6522A8D09500C0B63F /* Model */ = {
isa = PBXGroup;
children = (
B83D3F7C22A855C8000A9E72 /* Video.swift */,
8DC3393022A8A14800EDE8CF /* UserData.swift */,
);
path = Model;
sourceTree = "<group>";
};
B8E926B022A8E24D009D3FF1 /* Enum */ = {
isa = PBXGroup;
children = (
B8E926AC22A8E22A009D3FF1 /* WeekDay.swift */,
B8E926AE22A8E242009D3FF1 /* Platform.swift */,
);
path = Enum;
sourceTree = "<group>";
};
B8E926B322A9CCAD009D3FF1 /* View */ = {
isa = PBXGroup;
children = (
B8C3352722A83894003AD9B4 /* MainView.swift */,
8D49A1F622A8839D002D1C10 /* VideoRow.swift */,
B83D3F7A22A8529B000A9E72 /* PlayerViewController.swift */,
);
path = View;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
B8C3351F22A83894003AD9B4 /* WWDCPlayer */ = {
isa = PBXNativeTarget;
buildConfigurationList = B8C3353F22A83898003AD9B4 /* Build configuration list for PBXNativeTarget "WWDCPlayer" */;
buildPhases = (
B8C3351C22A83894003AD9B4 /* Sources */,
B8C3351D22A83894003AD9B4 /* Frameworks */,
B8C3351E22A83894003AD9B4 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = WWDCPlayer;
productName = SwiftUISample;
productReference = B8C3352022A83894003AD9B4 /* WWDCPlayer.app */;
productType = "com.apple.product-type.application";
};
B8C3353522A83897003AD9B4 /* WWDCPlayerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = B8C3354222A83898003AD9B4 /* Build configuration list for PBXNativeTarget "WWDCPlayerTests" */;
buildPhases = (
B8C3353222A83897003AD9B4 /* Sources */,
B8C3353322A83897003AD9B4 /* Frameworks */,
B8C3353422A83897003AD9B4 /* Resources */,
);
buildRules = (
);
dependencies = (
B8C3353822A83897003AD9B4 /* PBXTargetDependency */,
);
name = WWDCPlayerTests;
productName = SwiftUISampleTests;
productReference = B8C3353622A83897003AD9B4 /* WWDCPlayerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
B8C3351822A83894003AD9B4 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1100;
LastUpgradeCheck = 1100;
ORGANIZATIONNAME = daybreak;
TargetAttributes = {
B8C3351F22A83894003AD9B4 = {
CreatedOnToolsVersion = 11.0;
};
B8C3353522A83897003AD9B4 = {
CreatedOnToolsVersion = 11.0;
TestTargetID = B8C3351F22A83894003AD9B4;
};
};
};
buildConfigurationList = B8C3351B22A83894003AD9B4 /* Build configuration list for PBXProject "WWDCPlayer" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = B8C3351722A83894003AD9B4;
productRefGroup = B8C3352122A83894003AD9B4 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
B8C3351F22A83894003AD9B4 /* WWDCPlayer */,
B8C3353522A83897003AD9B4 /* WWDCPlayerTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
B8C3351E22A83894003AD9B4 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B8C3353022A83897003AD9B4 /* LaunchScreen.storyboard in Resources */,
8DC3392C22A89A7D00EDE8CF /* Assets.xcassets in Resources */,
B8C3352D22A83897003AD9B4 /* Preview Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B8C3353422A83897003AD9B4 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B8E926B422A9CD69009D3FF1 /* WWDCPlayerTests.xctest in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
B8C3351C22A83894003AD9B4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B8C3352422A83894003AD9B4 /* AppDelegate.swift in Sources */,
B8C3352622A83894003AD9B4 /* SceneDelegate.swift in Sources */,
B8E926AD22A8E22A009D3FF1 /* WeekDay.swift in Sources */,
B8C3352822A83894003AD9B4 /* MainView.swift in Sources */,
8DC3393122A8A14800EDE8CF /* UserData.swift in Sources */,
B8E926AF22A8E242009D3FF1 /* Platform.swift in Sources */,
B83D3F7B22A8529B000A9E72 /* PlayerViewController.swift in Sources */,
8D49A1F722A8839D002D1C10 /* VideoRow.swift in Sources */,
B83D3F7D22A855C8000A9E72 /* Video.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B8C3353222A83897003AD9B4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B8C3353B22A83898003AD9B4 /* WWDCPlayerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
B8C3353822A83897003AD9B4 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = B8C3351F22A83894003AD9B4 /* WWDCPlayer */;
targetProxy = B8C3353722A83897003AD9B4 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
B8C3352E22A83897003AD9B4 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
B8C3352F22A83897003AD9B4 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
B8C3353D22A83898003AD9B4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
B8C3353E22A83898003AD9B4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
B8C3354022A83898003AD9B4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "WWDCPlayer/Preview\\ Content";
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = "$(SRCROOT)/WWDCPlayer/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.daybreak.WWDCPlayer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
B8C3354122A83898003AD9B4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "WWDCPlayer/Preview\\ Content";
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = "$(SRCROOT)/WWDCPlayer/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.daybreak.WWDCPlayer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
B8C3354322A83898003AD9B4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = WWDCPlayerTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.daybreak.WWDCPlayerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WWDCPlayer.app/WWDCPlayer";
};
name = Debug;
};
B8C3354422A83898003AD9B4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = WWDCPlayerTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.daybreak.WWDCPlayerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WWDCPlayer.app/WWDCPlayer";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
B8C3351B22A83894003AD9B4 /* Build configuration list for PBXProject "WWDCPlayer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B8C3353D22A83898003AD9B4 /* Debug */,
B8C3353E22A83898003AD9B4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
B8C3353F22A83898003AD9B4 /* Build configuration list for PBXNativeTarget "WWDCPlayer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B8C3354022A83898003AD9B4 /* Debug */,
B8C3354122A83898003AD9B4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
B8C3354222A83898003AD9B4 /* Build configuration list for PBXNativeTarget "WWDCPlayerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B8C3354322A83898003AD9B4 /* Debug */,
B8C3354422A83898003AD9B4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = B8C3351822A83894003AD9B4 /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:/Users/yunminseob/Desktop/project/SwiftUISample/WWDCPlayer.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B8C3351F22A83894003AD9B4"
BuildableName = "WWDCPlayer.app"
BlueprintName = "WWDCPlayer"
ReferencedContainer = "container:WWDCPlayer.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B8C3353522A83897003AD9B4"
BuildableName = "WWDCPlayerTests.xctest"
BlueprintName = "WWDCPlayerTests"
ReferencedContainer = "container:WWDCPlayer.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B8C3351F22A83894003AD9B4"
BuildableName = "WWDCPlayer.app"
BlueprintName = "WWDCPlayer"
ReferencedContainer = "container:WWDCPlayer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B8C3351F22A83894003AD9B4"
BuildableName = "WWDCPlayer.app"
BlueprintName = "WWDCPlayer"
ReferencedContainer = "container:WWDCPlayer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14810.11" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14766.13"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bIb-4l-Tc8">
<rect key="frame" x="0.0" y="0.0" width="414" height="148.5"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vXv-ip-ToS">
<rect key="frame" x="20" y="88.5" width="240" height="50"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="240" id="Eeq-fp-M98"/>
<constraint firstAttribute="height" constant="50" id="dtg-df-t1v"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="148.5" id="U7r-9E-9Ba"/>
<constraint firstItem="vXv-ip-ToS" firstAttribute="leading" secondItem="bIb-4l-Tc8" secondAttribute="leading" constant="20" id="ahN-Fw-cbL"/>
<constraint firstAttribute="bottom" secondItem="vXv-ip-ToS" secondAttribute="bottom" constant="10" id="n5H-zz-Gec"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4vA-UI-tEX">
<rect key="frame" x="0.0" y="148.5" width="414" height="333"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="333" id="cd6-r1-yua"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GsT-jT-xfX" userLabel="ListView">
<rect key="frame" x="0.0" y="481.5" width="414" height="414.5"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U3F-Gs-4WC" userLabel="View1">
<rect key="frame" x="0.0" y="0.0" width="414" height="70"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="llU-zJ-ZGF">
<rect key="frame" x="20" y="20" width="240" height="30"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="240" id="Prq-jN-UNr"/>
<constraint firstAttribute="height" constant="30" id="mTz-I1-yCy"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KXh-lq-RRl">
<rect key="frame" x="20" y="69" width="394" height="1"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="UwK-Lj-ODc"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="KXh-lq-RRl" secondAttribute="bottom" id="Cz4-ex-BVk"/>
<constraint firstItem="KXh-lq-RRl" firstAttribute="leading" secondItem="U3F-Gs-4WC" secondAttribute="leading" constant="20" id="auY-KJ-TBW"/>
<constraint firstItem="llU-zJ-ZGF" firstAttribute="centerY" secondItem="U3F-Gs-4WC" secondAttribute="centerY" id="bGN-6c-sXj"/>
<constraint firstAttribute="height" constant="70" id="mte-XG-qi8"/>
<constraint firstItem="llU-zJ-ZGF" firstAttribute="leading" secondItem="U3F-Gs-4WC" secondAttribute="leading" constant="20" id="omr-V7-UUU"/>
<constraint firstAttribute="trailing" secondItem="KXh-lq-RRl" secondAttribute="trailing" id="ymr-aD-0rE"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PaP-r5-oc8" userLabel="View2">
<rect key="frame" x="0.0" y="70" width="414" height="70"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bkD-UM-CTc">
<rect key="frame" x="20" y="20" width="240" height="30"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="4fl-eT-kkY"/>
<constraint firstAttribute="width" constant="240" id="vYt-qb-jFQ"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uOO-oy-uv3">
<rect key="frame" x="20" y="69" width="394" height="1"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="YtO-aa-P42"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="bkD-UM-CTc" firstAttribute="leading" secondItem="PaP-r5-oc8" secondAttribute="leading" constant="20" id="9mr-PQ-He5"/>
<constraint firstAttribute="height" constant="70" id="Wtd-Y5-4gQ"/>
<constraint firstAttribute="trailing" secondItem="uOO-oy-uv3" secondAttribute="trailing" id="Xik-tq-ryg"/>
<constraint firstAttribute="bottom" secondItem="uOO-oy-uv3" secondAttribute="bottom" id="ceH-sL-E04"/>
<constraint firstItem="bkD-UM-CTc" firstAttribute="centerY" secondItem="PaP-r5-oc8" secondAttribute="centerY" id="o9J-jd-0x0"/>
<constraint firstItem="uOO-oy-uv3" firstAttribute="leading" secondItem="PaP-r5-oc8" secondAttribute="leading" constant="20" id="pJM-ER-Pgt"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UEU-oh-ntl" userLabel="View3">
<rect key="frame" x="0.0" y="140" width="414" height="70"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Yft-lI-14Q">
<rect key="frame" x="20" y="20" width="240" height="30"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="240" id="7B4-y2-Cm3"/>
<constraint firstAttribute="height" constant="30" id="bwH-0m-DbC"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qXs-S4-cuJ">
<rect key="frame" x="20" y="69" width="394" height="1"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="sEQ-oo-Orp"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="Yft-lI-14Q" firstAttribute="centerY" secondItem="UEU-oh-ntl" secondAttribute="centerY" id="5CQ-AR-BrK"/>
<constraint firstItem="Yft-lI-14Q" firstAttribute="leading" secondItem="UEU-oh-ntl" secondAttribute="leading" constant="20" id="9VU-Dz-FM4"/>
<constraint firstAttribute="trailing" secondItem="qXs-S4-cuJ" secondAttribute="trailing" id="KhX-xm-3JS"/>
<constraint firstAttribute="height" constant="70" id="OS7-VI-Ea0"/>
<constraint firstItem="qXs-S4-cuJ" firstAttribute="leading" secondItem="UEU-oh-ntl" secondAttribute="leading" constant="20" id="klF-H2-vEu"/>
<constraint firstAttribute="bottom" secondItem="qXs-S4-cuJ" secondAttribute="bottom" id="vUL-MO-I14"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ybg-ga-e6U" userLabel="View4">
<rect key="frame" x="0.0" y="210" width="414" height="70"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eUZ-Ys-y3a">
<rect key="frame" x="20" y="20" width="240" height="30"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="I9x-Np-M1x"/>
<constraint firstAttribute="width" constant="240" id="ueQ-zp-gsO"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RDL-Rf-c2c">
<rect key="frame" x="20" y="69" width="394" height="1"/>
<color key="backgroundColor" white="0.0" alpha="0.050000000000000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="pZI-sZ-Quc"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="eUZ-Ys-y3a" firstAttribute="leading" secondItem="ybg-ga-e6U" secondAttribute="leading" constant="20" id="Wu9-SV-apz"/>
<constraint firstAttribute="bottom" secondItem="RDL-Rf-c2c" secondAttribute="bottom" id="XPi-Yn-d7K"/>
<constraint firstAttribute="height" constant="70" id="bMV-Tx-P2x"/>
<constraint firstAttribute="trailing" secondItem="RDL-Rf-c2c" secondAttribute="trailing" id="bu8-Bs-K9g"/>
<constraint firstItem="eUZ-Ys-y3a" firstAttribute="centerY" secondItem="ybg-ga-e6U" secondAttribute="centerY" id="e2v-Ha-rZq"/>
<constraint firstItem="RDL-Rf-c2c" firstAttribute="leading" secondItem="ybg-ga-e6U" secondAttribute="leading" constant="20" id="ge2-CZ-xmC"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="UEU-oh-ntl" firstAttribute="leading" secondItem="GsT-jT-xfX" secondAttribute="leading" id="3Eg-Q7-dEY"/>
<constraint firstAttribute="trailing" secondItem="ybg-ga-e6U" secondAttribute="trailing" id="3hK-Gf-Apu"/>
<constraint firstItem="ybg-ga-e6U" firstAttribute="top" secondItem="UEU-oh-ntl" secondAttribute="bottom" id="5Y4-oM-vj0"/>
<constraint firstItem="PaP-r5-oc8" firstAttribute="leading" secondItem="GsT-jT-xfX" secondAttribute="leading" id="MYo-q1-LG4"/>
<constraint firstAttribute="trailing" secondItem="PaP-r5-oc8" secondAttribute="trailing" id="P5v-b7-ZZa"/>
<constraint firstItem="PaP-r5-oc8" firstAttribute="bottom" secondItem="UEU-oh-ntl" secondAttribute="top" id="hY5-j4-d7I"/>
<constraint firstAttribute="trailing" secondItem="UEU-oh-ntl" secondAttribute="trailing" id="miW-fC-i8X"/>
<constraint firstItem="PaP-r5-oc8" firstAttribute="top" secondItem="U3F-Gs-4WC" secondAttribute="bottom" id="mpc-jM-n7U"/>
<constraint firstItem="U3F-Gs-4WC" firstAttribute="leading" secondItem="GsT-jT-xfX" secondAttribute="leading" id="rx1-fn-tNn"/>
<constraint firstItem="ybg-ga-e6U" firstAttribute="leading" secondItem="GsT-jT-xfX" secondAttribute="leading" id="t7Q-xh-1tU"/>
<constraint firstItem="U3F-Gs-4WC" firstAttribute="top" secondItem="GsT-jT-xfX" secondAttribute="top" id="vIV-OC-hIS"/>
<constraint firstAttribute="trailing" secondItem="U3F-Gs-4WC" secondAttribute="trailing" id="xEn-KM-9pi"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="bIb-4l-Tc8" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="2o4-bN-7xE"/>
<constraint firstItem="4vA-UI-tEX" firstAttribute="trailing" secondItem="bIb-4l-Tc8" secondAttribute="trailing" id="498-2l-nA8"/>
<constraint firstItem="GsT-jT-xfX" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="7XC-hr-0bi"/>
<constraint firstItem="GsT-jT-xfX" firstAttribute="top" secondItem="4vA-UI-tEX" secondAttribute="bottom" id="C1g-Ij-U4O"/>
<constraint firstItem="4vA-UI-tEX" firstAttribute="leading" secondItem="bIb-4l-Tc8" secondAttribute="leading" id="FV3-tt-eNh"/>
<constraint firstItem="bIb-4l-Tc8" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="Q8v-mw-JnD"/>
<constraint firstAttribute="bottom" secondItem="GsT-jT-xfX" secondAttribute="bottom" id="agc-V4-zHC"/>
<constraint firstAttribute="trailing" secondItem="GsT-jT-xfX" secondAttribute="trailing" id="dDB-Ay-EYy"/>
<constraint firstItem="4vA-UI-tEX" firstAttribute="top" secondItem="bIb-4l-Tc8" secondAttribute="bottom" id="mRa-be-DO1"/>
<constraint firstAttribute="trailing" secondItem="bIb-4l-Tc8" secondAttribute="trailing" id="sB5-am-1KZ"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@@ -0,0 +1,41 @@
//
// AppDelegate.swift
// WWDCPlayer
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}

View File

@@ -0,0 +1,60 @@
//
// SceneDelegate.swift
// WWDCPlayer
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import UIKit
import SwiftUI
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
// Use a UIHostingController as window root view controller
let window = UIWindow(frame: UIScreen.main.bounds)
window.rootViewController = UIHostingController(rootView: MainView()
.environmentObject(UserData()))
self.window = window
window.makeKeyAndVisible()
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}

View File

@@ -0,0 +1,15 @@
//
// Platform.swift
// WWDCPlayer
//
// Created by sohee on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import Foundation
enum Platform: String, CaseIterable {
case iOS, macOS, tvOS, watchOS
}
let allPlatforms = Platform.allCases

View File

@@ -0,0 +1,23 @@
//
// WeekDay.swift
// WWDCPlayer
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import Foundation
import SwiftUI
enum WeekDay: String, CaseIterable, Identifiable {
var id: String {
return self.rawValue
}
case monday
case tuesday
case wednesday
case thursday
case friday
}
let allWeekDays = WeekDay.allCases

View File

@@ -0,0 +1,72 @@
//
// MainView.swift
// WWDCPlayer
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import SwiftUI
import AVFoundation
struct MainView: View {
@EnvironmentObject var userData: UserData
let player = AVPlayer()
var body: some View {
NavigationView {
VStack {
ZStack(alignment: .bottom) {
PlayerViewController(video: $userData.currentVideo)
}
FavoriteToggleView()
VideoListView()
}
.navigationBarTitle(Text(userData.currentVideo.title))
}
}
}
#if DEBUG
struct MainView_Previews : PreviewProvider {
static var previews: some View {
MainView()
.environmentObject(UserData())
}
}
#endif
struct FavoriteToggleView: View {
@EnvironmentObject var userData: UserData
var body: some View {
Toggle(isOn: $userData.showFavoriteOnly) {
Text("Favorite Only")
.foregroundColor(Color.yellow)
}
.padding([.leading, .trailing], 20)
}
}
struct VideoListView : View {
@EnvironmentObject var userData: UserData
var body: some View {
List {
ForEach(allWeekDays) { day in
Section(header: Text(day.rawValue.uppercased()).fontWeight(.bold)) {
ForEach(self.userData.videos.filter { $0.weekDay == day }) { video in
if !self.userData.showFavoriteOnly || video.isFavorite {
VideoRow(video: video)
}
}
}
}
}.listStyle(.grouped)
}
}

View File

@@ -0,0 +1,31 @@
//
// UserData.swift
// WWDCPlayer
//
// Created by sohee on 2019/06/06.
// Copyright © 2019 daybreak. All rights reserved.
//
import SwiftUI
import Combine
final class UserData: BindableObject {
let didChange = PassthroughSubject<UserData, Never>()
var showFavoriteOnly = false {
didSet {
didChange.send(self)
}
}
var videos = videoList {
didSet {
didChange.send(self)
}
}
var currentVideo = videoList[0] {
didSet {
didChange.send(self)
}
}
}

View File

@@ -0,0 +1,35 @@
//
// Video.swift
// WWDCPlayer
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import Foundation
import SwiftUI
struct Video: Identifiable, Equatable {
var id: Int
var title: String
var url: String
var weekDay: WeekDay
var platforms: [Platform]
var isFavorite = false
var platformString: String {
return platforms.map { $0.rawValue }.joined(separator: ", ")
}
static func == (lhs: Video, rhs: Video) -> Bool {
return lhs.id == rhs.id
}
}
let videoList = [
Video(id: 101, title: "Keynote🤖", url: "https://p-events-delivery.akamaized.net/3004qzusahnbjppuwydgjzsdyzsippar/m3u8/hls_vod_mvp.m3u8", weekDay: .monday, platforms: allPlatforms),
Video(id: 103, title: "Platforms State of the Union🛠", url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/103bax22h2udxu0n/103/hls_vod_mvp.m3u8", weekDay: .monday, platforms: allPlatforms),
Video(id: 104, title: "Apple Design Awards🏆", url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/104d6zyhb21vki/104/hls_vod_mvp.m3u8", weekDay: .monday, platforms: allPlatforms),
Video(id: 204, title: "Introducing SwiftUI: Building Your First App", url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/204isgnpbqud244/204/hls_vod_mvp.m3u8", weekDay: .tuesday, platforms: allPlatforms),
Video(id: 214, title: "Implementing Dark Mode on iOS", url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/214iqtpuhih53fw2/214/hls_vod_mvp.m3u8", weekDay: .wednesday, platforms: [.iOS])
]

View File

@@ -0,0 +1,37 @@
//
// PlayerViewController.swift
// WWDCPlayer
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import SwiftUI
import AVKit
struct PlayerViewController: UIViewControllerRepresentable {
@Binding var video: Video
private let player = AVPlayer()
func makeUIViewController(context: Context) -> AVPlayerViewController {
let playerVC = AVPlayerViewController()
playerVC.player = self.player
return playerVC
}
func updateUIViewController(_ uiViewController: AVPlayerViewController, context: Context) {
guard let url = URL(string: video.url) else { return }
resetPlayer(uiViewController)
let item = AVPlayerItem(url: url)
uiViewController.player?.replaceCurrentItem(with: item)
}
func resetPlayer(_ vc: AVPlayerViewController) {
vc.player?.pause()
vc.player?.replaceCurrentItem(with: nil)
}
}

View File

@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,122 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "ItunesArtwork@2x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 KiB

View File

@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
</dict>
</array>
</dict>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@@ -0,0 +1,9 @@
//
// UserData.swift
// SwiftUISample
//
// Created by sohee on 2019/06/06.
// Copyright © 2019 daybreak. All rights reserved.
//
import Foundation

View File

@@ -0,0 +1,86 @@
//
// VideoRow.swift
// WWDCPlayer
//
// Created by sohee on 2019/06/06.
// Copyright © 2019 daybreak. All rights reserved.
//
import SwiftUI
struct VideoRow : View {
@EnvironmentObject var userData: UserData
var video: Video
var body: some View {
HStack {
VStack(alignment: .leading) {
TitleText(text: video.title)
HStack {
DescriptionText(text: "Session \(video.id)")
DescriptionText(text: "·")
DescriptionText(text: video.platformString)
}
}
Spacer()
HStack(spacing: 15) {
if userData.currentVideo == video {
Image(systemName: "music.mic")
}
Image(systemName: video.isFavorite ? "star.fill" : "star")
.foregroundColor(video.isFavorite ? Color.yellow : Color.gray)
.tapAction {
self.setFavorite(video: self.video)
}
}
}
.padding([.top, .bottom], 10)
.tapAction {
self.setCurrentVideo(video: self.video)
}
}
func setCurrentVideo(video: Video) {
guard self.userData.currentVideo != self.video else {
return
}
self.userData.currentVideo = self.video
}
func setFavorite(video: Video) {
guard let index = userData.videos.firstIndex (where: { $0 == video }) else {
return
}
self.userData.videos[index].isFavorite.toggle()
}
}
#if DEBUG
struct VideoRow_Previews : PreviewProvider {
static var previews: some View {
VideoRow(video: videoList[0])
.environmentObject(UserData())
}
}
#endif
struct TitleText: View {
let text: String
var body: some View {
return Text(text)
.color(.primary)
.bold()
}
}
struct DescriptionText : View {
let text: String
var body: some View {
return Text(text)
.font(.footnote).fontWeight(.semibold)
.color(.secondary)
}
}

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@@ -0,0 +1,34 @@
//
// WWDCPlayerTests.swift
// WWDCPlayerTests
//
// Created by ms on 2019/06/05.
// Copyright © 2019 daybreak. All rights reserved.
//
import XCTest
@testable import WWDCPlayer
class WWDCPlayerTests: XCTestCase {
override func setUp() {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}