--- /dev/null
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ B526257225C874F9003E73B7 /* MapApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B526257125C874F9003E73B7 /* MapApp.swift */; };
+ B526257425C874F9003E73B7 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B526257325C874F9003E73B7 /* ContentView.swift */; };
+ B526257625C874FA003E73B7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B526257525C874FA003E73B7 /* Assets.xcassets */; };
+ B526257925C874FA003E73B7 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B526257825C874FA003E73B7 /* Preview Assets.xcassets */; };
+ B526257B25C874FA003E73B7 /* Persistence.swift in Sources */ = {isa = PBXBuildFile; fileRef = B526257A25C874FA003E73B7 /* Persistence.swift */; };
+ B526257E25C874FA003E73B7 /* Map.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = B526257C25C874FA003E73B7 /* Map.xcdatamodeld */; };
+ B526258A25C874FA003E73B7 /* MapTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B526258925C874FA003E73B7 /* MapTests.swift */; };
+ B526259525C874FA003E73B7 /* MapUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B526259425C874FA003E73B7 /* MapUITests.swift */; };
+ B52625A625C876C3003E73B7 /* MapDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = B52625A525C876C3003E73B7 /* MapDetail.swift */; };
+ B52625AB25C87909003E73B7 /* Date+format.swift in Sources */ = {isa = PBXBuildFile; fileRef = B52625AA25C87909003E73B7 /* Date+format.swift */; };
+ B52625B025C87C14003E73B7 /* MapRender.swift in Sources */ = {isa = PBXBuildFile; fileRef = B52625AF25C87C14003E73B7 /* MapRender.swift */; };
+ B52625B625C87D69003E73B7 /* Binding+unwrap.swift in Sources */ = {isa = PBXBuildFile; fileRef = B52625B525C87D69003E73B7 /* Binding+unwrap.swift */; };
+ B52625BB25C884C2003E73B7 /* Map+parse.swift in Sources */ = {isa = PBXBuildFile; fileRef = B52625BA25C884C2003E73B7 /* Map+parse.swift */; };
+ B52625C625C8BD2A003E73B7 /* Stage.swift in Sources */ = {isa = PBXBuildFile; fileRef = B52625C525C8BD2A003E73B7 /* Stage.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ B526258625C874FA003E73B7 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = B526256625C874F9003E73B7 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = B526256D25C874F9003E73B7;
+ remoteInfo = Map;
+ };
+ B526259125C874FA003E73B7 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = B526256625C874F9003E73B7 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = B526256D25C874F9003E73B7;
+ remoteInfo = Map;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ B526256E25C874F9003E73B7 /* Map.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Map.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ B526257125C874F9003E73B7 /* MapApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapApp.swift; sourceTree = "<group>"; };
+ B526257325C874F9003E73B7 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
+ B526257525C874FA003E73B7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ B526257825C874FA003E73B7 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
+ B526257A25C874FA003E73B7 /* Persistence.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Persistence.swift; sourceTree = "<group>"; };
+ B526257D25C874FA003E73B7 /* Map.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Map.xcdatamodel; sourceTree = "<group>"; };
+ B526257F25C874FA003E73B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ B526258025C874FA003E73B7 /* Map.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Map.entitlements; sourceTree = "<group>"; };
+ B526258525C874FA003E73B7 /* MapTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MapTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ B526258925C874FA003E73B7 /* MapTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapTests.swift; sourceTree = "<group>"; };
+ B526258B25C874FA003E73B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ B526259025C874FA003E73B7 /* MapUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MapUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ B526259425C874FA003E73B7 /* MapUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapUITests.swift; sourceTree = "<group>"; };
+ B526259625C874FA003E73B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ B52625A525C876C3003E73B7 /* MapDetail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapDetail.swift; sourceTree = "<group>"; };
+ B52625AA25C87909003E73B7 /* Date+format.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Date+format.swift"; sourceTree = "<group>"; };
+ B52625AF25C87C14003E73B7 /* MapRender.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapRender.swift; sourceTree = "<group>"; };
+ B52625B525C87D69003E73B7 /* Binding+unwrap.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Binding+unwrap.swift"; sourceTree = "<group>"; };
+ B52625BA25C884C2003E73B7 /* Map+parse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Map+parse.swift"; sourceTree = "<group>"; };
+ B52625C525C8BD2A003E73B7 /* Stage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Stage.swift; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ B526256B25C874F9003E73B7 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B526258225C874FA003E73B7 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B526258D25C874FA003E73B7 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ B526256525C874F9003E73B7 = {
+ isa = PBXGroup;
+ children = (
+ B526257025C874F9003E73B7 /* Map */,
+ B526258825C874FA003E73B7 /* MapTests */,
+ B526259325C874FA003E73B7 /* MapUITests */,
+ B526256F25C874F9003E73B7 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ B526256F25C874F9003E73B7 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ B526256E25C874F9003E73B7 /* Map.app */,
+ B526258525C874FA003E73B7 /* MapTests.xctest */,
+ B526259025C874FA003E73B7 /* MapUITests.xctest */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ B526257025C874F9003E73B7 /* Map */ = {
+ isa = PBXGroup;
+ children = (
+ B52625B425C87D54003E73B7 /* Extensions */,
+ B526257125C874F9003E73B7 /* MapApp.swift */,
+ B526257325C874F9003E73B7 /* ContentView.swift */,
+ B526257525C874FA003E73B7 /* Assets.xcassets */,
+ B526257A25C874FA003E73B7 /* Persistence.swift */,
+ B526257F25C874FA003E73B7 /* Info.plist */,
+ B526258025C874FA003E73B7 /* Map.entitlements */,
+ B526257C25C874FA003E73B7 /* Map.xcdatamodeld */,
+ B526257725C874FA003E73B7 /* Preview Content */,
+ B52625A525C876C3003E73B7 /* MapDetail.swift */,
+ B52625AF25C87C14003E73B7 /* MapRender.swift */,
+ B52625C525C8BD2A003E73B7 /* Stage.swift */,
+ );
+ path = Map;
+ sourceTree = "<group>";
+ };
+ B526257725C874FA003E73B7 /* Preview Content */ = {
+ isa = PBXGroup;
+ children = (
+ B526257825C874FA003E73B7 /* Preview Assets.xcassets */,
+ );
+ path = "Preview Content";
+ sourceTree = "<group>";
+ };
+ B526258825C874FA003E73B7 /* MapTests */ = {
+ isa = PBXGroup;
+ children = (
+ B526258925C874FA003E73B7 /* MapTests.swift */,
+ B526258B25C874FA003E73B7 /* Info.plist */,
+ );
+ path = MapTests;
+ sourceTree = "<group>";
+ };
+ B526259325C874FA003E73B7 /* MapUITests */ = {
+ isa = PBXGroup;
+ children = (
+ B526259425C874FA003E73B7 /* MapUITests.swift */,
+ B526259625C874FA003E73B7 /* Info.plist */,
+ );
+ path = MapUITests;
+ sourceTree = "<group>";
+ };
+ B52625B425C87D54003E73B7 /* Extensions */ = {
+ isa = PBXGroup;
+ children = (
+ B52625BA25C884C2003E73B7 /* Map+parse.swift */,
+ B52625AA25C87909003E73B7 /* Date+format.swift */,
+ B52625B525C87D69003E73B7 /* Binding+unwrap.swift */,
+ );
+ path = Extensions;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ B526256D25C874F9003E73B7 /* Map */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = B526259925C874FA003E73B7 /* Build configuration list for PBXNativeTarget "Map" */;
+ buildPhases = (
+ B526256A25C874F9003E73B7 /* Sources */,
+ B526256B25C874F9003E73B7 /* Frameworks */,
+ B526256C25C874F9003E73B7 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Map;
+ productName = Map;
+ productReference = B526256E25C874F9003E73B7 /* Map.app */;
+ productType = "com.apple.product-type.application";
+ };
+ B526258425C874FA003E73B7 /* MapTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = B526259C25C874FA003E73B7 /* Build configuration list for PBXNativeTarget "MapTests" */;
+ buildPhases = (
+ B526258125C874FA003E73B7 /* Sources */,
+ B526258225C874FA003E73B7 /* Frameworks */,
+ B526258325C874FA003E73B7 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ B526258725C874FA003E73B7 /* PBXTargetDependency */,
+ );
+ name = MapTests;
+ productName = MapTests;
+ productReference = B526258525C874FA003E73B7 /* MapTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ B526258F25C874FA003E73B7 /* MapUITests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = B526259F25C874FA003E73B7 /* Build configuration list for PBXNativeTarget "MapUITests" */;
+ buildPhases = (
+ B526258C25C874FA003E73B7 /* Sources */,
+ B526258D25C874FA003E73B7 /* Frameworks */,
+ B526258E25C874FA003E73B7 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ B526259225C874FA003E73B7 /* PBXTargetDependency */,
+ );
+ name = MapUITests;
+ productName = MapUITests;
+ productReference = B526259025C874FA003E73B7 /* MapUITests.xctest */;
+ productType = "com.apple.product-type.bundle.ui-testing";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ B526256625C874F9003E73B7 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 1240;
+ LastUpgradeCheck = 1240;
+ TargetAttributes = {
+ B526256D25C874F9003E73B7 = {
+ CreatedOnToolsVersion = 12.4;
+ };
+ B526258425C874FA003E73B7 = {
+ CreatedOnToolsVersion = 12.4;
+ TestTargetID = B526256D25C874F9003E73B7;
+ };
+ B526258F25C874FA003E73B7 = {
+ CreatedOnToolsVersion = 12.4;
+ TestTargetID = B526256D25C874F9003E73B7;
+ };
+ };
+ };
+ buildConfigurationList = B526256925C874F9003E73B7 /* Build configuration list for PBXProject "Map" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = B526256525C874F9003E73B7;
+ productRefGroup = B526256F25C874F9003E73B7 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ B526256D25C874F9003E73B7 /* Map */,
+ B526258425C874FA003E73B7 /* MapTests */,
+ B526258F25C874FA003E73B7 /* MapUITests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ B526256C25C874F9003E73B7 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ B526257925C874FA003E73B7 /* Preview Assets.xcassets in Resources */,
+ B526257625C874FA003E73B7 /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B526258325C874FA003E73B7 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B526258E25C874FA003E73B7 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ B526256A25C874F9003E73B7 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ B52625B025C87C14003E73B7 /* MapRender.swift in Sources */,
+ B52625AB25C87909003E73B7 /* Date+format.swift in Sources */,
+ B52625B625C87D69003E73B7 /* Binding+unwrap.swift in Sources */,
+ B52625BB25C884C2003E73B7 /* Map+parse.swift in Sources */,
+ B52625C625C8BD2A003E73B7 /* Stage.swift in Sources */,
+ B526257B25C874FA003E73B7 /* Persistence.swift in Sources */,
+ B526257425C874F9003E73B7 /* ContentView.swift in Sources */,
+ B526257E25C874FA003E73B7 /* Map.xcdatamodeld in Sources */,
+ B526257225C874F9003E73B7 /* MapApp.swift in Sources */,
+ B52625A625C876C3003E73B7 /* MapDetail.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B526258125C874FA003E73B7 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ B526258A25C874FA003E73B7 /* MapTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B526258C25C874FA003E73B7 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ B526259525C874FA003E73B7 /* MapUITests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ B526258725C874FA003E73B7 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = B526256D25C874F9003E73B7 /* Map */;
+ targetProxy = B526258625C874FA003E73B7 /* PBXContainerItemProxy */;
+ };
+ B526259225C874FA003E73B7 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = B526256D25C874F9003E73B7 /* Map */;
+ targetProxy = B526259125C874FA003E73B7 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin XCBuildConfiguration section */
+ B526259725C874FA003E73B7 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ 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;
+ MACOSX_DEPLOYMENT_TARGET = 11.1;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ B526259825C874FA003E73B7 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ 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;
+ MACOSX_DEPLOYMENT_TARGET = 11.1;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Release;
+ };
+ B526259A25C874FA003E73B7 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = Map/Map.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_ASSET_PATHS = "\"Map/Preview Content\"";
+ DEVELOPMENT_TEAM = S68NHQVJXW;
+ ENABLE_HARDENED_RUNTIME = YES;
+ ENABLE_PREVIEWS = YES;
+ INFOPLIST_FILE = Map/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 11.0;
+ PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.Map;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ B526259B25C874FA003E73B7 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = Map/Map.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_ASSET_PATHS = "\"Map/Preview Content\"";
+ DEVELOPMENT_TEAM = S68NHQVJXW;
+ ENABLE_HARDENED_RUNTIME = YES;
+ ENABLE_PREVIEWS = YES;
+ INFOPLIST_FILE = Map/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 11.0;
+ PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.Map;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ B526259D25C874FA003E73B7 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = S68NHQVJXW;
+ INFOPLIST_FILE = MapTests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@loader_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 11.0;
+ PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.MapTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Map.app/Contents/MacOS/Map";
+ };
+ name = Debug;
+ };
+ B526259E25C874FA003E73B7 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = S68NHQVJXW;
+ INFOPLIST_FILE = MapTests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@loader_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 11.0;
+ PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.MapTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Map.app/Contents/MacOS/Map";
+ };
+ name = Release;
+ };
+ B52625A025C874FA003E73B7 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = S68NHQVJXW;
+ INFOPLIST_FILE = MapUITests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@loader_path/../Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.MapUITests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_TARGET_NAME = Map;
+ };
+ name = Debug;
+ };
+ B52625A125C874FA003E73B7 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = S68NHQVJXW;
+ INFOPLIST_FILE = MapUITests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@loader_path/../Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.MapUITests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_TARGET_NAME = Map;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ B526256925C874F9003E73B7 /* Build configuration list for PBXProject "Map" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ B526259725C874FA003E73B7 /* Debug */,
+ B526259825C874FA003E73B7 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ B526259925C874FA003E73B7 /* Build configuration list for PBXNativeTarget "Map" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ B526259A25C874FA003E73B7 /* Debug */,
+ B526259B25C874FA003E73B7 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ B526259C25C874FA003E73B7 /* Build configuration list for PBXNativeTarget "MapTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ B526259D25C874FA003E73B7 /* Debug */,
+ B526259E25C874FA003E73B7 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ B526259F25C874FA003E73B7 /* Build configuration list for PBXNativeTarget "MapUITests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ B52625A025C874FA003E73B7 /* Debug */,
+ B52625A125C874FA003E73B7 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+
+/* Begin XCVersionGroup section */
+ B526257C25C874FA003E73B7 /* Map.xcdatamodeld */ = {
+ isa = XCVersionGroup;
+ children = (
+ B526257D25C874FA003E73B7 /* Map.xcdatamodel */,
+ );
+ currentVersion = B526257D25C874FA003E73B7 /* Map.xcdatamodel */;
+ path = Map.xcdatamodeld;
+ sourceTree = "<group>";
+ versionGroupType = wrapper.xcdatamodel;
+ };
+/* End XCVersionGroup section */
+ };
+ rootObject = B526256625C874F9003E73B7 /* Project object */;
+}
--- /dev/null
+//
+// ContentView.swift
+// Map
+//
+// Created by Ruben Beltran del Rio on 2/1/21.
+//
+
+import SwiftUI
+import CoreData
+import CoreGraphics
+
+struct MapRenderView: View {
+ @ObservedObject var map: Map
+ let evolution: Stage
+
+ let VERTEX_SIZE = CGSize(width: 25.0, height: 25.0)
+ let ARROWHEAD_SIZE = CGFloat(10.0)
+ let LINE_WIDTH = CGFloat(1.0)
+ let PADDING = CGFloat(4.0)
+ let STAGE_FRAME = CGSize(width: 245, height: 50)
+
+ var parsedMap: ParsedMap {
+ return map.parse()
+ }
+
+ var body: some View {
+ ZStack(alignment: .topLeading) {
+ ZStack (alignment: .topLeading) {
+ // The Axes
+ Path { path in
+ path.move(to: CGPoint(x: 0, y: 0))
+ path.addLine(to: CGPoint(x: 0, y: 1000))
+ path.addLine(to: CGPoint(x: 1000, y: 1000))
+ path.move(to: CGPoint(x: 1000, y: 1000))
+ path.closeSubpath()
+
+ }.strokedPath(StrokeStyle(lineWidth: LINE_WIDTH * 2))
+ Text("Visible").font(.title3).rotationEffect(Angle(degrees: -90.0)).offset(CGSize(width: -35.0, height: 0.0))
+ Text("Value Chain").font(.title).rotationEffect(Angle(degrees: -90.0)).offset(CGSize(width: -72.0, height: 480.0))
+ Text("Invisible").font(.title3).rotationEffect(Angle(degrees: -90.0)).offset(CGSize(width: -40.0, height: 980.0))
+ Text(evolution.I).font(.title3).frame(width: STAGE_FRAME.width, height: STAGE_FRAME.height, alignment: .topLeading).offset(CGSize(width: 0.0, height: 1000.0))
+ Text(evolution.II).font(.title3).frame(width: STAGE_FRAME.width, height: STAGE_FRAME.height, alignment: .topLeading).offset(CGSize(width: 250.0, height: 1000.0))
+ Text(evolution.III).font(.title3).frame(width: STAGE_FRAME.width, height: STAGE_FRAME.height, alignment: .topLeading).offset(CGSize(width: 500.0, height: 1000.0))
+ Text(evolution.IV).font(.title3).frame(width: STAGE_FRAME.width, height: STAGE_FRAME.height, alignment: .topLeading).offset(CGSize(width: 750.0, height: 1000.0))
+ }.offset(CGSize(width: 0.0, height: 0.0))
+
+ // The Lanes
+ Path { path in
+ path.move(to: CGPoint(x: 250, y: 0))
+ path.addLine(to: CGPoint(x: 250, y: 1000))
+ path.move(to: CGPoint(x: 500, y: 0))
+ path.addLine(to: CGPoint(x: 500, y: 1000))
+ path.move(to: CGPoint(x: 750, y: 0))
+ path.addLine(to: CGPoint(x: 750, y: 1000))
+ path.move(to: CGPoint(x: 250, y: 0))
+ path.closeSubpath()
+ }.strokedPath(StrokeStyle(lineWidth: LINE_WIDTH, dash: [10.0]))
+
+ Path { path in
+ path.addRect(CGRect(x: 0, y: 0, width: 250, height: 1000))
+ }.fill(Color.red).opacity(0.1)
+ Path { path in
+ path.addRect(CGRect(x: 250, y: 0, width: 250, height: 1000))
+ }.fill(Color.orange).opacity(0.1)
+ Path { path in
+ path.addRect(CGRect(x: 500, y: 0, width: 250, height: 1000))
+ }.fill(Color.yellow).opacity(0.1)
+ Path { path in
+ path.addRect(CGRect(x: 750, y: 0, width: 250, height: 1000))
+ }.fill(Color.green).opacity(0.1)
+
+ // The Vertices
+
+ ForEach(parsedMap.vertices, id: \.id) { vertex in
+ Path { path in
+ path.addEllipse(in: CGRect(
+ origin: vertex.position, size: VERTEX_SIZE
+ ))
+ }
+ Text(vertex.label).foregroundColor(Color.gray).offset(CGSize(
+ width: vertex.position.x + VERTEX_SIZE.width + PADDING,
+ height: vertex.position.y))
+ }
+
+ // The Edges
+
+ ForEach(parsedMap.edges, id: \.id) { edge in
+ Path { path in
+
+ let slope = (edge.destination.y - edge.origin.y) / (edge.destination.x - edge.origin.x)
+ let angle = atan(slope)
+ let multiplier = CGFloat(slope < 0 ? -1.0 : 1.0)
+ let upperAngle = angle - CGFloat.pi / 4.0
+ let lowerAngle = angle + CGFloat.pi / 4.0
+
+ let offsetOrigin = CGPoint(x: edge.origin.x + multiplier * (VERTEX_SIZE.width / 2.0) * cos(angle), y: edge.origin.y + multiplier * (VERTEX_SIZE.height / 2.0) * sin(angle))
+ let offsetDestination = CGPoint(x: edge.destination.x - multiplier * (VERTEX_SIZE.width / 2.0) * cos(angle), y: edge.destination.y - multiplier * (VERTEX_SIZE.height / 2.0) * sin(angle))
+
+ path.move(to: offsetOrigin)
+ path.addLine(to: offsetDestination)
+
+ // Arrowheads
+ path.move(to: offsetDestination)
+ path.addLine(to: CGPoint(x: offsetDestination.x - multiplier * ARROWHEAD_SIZE * cos(upperAngle), y:
+ offsetDestination.y - multiplier * ARROWHEAD_SIZE * sin(upperAngle)))
+
+ path.move(to: offsetDestination)
+ path.addLine(to: CGPoint(x: offsetDestination.x - multiplier * ARROWHEAD_SIZE * cos(lowerAngle), y:
+ offsetDestination.y - multiplier * ARROWHEAD_SIZE * sin(lowerAngle)))
+ path.move(to: offsetDestination)
+ path.closeSubpath()
+ }.applying(CGAffineTransform(translationX: VERTEX_SIZE.width / 2.0, y: VERTEX_SIZE.height / 2.0)).strokedPath(StrokeStyle(lineWidth: LINE_WIDTH))
+ }
+ }.frame(
+ minWidth: 1050.0, maxWidth: .infinity,
+ minHeight: 1050.0, maxHeight: .infinity, alignment: .topLeading
+ ).padding(30.0)
+ }
+}
+
+struct MapRenderView_Previews: PreviewProvider {
+ static var previews: some View {
+ MapDetailView(map: Map()).environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
+ }
+}