diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/InstagramClone/InstagramClone.xcodeproj/project.pbxproj b/InstagramClone/InstagramClone.xcodeproj/project.pbxproj new file mode 100644 index 0000000..01dc3e6 --- /dev/null +++ b/InstagramClone/InstagramClone.xcodeproj/project.pbxproj @@ -0,0 +1,591 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 4F7B43832C095C8700824D31 /* SearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F7B43822C095C8700824D31 /* SearchView.swift */; }; + 4F7B43BB2C09CC3400824D31 /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F7B43BA2C09CC3400824D31 /* LoginView.swift */; }; + 4F80C2A92C008A8C0080CDCD /* InstagramCloneApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F80C2A82C008A8C0080CDCD /* InstagramCloneApp.swift */; }; + 4F80C2AD2C008A8E0080CDCD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F80C2AC2C008A8E0080CDCD /* Assets.xcassets */; }; + 4F80C2B02C008A8E0080CDCD /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F80C2AF2C008A8E0080CDCD /* Preview Assets.xcassets */; }; + 4F80C2BA2C008A8E0080CDCD /* InstagramCloneTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F80C2B92C008A8E0080CDCD /* InstagramCloneTests.swift */; }; + 4F80C2C42C008A8E0080CDCD /* InstagramCloneUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F80C2C32C008A8E0080CDCD /* InstagramCloneUITests.swift */; }; + 4F80C2C62C008A8E0080CDCD /* InstagramCloneUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F80C2C52C008A8E0080CDCD /* InstagramCloneUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 4F80C2B62C008A8E0080CDCD /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4F80C29D2C008A8C0080CDCD /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4F80C2A42C008A8C0080CDCD; + remoteInfo = InstagramClone; + }; + 4F80C2C02C008A8E0080CDCD /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4F80C29D2C008A8C0080CDCD /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4F80C2A42C008A8C0080CDCD; + remoteInfo = InstagramClone; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 4F7B43822C095C8700824D31 /* SearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchView.swift; sourceTree = ""; }; + 4F7B43BA2C09CC3400824D31 /* LoginView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginView.swift; sourceTree = ""; }; + 4F80C2A52C008A8C0080CDCD /* InstagramClone.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InstagramClone.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4F80C2A82C008A8C0080CDCD /* InstagramCloneApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstagramCloneApp.swift; sourceTree = ""; }; + 4F80C2AC2C008A8E0080CDCD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 4F80C2AF2C008A8E0080CDCD /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 4F80C2B52C008A8E0080CDCD /* InstagramCloneTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = InstagramCloneTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 4F80C2B92C008A8E0080CDCD /* InstagramCloneTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstagramCloneTests.swift; sourceTree = ""; }; + 4F80C2BF2C008A8E0080CDCD /* InstagramCloneUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = InstagramCloneUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 4F80C2C32C008A8E0080CDCD /* InstagramCloneUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstagramCloneUITests.swift; sourceTree = ""; }; + 4F80C2C52C008A8E0080CDCD /* InstagramCloneUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstagramCloneUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4F80C2A22C008A8C0080CDCD /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4F80C2B22C008A8E0080CDCD /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4F80C2BC2C008A8E0080CDCD /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4F80C29C2C008A8C0080CDCD = { + isa = PBXGroup; + children = ( + 4F80C2A72C008A8C0080CDCD /* InstagramClone */, + 4F80C2B82C008A8E0080CDCD /* InstagramCloneTests */, + 4F80C2C22C008A8E0080CDCD /* InstagramCloneUITests */, + 4F80C2A62C008A8C0080CDCD /* Products */, + ); + sourceTree = ""; + }; + 4F80C2A62C008A8C0080CDCD /* Products */ = { + isa = PBXGroup; + children = ( + 4F80C2A52C008A8C0080CDCD /* InstagramClone.app */, + 4F80C2B52C008A8E0080CDCD /* InstagramCloneTests.xctest */, + 4F80C2BF2C008A8E0080CDCD /* InstagramCloneUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 4F80C2A72C008A8C0080CDCD /* InstagramClone */ = { + isa = PBXGroup; + children = ( + 4F80C2A82C008A8C0080CDCD /* InstagramCloneApp.swift */, + 4F7B43BA2C09CC3400824D31 /* LoginView.swift */, + 4F7B43822C095C8700824D31 /* SearchView.swift */, + 4F80C2AC2C008A8E0080CDCD /* Assets.xcassets */, + 4F80C2AE2C008A8E0080CDCD /* Preview Content */, + ); + path = InstagramClone; + sourceTree = ""; + }; + 4F80C2AE2C008A8E0080CDCD /* Preview Content */ = { + isa = PBXGroup; + children = ( + 4F80C2AF2C008A8E0080CDCD /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 4F80C2B82C008A8E0080CDCD /* InstagramCloneTests */ = { + isa = PBXGroup; + children = ( + 4F80C2B92C008A8E0080CDCD /* InstagramCloneTests.swift */, + ); + path = InstagramCloneTests; + sourceTree = ""; + }; + 4F80C2C22C008A8E0080CDCD /* InstagramCloneUITests */ = { + isa = PBXGroup; + children = ( + 4F80C2C32C008A8E0080CDCD /* InstagramCloneUITests.swift */, + 4F80C2C52C008A8E0080CDCD /* InstagramCloneUITestsLaunchTests.swift */, + ); + path = InstagramCloneUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4F80C2A42C008A8C0080CDCD /* InstagramClone */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4F80C2C92C008A8E0080CDCD /* Build configuration list for PBXNativeTarget "InstagramClone" */; + buildPhases = ( + 4F80C2A12C008A8C0080CDCD /* Sources */, + 4F80C2A22C008A8C0080CDCD /* Frameworks */, + 4F80C2A32C008A8C0080CDCD /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = InstagramClone; + productName = InstagramClone; + productReference = 4F80C2A52C008A8C0080CDCD /* InstagramClone.app */; + productType = "com.apple.product-type.application"; + }; + 4F80C2B42C008A8E0080CDCD /* InstagramCloneTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4F80C2CC2C008A8E0080CDCD /* Build configuration list for PBXNativeTarget "InstagramCloneTests" */; + buildPhases = ( + 4F80C2B12C008A8E0080CDCD /* Sources */, + 4F80C2B22C008A8E0080CDCD /* Frameworks */, + 4F80C2B32C008A8E0080CDCD /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 4F80C2B72C008A8E0080CDCD /* PBXTargetDependency */, + ); + name = InstagramCloneTests; + productName = InstagramCloneTests; + productReference = 4F80C2B52C008A8E0080CDCD /* InstagramCloneTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 4F80C2BE2C008A8E0080CDCD /* InstagramCloneUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4F80C2CF2C008A8E0080CDCD /* Build configuration list for PBXNativeTarget "InstagramCloneUITests" */; + buildPhases = ( + 4F80C2BB2C008A8E0080CDCD /* Sources */, + 4F80C2BC2C008A8E0080CDCD /* Frameworks */, + 4F80C2BD2C008A8E0080CDCD /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 4F80C2C12C008A8E0080CDCD /* PBXTargetDependency */, + ); + name = InstagramCloneUITests; + productName = InstagramCloneUITests; + productReference = 4F80C2BF2C008A8E0080CDCD /* InstagramCloneUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4F80C29D2C008A8C0080CDCD /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1540; + LastUpgradeCheck = 1540; + TargetAttributes = { + 4F80C2A42C008A8C0080CDCD = { + CreatedOnToolsVersion = 15.4; + }; + 4F80C2B42C008A8E0080CDCD = { + CreatedOnToolsVersion = 15.4; + TestTargetID = 4F80C2A42C008A8C0080CDCD; + }; + 4F80C2BE2C008A8E0080CDCD = { + CreatedOnToolsVersion = 15.4; + TestTargetID = 4F80C2A42C008A8C0080CDCD; + }; + }; + }; + buildConfigurationList = 4F80C2A02C008A8C0080CDCD /* Build configuration list for PBXProject "InstagramClone" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4F80C29C2C008A8C0080CDCD; + productRefGroup = 4F80C2A62C008A8C0080CDCD /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4F80C2A42C008A8C0080CDCD /* InstagramClone */, + 4F80C2B42C008A8E0080CDCD /* InstagramCloneTests */, + 4F80C2BE2C008A8E0080CDCD /* InstagramCloneUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4F80C2A32C008A8C0080CDCD /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F80C2B02C008A8E0080CDCD /* Preview Assets.xcassets in Resources */, + 4F80C2AD2C008A8E0080CDCD /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4F80C2B32C008A8E0080CDCD /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4F80C2BD2C008A8E0080CDCD /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4F80C2A12C008A8C0080CDCD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F7B43832C095C8700824D31 /* SearchView.swift in Sources */, + 4F7B43BB2C09CC3400824D31 /* LoginView.swift in Sources */, + 4F80C2A92C008A8C0080CDCD /* InstagramCloneApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4F80C2B12C008A8E0080CDCD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F80C2BA2C008A8E0080CDCD /* InstagramCloneTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4F80C2BB2C008A8E0080CDCD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F80C2C42C008A8E0080CDCD /* InstagramCloneUITests.swift in Sources */, + 4F80C2C62C008A8E0080CDCD /* InstagramCloneUITestsLaunchTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 4F80C2B72C008A8E0080CDCD /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 4F80C2A42C008A8C0080CDCD /* InstagramClone */; + targetProxy = 4F80C2B62C008A8E0080CDCD /* PBXContainerItemProxy */; + }; + 4F80C2C12C008A8E0080CDCD /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 4F80C2A42C008A8C0080CDCD /* InstagramClone */; + targetProxy = 4F80C2C02C008A8E0080CDCD /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 4F80C2C72C008A8E0080CDCD /* 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.5; + 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; + }; + 4F80C2C82C008A8E0080CDCD /* 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.5; + 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; + }; + 4F80C2CA2C008A8E0080CDCD /* 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 = "\"InstagramClone/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 = TrainSwiftUI.InstagramClone; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 4F80C2CB2C008A8E0080CDCD /* 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 = "\"InstagramClone/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 = TrainSwiftUI.InstagramClone; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 4F80C2CD2C008A8E0080CDCD /* 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.5; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = TrainSwiftUI.InstagramCloneTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/InstagramClone.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/InstagramClone"; + }; + name = Debug; + }; + 4F80C2CE2C008A8E0080CDCD /* 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.5; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = TrainSwiftUI.InstagramCloneTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/InstagramClone.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/InstagramClone"; + }; + name = Release; + }; + 4F80C2D02C008A8E0080CDCD /* 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 = TrainSwiftUI.InstagramCloneUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = InstagramClone; + }; + name = Debug; + }; + 4F80C2D12C008A8E0080CDCD /* 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 = TrainSwiftUI.InstagramCloneUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = InstagramClone; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4F80C2A02C008A8C0080CDCD /* Build configuration list for PBXProject "InstagramClone" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F80C2C72C008A8E0080CDCD /* Debug */, + 4F80C2C82C008A8E0080CDCD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4F80C2C92C008A8E0080CDCD /* Build configuration list for PBXNativeTarget "InstagramClone" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F80C2CA2C008A8E0080CDCD /* Debug */, + 4F80C2CB2C008A8E0080CDCD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4F80C2CC2C008A8E0080CDCD /* Build configuration list for PBXNativeTarget "InstagramCloneTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F80C2CD2C008A8E0080CDCD /* Debug */, + 4F80C2CE2C008A8E0080CDCD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4F80C2CF2C008A8E0080CDCD /* Build configuration list for PBXNativeTarget "InstagramCloneUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F80C2D02C008A8E0080CDCD /* Debug */, + 4F80C2D12C008A8E0080CDCD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4F80C29D2C008A8C0080CDCD /* Project object */; +} diff --git a/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/xcuserdata/sangyup.xcuserdatad/UserInterfaceState.xcuserstate b/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/xcuserdata/sangyup.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..f98c569 Binary files /dev/null and b/InstagramClone/InstagramClone.xcodeproj/project.xcworkspace/xcuserdata/sangyup.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/InstagramClone/InstagramClone.xcodeproj/xcuserdata/sangyup.xcuserdatad/xcschemes/xcschememanagement.plist b/InstagramClone/InstagramClone.xcodeproj/xcuserdata/sangyup.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..ac964a2 --- /dev/null +++ b/InstagramClone/InstagramClone.xcodeproj/xcuserdata/sangyup.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + InstagramClone.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/InstagramClone/InstagramClone/Assets.xcassets/AccentColor.colorset/Contents.json b/InstagramClone/InstagramClone/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/InstagramClone/InstagramClone/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/InstagramClone/InstagramClone/Assets.xcassets/AppIcon.appiconset/Contents.json b/InstagramClone/InstagramClone/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/InstagramClone/InstagramClone/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/InstagramClone/InstagramClone/Assets.xcassets/Contents.json b/InstagramClone/InstagramClone/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/InstagramClone/InstagramClone/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/InstagramClone/InstagramClone/Assets.xcassets/InstagramLogo.imageset/Contents.json b/InstagramClone/InstagramClone/Assets.xcassets/InstagramLogo.imageset/Contents.json new file mode 100644 index 0000000..2b38a97 --- /dev/null +++ b/InstagramClone/InstagramClone/Assets.xcassets/InstagramLogo.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "InstagramLogo.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/InstagramClone/InstagramClone/Assets.xcassets/InstagramLogo.imageset/InstagramLogo.png b/InstagramClone/InstagramClone/Assets.xcassets/InstagramLogo.imageset/InstagramLogo.png new file mode 100644 index 0000000..7c3c27b Binary files /dev/null and b/InstagramClone/InstagramClone/Assets.xcassets/InstagramLogo.imageset/InstagramLogo.png differ diff --git a/InstagramClone/InstagramClone/InstagramCloneApp.swift b/InstagramClone/InstagramClone/InstagramCloneApp.swift new file mode 100644 index 0000000..2a0782a --- /dev/null +++ b/InstagramClone/InstagramClone/InstagramCloneApp.swift @@ -0,0 +1,17 @@ +// +// InstagramCloneApp.swift +// InstagramClone +// +// Created by 이상엽 on 5/24/24. +// + +import SwiftUI + +@main +struct InstagramCloneApp: App { + var body: some Scene { + WindowGroup { + LoginView() + } + } +} diff --git a/InstagramClone/InstagramClone/LoginView.swift b/InstagramClone/InstagramClone/LoginView.swift new file mode 100644 index 0000000..4b57b74 --- /dev/null +++ b/InstagramClone/InstagramClone/LoginView.swift @@ -0,0 +1,112 @@ +// +// ContentView.swift +// InstagramClone +// +// Created by 이상엽 on 5/24/24. +// + +import SwiftUI + +struct LoginView: View { + @State private var searchText = "" + var body: some View { + VStack { + HStack{ + Button(action: { + }) { + Image(systemName: "chevron.left") + .resizable() + .aspectRatio(contentMode: .fit) + .foregroundColor(.black) + .frame(width: 25, height: 25) + //.padding(.top, 40) + //.offset(x: 0, y: -100) + } + Spacer() + } + Spacer() + Image("InstagramLogo") + .imageScale(.large) + .foregroundStyle(.tint) + .padding(.bottom, 40) + TextField("ID", text: $searchText) + .padding() + .cornerRadius(10) + .background(Color(red: 0.98, green: 0.98, blue: 0.98)) + .overlay( + RoundedRectangle(cornerRadius: 10) // 둥근 모서리 사각형 + .stroke(Color.gray, lineWidth: 0.3) // 테두리 색상과 두께 지정 + ) + + TextField("Password", text: $searchText) + .padding() // 텍스트필드 내부의 텍스트와 경계 사이의 패딩을 추가 + .background(Color(red: 0.98, green: 0.98, blue: 0.98)) // 배경색 지정 + .cornerRadius(10) // 둥근 모서리 적용 + .overlay( + RoundedRectangle(cornerRadius: 10) // 둥근 모서리 사각형 + .stroke(Color.gray, lineWidth: 0.3) // 테두리 색상과 두께 지정 + ) + + HStack{ + Spacer() + Text("Forgot password?") + .foregroundColor(Color.blue) + .font(.system(size: 16)) + }.padding() + + + Button(action: { + print("Button tapped") + }) { + Text("log in") + .frame(width: 326, height: 20) + .font(.system(size: 19)) // 폰트 크기 + .fontWeight(.bold) + .padding() + .background(Color(red: 0.06, green: 0.55, blue: 1.00)) + .foregroundColor(.white) + .cornerRadius(8) + .padding(.bottom, 50) // 하단 여백 추가 + + } + + + HStack{ + RoundedRectangle(cornerRadius:15) + .fill(Color(red: 0.944, green: 0.949, blue: 0.953)) + .frame(width: 150, height: 3) + Spacer() + Text("OR") + .foregroundColor(Color.gray) + + Spacer() + RoundedRectangle(cornerRadius:15) + .fill(Color(red: 0.944, green: 0.949, blue: 0.953)) + .frame(width: 150, height: 3) + } + HStack(spacing: 0){ + Spacer() + Text("Don't have an acount?") + .font(.system(size: 16)) + Button(action: { + print("Button tapped") + }) { + Text("Sign Up. ") + .font(.system(size: 16)) // 폰트 크기 + .padding() + .background(Color(.white)) + .foregroundColor(.blue) + .cornerRadius(8) + } + Spacer() + }.padding(.top, 30) + Spacer() + + } + .padding() + } +} + +#Preview { + LoginView() +} diff --git a/InstagramClone/InstagramClone/Preview Content/Preview Assets.xcassets/Contents.json b/InstagramClone/InstagramClone/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/InstagramClone/InstagramClone/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/InstagramClone/InstagramClone/SearchView.swift b/InstagramClone/InstagramClone/SearchView.swift new file mode 100644 index 0000000..81bc73a --- /dev/null +++ b/InstagramClone/InstagramClone/SearchView.swift @@ -0,0 +1,91 @@ +import SwiftUI + +struct SearchView: View { + let rows = [ + GridItem(.fixed(100)) + ] + let columns = [ + GridItem(.fixed(120)), + GridItem(.fixed(120)), + GridItem(.fixed(120)) + ] + let buttonName = ["TV", "Shop", "Style", "Sports" ,"Auto", "Hello"] + @State private var searchText = "" + + let items = (0..<30).map { "Item \($0)" } + + var filteredItems: [String] { + if searchText.isEmpty { + return items + } else { + return items.filter { $0.contains(searchText) } + } + } + + var body: some View { + + VStack(spacing: 10){ + HStack { + ZStack(alignment: .leading) { + + TextField("Search", text: $searchText) + .padding(.leading, 30) // 이미지와 텍스트 간의 간격 조절 + .padding(7) + .background(Color(.systemGray6)) + .cornerRadius(10) + HStack { + Image(systemName: "magnifyingglass") + .foregroundColor(.black) + Spacer() + } + } + .background(Color(.systemGray6)) + .cornerRadius(10) + + Image(systemName: "camera.metering.partial") + .resizable() + .aspectRatio(contentMode: .fit) + .foregroundColor(.gray) + .frame(width: 30, height: 30) + .padding(.leading, 8) // 텍스트 필드와 이미지 간의 간격 조절 + }//HStack + .padding(.horizontal) + + ScrollView(.horizontal, showsIndicators: false) { + LazyHGrid(rows: rows, spacing: 10) { + ForEach(buttonName, id: \.self) { buttonNames in + Text(buttonNames) + .cornerRadius(15) + .frame(width: 100, height: 40) + .overlay( + RoundedRectangle(cornerRadius: 12) + .stroke(Color.gray, lineWidth: 1) + .frame(width: 100, height: 40) + ) + } + } + .padding(.horizontal) + .frame(height: 60) + } + + ScrollView { + LazyVGrid(columns: columns, spacing: 1) { + ForEach(0..<30) { index in + Rectangle() + .fill(Color.blue) + .frame(width: 127, height: 127) + .overlay(Text("\(index)").foregroundColor(.white)) + } + } + + } + Spacer() + } //VStack + } +} + +struct SearchView_Previews: PreviewProvider { + static var previews: some View { + SearchView() + } +} diff --git a/InstagramClone/InstagramCloneTests/InstagramCloneTests.swift b/InstagramClone/InstagramCloneTests/InstagramCloneTests.swift new file mode 100644 index 0000000..f5814cf --- /dev/null +++ b/InstagramClone/InstagramCloneTests/InstagramCloneTests.swift @@ -0,0 +1,36 @@ +// +// InstagramCloneTests.swift +// InstagramCloneTests +// +// Created by 이상엽 on 5/24/24. +// + +import XCTest +@testable import InstagramClone + +final class InstagramCloneTests: 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/InstagramClone/InstagramCloneUITests/InstagramCloneUITests.swift b/InstagramClone/InstagramCloneUITests/InstagramCloneUITests.swift new file mode 100644 index 0000000..5fb1c36 --- /dev/null +++ b/InstagramClone/InstagramCloneUITests/InstagramCloneUITests.swift @@ -0,0 +1,41 @@ +// +// InstagramCloneUITests.swift +// InstagramCloneUITests +// +// Created by 이상엽 on 5/24/24. +// + +import XCTest + +final class InstagramCloneUITests: 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/InstagramClone/InstagramCloneUITests/InstagramCloneUITestsLaunchTests.swift b/InstagramClone/InstagramCloneUITests/InstagramCloneUITestsLaunchTests.swift new file mode 100644 index 0000000..77811cc --- /dev/null +++ b/InstagramClone/InstagramCloneUITests/InstagramCloneUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// InstagramCloneUITestsLaunchTests.swift +// InstagramCloneUITests +// +// Created by 이상엽 on 5/24/24. +// + +import XCTest + +final class InstagramCloneUITestsLaunchTests: 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) + } +}