commit 39eaed8532271d0a46c66d57da368cf207bbf177 Author: User Date: Thu Mar 7 15:29:05 2024 +0300 Ui Autorization diff --git a/SwUI.xcodeproj/project.pbxproj b/SwUI.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3dcd50b --- /dev/null +++ b/SwUI.xcodeproj/project.pbxproj @@ -0,0 +1,587 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + CE9164EF2B99C2130058EE5F /* SwUIApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE9164EE2B99C2130058EE5F /* SwUIApp.swift */; }; + CE9164F12B99C2130058EE5F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE9164F02B99C2130058EE5F /* ContentView.swift */; }; + CE9164F32B99C21A0058EE5F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CE9164F22B99C21A0058EE5F /* Assets.xcassets */; }; + CE9164F62B99C21A0058EE5F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CE9164F52B99C21A0058EE5F /* Preview Assets.xcassets */; }; + CE9165002B99C21B0058EE5F /* SwUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE9164FF2B99C21B0058EE5F /* SwUITests.swift */; }; + CE91650A2B99C21B0058EE5F /* SwUIUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE9165092B99C21B0058EE5F /* SwUIUITests.swift */; }; + CE91650C2B99C21B0058EE5F /* SwUIUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE91650B2B99C21B0058EE5F /* SwUIUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CE9164FC2B99C21B0058EE5F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CE9164E32B99C2130058EE5F /* Project object */; + proxyType = 1; + remoteGlobalIDString = CE9164EA2B99C2130058EE5F; + remoteInfo = SwUI; + }; + CE9165062B99C21B0058EE5F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CE9164E32B99C2130058EE5F /* Project object */; + proxyType = 1; + remoteGlobalIDString = CE9164EA2B99C2130058EE5F; + remoteInfo = SwUI; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + CE9164EB2B99C2130058EE5F /* SwUI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwUI.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CE9164EE2B99C2130058EE5F /* SwUIApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwUIApp.swift; sourceTree = ""; }; + CE9164F02B99C2130058EE5F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + CE9164F22B99C21A0058EE5F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + CE9164F52B99C21A0058EE5F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + CE9164FB2B99C21B0058EE5F /* SwUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + CE9164FF2B99C21B0058EE5F /* SwUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwUITests.swift; sourceTree = ""; }; + CE9165052B99C21B0058EE5F /* SwUIUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwUIUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + CE9165092B99C21B0058EE5F /* SwUIUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwUIUITests.swift; sourceTree = ""; }; + CE91650B2B99C21B0058EE5F /* SwUIUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwUIUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CE9164E82B99C2130058EE5F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CE9164F82B99C21B0058EE5F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CE9165022B99C21B0058EE5F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CE9164E22B99C2130058EE5F = { + isa = PBXGroup; + children = ( + CE9164ED2B99C2130058EE5F /* SwUI */, + CE9164FE2B99C21B0058EE5F /* SwUITests */, + CE9165082B99C21B0058EE5F /* SwUIUITests */, + CE9164EC2B99C2130058EE5F /* Products */, + ); + sourceTree = ""; + }; + CE9164EC2B99C2130058EE5F /* Products */ = { + isa = PBXGroup; + children = ( + CE9164EB2B99C2130058EE5F /* SwUI.app */, + CE9164FB2B99C21B0058EE5F /* SwUITests.xctest */, + CE9165052B99C21B0058EE5F /* SwUIUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + CE9164ED2B99C2130058EE5F /* SwUI */ = { + isa = PBXGroup; + children = ( + CE9164EE2B99C2130058EE5F /* SwUIApp.swift */, + CE9164F02B99C2130058EE5F /* ContentView.swift */, + CE9164F22B99C21A0058EE5F /* Assets.xcassets */, + CE9164F42B99C21A0058EE5F /* Preview Content */, + ); + path = SwUI; + sourceTree = ""; + }; + CE9164F42B99C21A0058EE5F /* Preview Content */ = { + isa = PBXGroup; + children = ( + CE9164F52B99C21A0058EE5F /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + CE9164FE2B99C21B0058EE5F /* SwUITests */ = { + isa = PBXGroup; + children = ( + CE9164FF2B99C21B0058EE5F /* SwUITests.swift */, + ); + path = SwUITests; + sourceTree = ""; + }; + CE9165082B99C21B0058EE5F /* SwUIUITests */ = { + isa = PBXGroup; + children = ( + CE9165092B99C21B0058EE5F /* SwUIUITests.swift */, + CE91650B2B99C21B0058EE5F /* SwUIUITestsLaunchTests.swift */, + ); + path = SwUIUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CE9164EA2B99C2130058EE5F /* SwUI */ = { + isa = PBXNativeTarget; + buildConfigurationList = CE91650F2B99C21B0058EE5F /* Build configuration list for PBXNativeTarget "SwUI" */; + buildPhases = ( + CE9164E72B99C2130058EE5F /* Sources */, + CE9164E82B99C2130058EE5F /* Frameworks */, + CE9164E92B99C2130058EE5F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SwUI; + productName = SwUI; + productReference = CE9164EB2B99C2130058EE5F /* SwUI.app */; + productType = "com.apple.product-type.application"; + }; + CE9164FA2B99C21B0058EE5F /* SwUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CE9165122B99C21B0058EE5F /* Build configuration list for PBXNativeTarget "SwUITests" */; + buildPhases = ( + CE9164F72B99C21B0058EE5F /* Sources */, + CE9164F82B99C21B0058EE5F /* Frameworks */, + CE9164F92B99C21B0058EE5F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CE9164FD2B99C21B0058EE5F /* PBXTargetDependency */, + ); + name = SwUITests; + productName = SwUITests; + productReference = CE9164FB2B99C21B0058EE5F /* SwUITests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + CE9165042B99C21B0058EE5F /* SwUIUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CE9165152B99C21B0058EE5F /* Build configuration list for PBXNativeTarget "SwUIUITests" */; + buildPhases = ( + CE9165012B99C21B0058EE5F /* Sources */, + CE9165022B99C21B0058EE5F /* Frameworks */, + CE9165032B99C21B0058EE5F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CE9165072B99C21B0058EE5F /* PBXTargetDependency */, + ); + name = SwUIUITests; + productName = SwUIUITests; + productReference = CE9165052B99C21B0058EE5F /* SwUIUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CE9164E32B99C2130058EE5F /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + CE9164EA2B99C2130058EE5F = { + CreatedOnToolsVersion = 15.2; + }; + CE9164FA2B99C21B0058EE5F = { + CreatedOnToolsVersion = 15.2; + TestTargetID = CE9164EA2B99C2130058EE5F; + }; + CE9165042B99C21B0058EE5F = { + CreatedOnToolsVersion = 15.2; + TestTargetID = CE9164EA2B99C2130058EE5F; + }; + }; + }; + buildConfigurationList = CE9164E62B99C2130058EE5F /* Build configuration list for PBXProject "SwUI" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CE9164E22B99C2130058EE5F; + productRefGroup = CE9164EC2B99C2130058EE5F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CE9164EA2B99C2130058EE5F /* SwUI */, + CE9164FA2B99C21B0058EE5F /* SwUITests */, + CE9165042B99C21B0058EE5F /* SwUIUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CE9164E92B99C2130058EE5F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CE9164F62B99C21A0058EE5F /* Preview Assets.xcassets in Resources */, + CE9164F32B99C21A0058EE5F /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CE9164F92B99C21B0058EE5F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CE9165032B99C21B0058EE5F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CE9164E72B99C2130058EE5F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CE9164F12B99C2130058EE5F /* ContentView.swift in Sources */, + CE9164EF2B99C2130058EE5F /* SwUIApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CE9164F72B99C21B0058EE5F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CE9165002B99C21B0058EE5F /* SwUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CE9165012B99C21B0058EE5F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CE91650C2B99C21B0058EE5F /* SwUIUITestsLaunchTests.swift in Sources */, + CE91650A2B99C21B0058EE5F /* SwUIUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CE9164FD2B99C21B0058EE5F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CE9164EA2B99C2130058EE5F /* SwUI */; + targetProxy = CE9164FC2B99C21B0058EE5F /* PBXContainerItemProxy */; + }; + CE9165072B99C21B0058EE5F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CE9164EA2B99C2130058EE5F /* SwUI */; + targetProxy = CE9165062B99C21B0058EE5F /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + CE91650D2B99C21B0058EE5F /* 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; + }; + CE91650E2B99C21B0058EE5F /* 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; + }; + CE9165102B99C21B0058EE5F /* 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 = "\"SwUI/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = homewrk.SwUI; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + CE9165112B99C21B0058EE5F /* 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 = "\"SwUI/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = homewrk.SwUI; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + CE9165132B99C21B0058EE5F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = homewrk.SwUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwUI.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SwUI"; + }; + name = Debug; + }; + CE9165142B99C21B0058EE5F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = homewrk.SwUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwUI.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SwUI"; + }; + name = Release; + }; + CE9165162B99C21B0058EE5F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = homewrk.SwUIUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = SwUI; + }; + name = Debug; + }; + CE9165172B99C21B0058EE5F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = homewrk.SwUIUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = SwUI; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CE9164E62B99C2130058EE5F /* Build configuration list for PBXProject "SwUI" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CE91650D2B99C21B0058EE5F /* Debug */, + CE91650E2B99C21B0058EE5F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CE91650F2B99C21B0058EE5F /* Build configuration list for PBXNativeTarget "SwUI" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CE9165102B99C21B0058EE5F /* Debug */, + CE9165112B99C21B0058EE5F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CE9165122B99C21B0058EE5F /* Build configuration list for PBXNativeTarget "SwUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CE9165132B99C21B0058EE5F /* Debug */, + CE9165142B99C21B0058EE5F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CE9165152B99C21B0058EE5F /* Build configuration list for PBXNativeTarget "SwUIUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CE9165162B99C21B0058EE5F /* Debug */, + CE9165172B99C21B0058EE5F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = CE9164E32B99C2130058EE5F /* Project object */; +} diff --git a/SwUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SwUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/SwUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SwUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SwUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/SwUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/SwUI.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate b/SwUI.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..84d5e78 Binary files /dev/null and b/SwUI.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SwUI.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist b/SwUI.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..f34f4c5 --- /dev/null +++ b/SwUI.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + SwUI.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/SwUI/Assets.xcassets/AccentColor.colorset/Contents.json b/SwUI/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/SwUI/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SwUI/Assets.xcassets/AppIcon.appiconset/Contents.json b/SwUI/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/SwUI/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/SwUI/Assets.xcassets/Contents.json b/SwUI/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SwUI/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SwUI/ContentView.swift b/SwUI/ContentView.swift new file mode 100644 index 0000000..e3bb160 --- /dev/null +++ b/SwUI/ContentView.swift @@ -0,0 +1,137 @@ +import SwiftUI + +struct ContentView: View { + @State private var login: String = "" + @State private var password: String = "" + @State private var isRegistrationVisible: Bool = false + + var body: some View { + VStack(alignment: .leading, spacing: 10) { + Text("Добро пожаловать!") + .font(.title) + .padding(.top, 20) + .padding(.leading, 10) + + HStack(spacing: -20) { + Button(action: { + // Действие для кнопки "Вход" + isRegistrationVisible = false + }) { + Text("Вход") + .padding() + .frame(minWidth: 0, maxWidth: .infinity) + .background(isRegistrationVisible ? Color.gray.opacity(0.2) : Color.blue) + .foregroundColor(.white) + .cornerRadius(20) + } + + Button(action: { + // Действие для кнопки "Регистрация" + isRegistrationVisible = true + }) { + Text("Регистрация") + .padding() + .frame(minWidth: 0, maxWidth: .infinity) + .background(isRegistrationVisible ? Color.blue : Color.gray.opacity(0.2)) + .foregroundColor(.white) + .cornerRadius(20) + } + } + .padding(.top, 10) + .padding(.horizontal, 10) + + Color.clear + .frame(height: 15) + + if isRegistrationVisible { + RegistrationView() + } else { + TextField("Телефон, почта или ник", text: $login) + .padding() + .background(Color.gray.opacity(0.1)) + .cornerRadius(10) + .padding(.horizontal, 10) + .frame(height: 60) + + TextField("Пароль", text: $password) + .padding() + .background(Color.gray.opacity(0.1)) + .cornerRadius(10) + .padding(.horizontal, 10) + .frame(height: 60) + } + + Button(action: { + // Действие для кнопки "Забыли пароль?" + }) { + Text("Забыли пароль?") + .foregroundColor(.blue) + .padding(.top, 10) + .padding(.horizontal, 10) + } + + Spacer() + + Button(action: { + // Действие для кнопки "Продолжить" + }) { + Text("Продолжить") + .padding() + .frame(minWidth: 0, maxWidth: .infinity) + .background(Color.gray.opacity(0.2)) + .foregroundColor(.black) + .cornerRadius(20) + } + .padding(.bottom, 20) // Добавляем отступ снизу + } + .padding(.horizontal, 10) + .frame(maxWidth: .infinity, maxHeight: .infinity) + .padding(.bottom, 10) // Добавляем отступ снизу для контейнера + } +} + +struct RegistrationView: View { + @State private var name: String = "" + @State private var surname: String = "" + @State private var email: String = "" + @State private var password: String = "" + + var body: some View { + VStack(alignment: .leading, spacing: 10) { + TextField("Имя", text: $name) + .padding() + .background(Color.gray.opacity(0.1)) + .cornerRadius(10) + .padding(.horizontal, 10) + .frame(height: 60) + + TextField("Фамилия", text: $surname) + .padding() + .background(Color.gray.opacity(0.1)) + .cornerRadius(10) + .padding(.horizontal, 10) + .frame(height: 60) + + TextField("Email", text: $email) + .padding() + .background(Color.gray.opacity(0.1)) + .cornerRadius(10) + .padding(.horizontal, 10) + .frame(height: 60) + + TextField("Пароль", text: $password) + .padding() + .background(Color.gray.opacity(0.1)) + .cornerRadius(10) + .padding(.horizontal, 10) + .frame(height: 60) + } + .padding(.horizontal, 10) + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/SwUI/Preview Content/Preview Assets.xcassets/Contents.json b/SwUI/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SwUI/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SwUI/SwUIApp.swift b/SwUI/SwUIApp.swift new file mode 100644 index 0000000..47a61da --- /dev/null +++ b/SwUI/SwUIApp.swift @@ -0,0 +1,17 @@ +// +// SwUIApp.swift +// SwUI +// +// Created by User on 07.03.2024. +// + +import SwiftUI + +@main +struct SwUIApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/SwUITests/SwUITests.swift b/SwUITests/SwUITests.swift new file mode 100644 index 0000000..1bffbe0 --- /dev/null +++ b/SwUITests/SwUITests.swift @@ -0,0 +1,36 @@ +// +// SwUITests.swift +// SwUITests +// +// Created by User on 07.03.2024. +// + +import XCTest +@testable import SwUI + +final class SwUITests: 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/SwUIUITests/SwUIUITests.swift b/SwUIUITests/SwUIUITests.swift new file mode 100644 index 0000000..67d29b1 --- /dev/null +++ b/SwUIUITests/SwUIUITests.swift @@ -0,0 +1,41 @@ +// +// SwUIUITests.swift +// SwUIUITests +// +// Created by User on 07.03.2024. +// + +import XCTest + +final class SwUIUITests: 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/SwUIUITests/SwUIUITestsLaunchTests.swift b/SwUIUITests/SwUIUITestsLaunchTests.swift new file mode 100644 index 0000000..8dc0a0a --- /dev/null +++ b/SwUIUITests/SwUIUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// SwUIUITestsLaunchTests.swift +// SwUIUITests +// +// Created by User on 07.03.2024. +// + +import XCTest + +final class SwUIUITestsLaunchTests: 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) + } +}