diff --git a/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.pbxproj b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..6ff51b7 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.pbxproj @@ -0,0 +1,642 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 25F059FC2BACD19C0074CA8A /* StringCatalogEnumSampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F059FB2BACD19C0074CA8A /* StringCatalogEnumSampleApp.swift */; }; + 25F059FE2BACD19C0074CA8A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F059FD2BACD19C0074CA8A /* ContentView.swift */; }; + 25F05A002BACD19C0074CA8A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 25F059FF2BACD19C0074CA8A /* Assets.xcassets */; }; + 25F05A032BACD19C0074CA8A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 25F05A022BACD19C0074CA8A /* Preview Assets.xcassets */; }; + 25F05A0D2BACD19D0074CA8A /* StringCatalogEnumSampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F05A0C2BACD19D0074CA8A /* StringCatalogEnumSampleTests.swift */; }; + 25F05A172BACD19D0074CA8A /* StringCatalogEnumSampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F05A162BACD19D0074CA8A /* StringCatalogEnumSampleUITests.swift */; }; + 25F05A192BACD19D0074CA8A /* StringCatalogEnumSampleUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F05A182BACD19D0074CA8A /* StringCatalogEnumSampleUITestsLaunchTests.swift */; }; + 25F05A262BACD6640074CA8A /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 25F05A252BACD6640074CA8A /* Localizable.xcstrings */; }; + 25F05A2C2BACDC880074CA8A /* Card.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F05A2B2BACDC880074CA8A /* Card.swift */; }; + 25F05A302BACE4E80074CA8A /* TopBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F05A2F2BACE4E80074CA8A /* TopBar.swift */; }; + 25F05A3A2BACFBFF0074CA8A /* GeneratedStrings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25F05A392BACFBFF0074CA8A /* GeneratedStrings.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 25F05A092BACD19D0074CA8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 25F059F02BACD19C0074CA8A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 25F059F72BACD19C0074CA8A; + remoteInfo = StringCatalogEnumSample; + }; + 25F05A132BACD19D0074CA8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 25F059F02BACD19C0074CA8A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 25F059F72BACD19C0074CA8A; + remoteInfo = StringCatalogEnumSample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 25F059F82BACD19C0074CA8A /* StringCatalogEnumSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StringCatalogEnumSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 25F059FB2BACD19C0074CA8A /* StringCatalogEnumSampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringCatalogEnumSampleApp.swift; sourceTree = ""; }; + 25F059FD2BACD19C0074CA8A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 25F059FF2BACD19C0074CA8A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 25F05A022BACD19C0074CA8A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 25F05A082BACD19D0074CA8A /* StringCatalogEnumSampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StringCatalogEnumSampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 25F05A0C2BACD19D0074CA8A /* StringCatalogEnumSampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringCatalogEnumSampleTests.swift; sourceTree = ""; }; + 25F05A122BACD19D0074CA8A /* StringCatalogEnumSampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StringCatalogEnumSampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 25F05A162BACD19D0074CA8A /* StringCatalogEnumSampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringCatalogEnumSampleUITests.swift; sourceTree = ""; }; + 25F05A182BACD19D0074CA8A /* StringCatalogEnumSampleUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringCatalogEnumSampleUITestsLaunchTests.swift; sourceTree = ""; }; + 25F05A252BACD6640074CA8A /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = ""; }; + 25F05A2B2BACDC880074CA8A /* Card.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Card.swift; sourceTree = ""; }; + 25F05A2F2BACE4E80074CA8A /* TopBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TopBar.swift; sourceTree = ""; }; + 25F05A392BACFBFF0074CA8A /* GeneratedStrings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedStrings.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 25F059F52BACD19C0074CA8A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 25F05A052BACD19D0074CA8A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 25F05A0F2BACD19D0074CA8A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 25F059EF2BACD19C0074CA8A = { + isa = PBXGroup; + children = ( + 25F059FA2BACD19C0074CA8A /* StringCatalogEnumSample */, + 25F05A0B2BACD19D0074CA8A /* StringCatalogEnumSampleTests */, + 25F05A152BACD19D0074CA8A /* StringCatalogEnumSampleUITests */, + 25F059F92BACD19C0074CA8A /* Products */, + ); + sourceTree = ""; + }; + 25F059F92BACD19C0074CA8A /* Products */ = { + isa = PBXGroup; + children = ( + 25F059F82BACD19C0074CA8A /* StringCatalogEnumSample.app */, + 25F05A082BACD19D0074CA8A /* StringCatalogEnumSampleTests.xctest */, + 25F05A122BACD19D0074CA8A /* StringCatalogEnumSampleUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 25F059FA2BACD19C0074CA8A /* StringCatalogEnumSample */ = { + isa = PBXGroup; + children = ( + 25F05A392BACFBFF0074CA8A /* GeneratedStrings.swift */, + 25F05A272BACDC2B0074CA8A /* App */, + 25F05A282BACDC560074CA8A /* Core */, + 25F05A252BACD6640074CA8A /* Localizable.xcstrings */, + 25F059FF2BACD19C0074CA8A /* Assets.xcassets */, + 25F05A012BACD19C0074CA8A /* Preview Content */, + ); + path = StringCatalogEnumSample; + sourceTree = ""; + }; + 25F05A012BACD19C0074CA8A /* Preview Content */ = { + isa = PBXGroup; + children = ( + 25F05A022BACD19C0074CA8A /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 25F05A0B2BACD19D0074CA8A /* StringCatalogEnumSampleTests */ = { + isa = PBXGroup; + children = ( + 25F05A0C2BACD19D0074CA8A /* StringCatalogEnumSampleTests.swift */, + ); + path = StringCatalogEnumSampleTests; + sourceTree = ""; + }; + 25F05A152BACD19D0074CA8A /* StringCatalogEnumSampleUITests */ = { + isa = PBXGroup; + children = ( + 25F05A162BACD19D0074CA8A /* StringCatalogEnumSampleUITests.swift */, + 25F05A182BACD19D0074CA8A /* StringCatalogEnumSampleUITestsLaunchTests.swift */, + ); + path = StringCatalogEnumSampleUITests; + sourceTree = ""; + }; + 25F05A272BACDC2B0074CA8A /* App */ = { + isa = PBXGroup; + children = ( + 25F059FB2BACD19C0074CA8A /* StringCatalogEnumSampleApp.swift */, + ); + path = App; + sourceTree = ""; + }; + 25F05A282BACDC560074CA8A /* Core */ = { + isa = PBXGroup; + children = ( + 25F05A2A2BACDC7B0074CA8A /* Components */, + 25F05A292BACDC690074CA8A /* RootView */, + ); + path = Core; + sourceTree = ""; + }; + 25F05A292BACDC690074CA8A /* RootView */ = { + isa = PBXGroup; + children = ( + 25F059FD2BACD19C0074CA8A /* ContentView.swift */, + ); + path = RootView; + sourceTree = ""; + }; + 25F05A2A2BACDC7B0074CA8A /* Components */ = { + isa = PBXGroup; + children = ( + 25F05A2B2BACDC880074CA8A /* Card.swift */, + 25F05A2F2BACE4E80074CA8A /* TopBar.swift */, + ); + path = Components; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 25F059F72BACD19C0074CA8A /* StringCatalogEnumSample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 25F05A1C2BACD19D0074CA8A /* Build configuration list for PBXNativeTarget "StringCatalogEnumSample" */; + buildPhases = ( + 25F059F42BACD19C0074CA8A /* Sources */, + 25F059F52BACD19C0074CA8A /* Frameworks */, + 25F059F62BACD19C0074CA8A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = StringCatalogEnumSample; + productName = StringCatalogEnumSample; + productReference = 25F059F82BACD19C0074CA8A /* StringCatalogEnumSample.app */; + productType = "com.apple.product-type.application"; + }; + 25F05A072BACD19D0074CA8A /* StringCatalogEnumSampleTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 25F05A1F2BACD19D0074CA8A /* Build configuration list for PBXNativeTarget "StringCatalogEnumSampleTests" */; + buildPhases = ( + 25F05A042BACD19D0074CA8A /* Sources */, + 25F05A052BACD19D0074CA8A /* Frameworks */, + 25F05A062BACD19D0074CA8A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 25F05A0A2BACD19D0074CA8A /* PBXTargetDependency */, + ); + name = StringCatalogEnumSampleTests; + productName = StringCatalogEnumSampleTests; + productReference = 25F05A082BACD19D0074CA8A /* StringCatalogEnumSampleTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 25F05A112BACD19D0074CA8A /* StringCatalogEnumSampleUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 25F05A222BACD19D0074CA8A /* Build configuration list for PBXNativeTarget "StringCatalogEnumSampleUITests" */; + buildPhases = ( + 25F05A0E2BACD19D0074CA8A /* Sources */, + 25F05A0F2BACD19D0074CA8A /* Frameworks */, + 25F05A102BACD19D0074CA8A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 25F05A142BACD19D0074CA8A /* PBXTargetDependency */, + ); + name = StringCatalogEnumSampleUITests; + productName = StringCatalogEnumSampleUITests; + productReference = 25F05A122BACD19D0074CA8A /* StringCatalogEnumSampleUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 25F059F02BACD19C0074CA8A /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + 25F059F72BACD19C0074CA8A = { + CreatedOnToolsVersion = 15.2; + }; + 25F05A072BACD19D0074CA8A = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 25F059F72BACD19C0074CA8A; + }; + 25F05A112BACD19D0074CA8A = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 25F059F72BACD19C0074CA8A; + }; + }; + }; + buildConfigurationList = 25F059F32BACD19C0074CA8A /* Build configuration list for PBXProject "StringCatalogEnumSample" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + es, + ); + mainGroup = 25F059EF2BACD19C0074CA8A; + productRefGroup = 25F059F92BACD19C0074CA8A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 25F059F72BACD19C0074CA8A /* StringCatalogEnumSample */, + 25F05A072BACD19D0074CA8A /* StringCatalogEnumSampleTests */, + 25F05A112BACD19D0074CA8A /* StringCatalogEnumSampleUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 25F059F62BACD19C0074CA8A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25F05A032BACD19C0074CA8A /* Preview Assets.xcassets in Resources */, + 25F05A002BACD19C0074CA8A /* Assets.xcassets in Resources */, + 25F05A262BACD6640074CA8A /* Localizable.xcstrings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 25F05A062BACD19D0074CA8A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 25F05A102BACD19D0074CA8A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 25F059F42BACD19C0074CA8A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25F059FE2BACD19C0074CA8A /* ContentView.swift in Sources */, + 25F05A2C2BACDC880074CA8A /* Card.swift in Sources */, + 25F059FC2BACD19C0074CA8A /* StringCatalogEnumSampleApp.swift in Sources */, + 25F05A302BACE4E80074CA8A /* TopBar.swift in Sources */, + 25F05A3A2BACFBFF0074CA8A /* GeneratedStrings.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 25F05A042BACD19D0074CA8A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25F05A0D2BACD19D0074CA8A /* StringCatalogEnumSampleTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 25F05A0E2BACD19D0074CA8A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25F05A192BACD19D0074CA8A /* StringCatalogEnumSampleUITestsLaunchTests.swift in Sources */, + 25F05A172BACD19D0074CA8A /* StringCatalogEnumSampleUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 25F05A0A2BACD19D0074CA8A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 25F059F72BACD19C0074CA8A /* StringCatalogEnumSample */; + targetProxy = 25F05A092BACD19D0074CA8A /* PBXContainerItemProxy */; + }; + 25F05A142BACD19D0074CA8A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 25F059F72BACD19C0074CA8A /* StringCatalogEnumSample */; + targetProxy = 25F05A132BACD19D0074CA8A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 25F05A1A2BACD19D0074CA8A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 25F05A1B2BACD19D0074CA8A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 25F05A1D2BACD19D0074CA8A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"StringCatalogEnumSample/Preview Content\""; + DEVELOPMENT_TEAM = 53NF449927; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.patel.StringCatalogEnumSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 25F05A1E2BACD19D0074CA8A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"StringCatalogEnumSample/Preview Content\""; + DEVELOPMENT_TEAM = 53NF449927; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.patel.StringCatalogEnumSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 25F05A202BACD19D0074CA8A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 53NF449927; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.patel.StringCatalogEnumSampleTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StringCatalogEnumSample.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/StringCatalogEnumSample"; + }; + name = Debug; + }; + 25F05A212BACD19D0074CA8A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 53NF449927; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.patel.StringCatalogEnumSampleTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StringCatalogEnumSample.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/StringCatalogEnumSample"; + }; + name = Release; + }; + 25F05A232BACD19D0074CA8A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 53NF449927; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.patel.StringCatalogEnumSampleUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = StringCatalogEnumSample; + }; + name = Debug; + }; + 25F05A242BACD19D0074CA8A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 53NF449927; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.patel.StringCatalogEnumSampleUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = StringCatalogEnumSample; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 25F059F32BACD19C0074CA8A /* Build configuration list for PBXProject "StringCatalogEnumSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 25F05A1A2BACD19D0074CA8A /* Debug */, + 25F05A1B2BACD19D0074CA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 25F05A1C2BACD19D0074CA8A /* Build configuration list for PBXNativeTarget "StringCatalogEnumSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 25F05A1D2BACD19D0074CA8A /* Debug */, + 25F05A1E2BACD19D0074CA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 25F05A1F2BACD19D0074CA8A /* Build configuration list for PBXNativeTarget "StringCatalogEnumSampleTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 25F05A202BACD19D0074CA8A /* Debug */, + 25F05A212BACD19D0074CA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 25F05A222BACD19D0074CA8A /* Build configuration list for PBXNativeTarget "StringCatalogEnumSampleUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 25F05A232BACD19D0074CA8A /* Debug */, + 25F05A242BACD19D0074CA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 25F059F02BACD19C0074CA8A /* Project object */; +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/xcuserdata/iamvatsalpatel.xcuserdatad/UserInterfaceState.xcuserstate b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/xcuserdata/iamvatsalpatel.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..c8226f4 Binary files /dev/null and b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/project.xcworkspace/xcuserdata/iamvatsalpatel.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/xcuserdata/iamvatsalpatel.xcuserdatad/xcschemes/xcschememanagement.plist b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/xcuserdata/iamvatsalpatel.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..a7e8599 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample.xcodeproj/xcuserdata/iamvatsalpatel.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + StringCatalogEnumSample.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/App/StringCatalogEnumSampleApp.swift b/StringCatalogEnumSample/StringCatalogEnumSample/App/StringCatalogEnumSampleApp.swift new file mode 100644 index 0000000..ca1c0c9 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/App/StringCatalogEnumSampleApp.swift @@ -0,0 +1,17 @@ +// +// StringCatalogEnumSampleApp.swift +// StringCatalogEnumSample +// +// Created by Vatsal Patel on 3/21/24. +// + +import SwiftUI + +@main +struct StringCatalogEnumSampleApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/AccentColor.colorset/Contents.json b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/Contents.json b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/logoQuible.imageset/Contents.json b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/logoQuible.imageset/Contents.json new file mode 100644 index 0000000..39db1f3 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/logoQuible.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "logoQuible.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/logoQuible.imageset/logoQuible.png b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/logoQuible.imageset/logoQuible.png new file mode 100644 index 0000000..6226248 Binary files /dev/null and b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/logoQuible.imageset/logoQuible.png differ diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/nba.imageset/Contents.json b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/nba.imageset/Contents.json new file mode 100644 index 0000000..8cb375b --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/nba.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "nba.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/nba.imageset/nba.jpeg b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/nba.imageset/nba.jpeg new file mode 100644 index 0000000..04a60c7 Binary files /dev/null and b/StringCatalogEnumSample/StringCatalogEnumSample/Assets.xcassets/nba.imageset/nba.jpeg differ diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Core/Components/Card.swift b/StringCatalogEnumSample/StringCatalogEnumSample/Core/Components/Card.swift new file mode 100644 index 0000000..f33a5c1 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Core/Components/Card.swift @@ -0,0 +1,54 @@ +// +// Card.swift +// StringCatalogEnumSample +// +// Created by Vatsal Patel on 3/21/24. +// + +import SwiftUI + +struct RoundedCorner: Shape { + var radius: CGFloat = .infinity + var corners: UIRectCorner = .allCorners + + func path(in rect: CGRect) -> Path { + let path = UIBezierPath(roundedRect: rect, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius)) + return Path(path.cgPath) + } +} + +struct Card: View { + var body: some View { + ZStack(alignment:.topLeading) { + RoundedRectangle(cornerRadius: 15) + .fill(Color(red: 0.10, green: 0.10, blue: 0.10)) + VStack(alignment: .leading) { + Image("nba") + .resizable() + .aspectRatio(contentMode: .fit) + .clipShape(RoundedCorner(radius: 15, corners: [.topLeft, .topRight])) + .padding(.bottom) + VStack(alignment: .leading, spacing: 10) { + Text(XCS.chasingHistoryNuggetsReachNbaSummitEp31.key) + .font(.callout) + .fontWeight(.semibold) + Text(XCS.afterA47YearWaitTheNuggetsAreNbaChampsAfterAGame5WinVsTheHeatInWhichNikolaJokicClaimedBillRussellNbaFinalsMvpHonors.key) + .font(.caption) + .fontWeight(.medium) + } + .padding(.horizontal, 8) + } + } + .foregroundStyle(.white) + .padding() + .frame(width:350, height: 375) + } +} + +#Preview { + Card() +} + + +// Chasing History: Nuggets reach NBA summit (Ep. 31) +// After a 47-year wait, the Nuggets are NBA champs after a Game 5 win vs. the Heat in which Nikola Jokic claimed Bill Russell NBA Finals MVP honors. diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Core/Components/TopBar.swift b/StringCatalogEnumSample/StringCatalogEnumSample/Core/Components/TopBar.swift new file mode 100644 index 0000000..9746d51 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Core/Components/TopBar.swift @@ -0,0 +1,38 @@ +// +// TopBar.swift +// StringCatalogEnumSample +// +// Created by Vatsal Patel on 3/21/24. +// + +import SwiftUI + +struct TopBar: View { + var body: some View { + HStack(alignment: .bottom){ + Image("logoQuible") + .resizable() + .frame(width: 80, height: 40) + Spacer() + Button { + print("Notification Clicked!") + } label: { + Image(systemName: "bell.fill") + .foregroundStyle(.white) + .frame(width: 40, height: 40) + } + } + .padding(.top, 50) + .padding(.horizontal) + .padding(.bottom, 10) + .background(Color(red: 0.11, green: 0.11, blue: 0.11)) + .clipShape(RoundedRectangle( + cornerRadius: 0, + style: .continuous + )) + } +} + +#Preview { + TopBar() +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Core/RootView/ContentView.swift b/StringCatalogEnumSample/StringCatalogEnumSample/Core/RootView/ContentView.swift new file mode 100644 index 0000000..8179852 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Core/RootView/ContentView.swift @@ -0,0 +1,63 @@ +// +// ContentView.swift +// StringCatalogEnumSample +// +// Created by Vatsal Patel on 3/21/24. +// + +import SwiftUI + +struct ContentView: View { + let user = "Aarav" + let noOfBets = 4 + + var body: some View { + ZStack(alignment: .topLeading) { + Color.black + + VStack(alignment: .leading) { + TopBar() + Text( + String(format: NSLocalizedString("welcomeBack", comment: "displayed as a greeting on top of app"), user) + ) + .font(.title2) + .fontWeight(.bold) + .foregroundStyle(.white) + .padding() + + Text(String.localizedStringWithFormat(NSLocalizedString(XCS.bets.rawValue, comment: ""),noOfBets)) + .font(.title2) + .fontWeight(.bold) + .foregroundStyle(.white) + .padding() + + Text(XCS.trendingNewsForBasketball.key) + .font(.headline) + .fontWeight(.semibold) + .foregroundStyle(.white) + .padding(.top) + .padding(.horizontal) + + VStack{ + ScrollView(.horizontal, showsIndicators: false) { + HStack(spacing: 0) { + ForEach(0..<5){ i in + Card() + } + } + } + } + } + } + .ignoresSafeArea() + } +} + +#Preview { + ContentView() +} + +#Preview("Spanish") { + ContentView() + .environment(\.locale, Locale(identifier: "ES")) +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/GeneratedStrings.swift b/StringCatalogEnumSample/StringCatalogEnumSample/GeneratedStrings.swift new file mode 100644 index 0000000..f9258b1 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/GeneratedStrings.swift @@ -0,0 +1,34 @@ +// This file is generated by XcodeStringEnum. Please do *NOT* update it manually. +// As a common practice, swiftLint is disabled for generated files. +// swiftlint:disable all + +import SwiftUI + +/// Makes it a bit easier to type. +typealias XCS = XcodeStringKey + +/// Generated by StringCatalogEnum, this enum contains all existing Strin Category keys. +enum XcodeStringKey: String, CaseIterable { + /// 'es': "Bienvenido de nuevo, %@" + /// 'en': "Welcome Back, %@" + case welcomeBack + /// No localizations available + case bets + + // MARK: - The following cases should be manually replaced in your codebase. + + /// 'es': "Después de una espera de 47 años, los Nuggets son campeones de la NBA después de una victoria en el Juego 5 contra el Heat en la que Nikola Jokic reclamó los honores de Jugador Más Valioso de las Finales de la NBA Bill Russell." + case afterA47YearWaitTheNuggetsAreNbaChampsAfterAGame5WinVsTheHeatInWhichNikolaJokicClaimedBillRussellNbaFinalsMvpHonors = "After a 47-year wait, the Nuggets are NBA champs after a Game 5 win vs. the Heat in which Nikola Jokic claimed Bill Russell NBA Finals MVP honors." + /// 'es': "Noticias de actualidad para el baloncesto 🏀" + case trendingNewsForBasketball = "Trending News for Basketball 🏀" + /// 'es': "Persiguiendo la historia: los Nuggets alcanzan la cima de la NBA (EP: 31)" + case chasingHistoryNuggetsReachNbaSummitEp31 = "Chasing History: Nuggets reach NBA summit (EP: 31)" + + /// Usage: `SwiftUI.Text(XCS.yourStringCatalogKey.key)` + var key: LocalizedStringKey { LocalizedStringKey(rawValue) } + + var string: String { NSLocalizedString(self.rawValue, comment: "Generated localization from String Catalog key: \(key)") } + + // var text: String.LocalizationValue { String.LocalizationValue(rawValue) } +} +// swiftlint:enable all \ No newline at end of file diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Localizable.xcstrings b/StringCatalogEnumSample/StringCatalogEnumSample/Localizable.xcstrings new file mode 100644 index 0000000..9067c7a --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Localizable.xcstrings @@ -0,0 +1,97 @@ +{ + "sourceLanguage" : "en", + "strings" : { + "After a 47-year wait, the Nuggets are NBA champs after a Game 5 win vs. the Heat in which Nikola Jokic claimed Bill Russell NBA Finals MVP honors." : { + "extractionState" : "stale", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Después de una espera de 47 años, los Nuggets son campeones de la NBA después de una victoria en el Juego 5 contra el Heat en la que Nikola Jokic reclamó los honores de Jugador Más Valioso de las Finales de la NBA Bill Russell." + } + } + } + }, + "bets" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "variations" : { + "plural" : { + "one" : { + "stringUnit" : { + "state" : "translated", + "value" : "You have %lld active bet." + } + }, + "other" : { + "stringUnit" : { + "state" : "new", + "value" : "You have %lld active bets." + } + } + } + } + }, + "es" : { + "variations" : { + "plural" : { + "one" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tienes %lld apuestas activa." + } + }, + "other" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tienes %lld apuestas activas." + } + } + } + } + } + } + }, + "Chasing History: Nuggets reach NBA summit (EP: 31)" : { + "extractionState" : "stale", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Persiguiendo la historia: los Nuggets alcanzan la cima de la NBA (EP: 31)" + } + } + } + }, + "Trending News for Basketball 🏀" : { + "extractionState" : "stale", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Noticias de actualidad para el baloncesto 🏀" + } + } + } + }, + "welcomeBack" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Welcome Back, %@" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Bienvenido de nuevo, %@" + } + } + } + } + }, + "version" : "1.0" +} \ No newline at end of file diff --git a/StringCatalogEnumSample/StringCatalogEnumSample/Preview Content/Preview Assets.xcassets/Contents.json b/StringCatalogEnumSample/StringCatalogEnumSample/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSample/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSampleTests/StringCatalogEnumSampleTests.swift b/StringCatalogEnumSample/StringCatalogEnumSampleTests/StringCatalogEnumSampleTests.swift new file mode 100644 index 0000000..aef54c8 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSampleTests/StringCatalogEnumSampleTests.swift @@ -0,0 +1,36 @@ +// +// StringCatalogEnumSampleTests.swift +// StringCatalogEnumSampleTests +// +// Created by Vatsal Patel on 3/21/24. +// + +import XCTest +@testable import StringCatalogEnumSample + +final class StringCatalogEnumSampleTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSampleUITests/StringCatalogEnumSampleUITests.swift b/StringCatalogEnumSample/StringCatalogEnumSampleUITests/StringCatalogEnumSampleUITests.swift new file mode 100644 index 0000000..07059cc --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSampleUITests/StringCatalogEnumSampleUITests.swift @@ -0,0 +1,41 @@ +// +// StringCatalogEnumSampleUITests.swift +// StringCatalogEnumSampleUITests +// +// Created by Vatsal Patel on 3/21/24. +// + +import XCTest + +final class StringCatalogEnumSampleUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/StringCatalogEnumSample/StringCatalogEnumSampleUITests/StringCatalogEnumSampleUITestsLaunchTests.swift b/StringCatalogEnumSample/StringCatalogEnumSampleUITests/StringCatalogEnumSampleUITestsLaunchTests.swift new file mode 100644 index 0000000..4fe0152 --- /dev/null +++ b/StringCatalogEnumSample/StringCatalogEnumSampleUITests/StringCatalogEnumSampleUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// StringCatalogEnumSampleUITestsLaunchTests.swift +// StringCatalogEnumSampleUITests +// +// Created by Vatsal Patel on 3/21/24. +// + +import XCTest + +final class StringCatalogEnumSampleUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}