diff --git a/test/test.xcodeproj/project.pbxproj b/test/test.xcodeproj/project.pbxproj new file mode 100644 index 0000000..acd7a9d --- /dev/null +++ b/test/test.xcodeproj/project.pbxproj @@ -0,0 +1,394 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 80EFC20F2AD5B2D40006DA72 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC20E2AD5B2D40006DA72 /* AppDelegate.swift */; }; + 80EFC2112AD5B2D40006DA72 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC2102AD5B2D40006DA72 /* SceneDelegate.swift */; }; + 80EFC2132AD5B2D40006DA72 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC2122AD5B2D40006DA72 /* ViewController.swift */; }; + 80EFC2182AD5B2D50006DA72 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 80EFC2172AD5B2D50006DA72 /* Assets.xcassets */; }; + 80EFC21B2AD5B2D50006DA72 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 80EFC2192AD5B2D50006DA72 /* LaunchScreen.storyboard */; }; + 80EFC2292AD652520006DA72 /* BaseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC2282AD652520006DA72 /* BaseView.swift */; }; + 80EFC22B2AD6525D0006DA72 /* SecondView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC22A2AD6525D0006DA72 /* SecondView.swift */; }; + 80EFC22D2AD6533A0006DA72 /* FirstView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC22C2AD6533A0006DA72 /* FirstView.swift */; }; + 80EFC2362AD6E09C0006DA72 /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = 80EFC2352AD6E09C0006DA72 /* SnapKit */; }; + 80EFC2382AD6F1F00006DA72 /* DividerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC2372AD6F1F00006DA72 /* DividerView.swift */; }; + 80EFC23A2AD70B890006DA72 /* NextViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EFC2392AD70B890006DA72 /* NextViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 80EFC20B2AD5B2D40006DA72 /* test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = test.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 80EFC20E2AD5B2D40006DA72 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 80EFC2102AD5B2D40006DA72 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 80EFC2122AD5B2D40006DA72 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 80EFC2172AD5B2D50006DA72 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 80EFC21A2AD5B2D50006DA72 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 80EFC21C2AD5B2D50006DA72 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 80EFC2282AD652520006DA72 /* BaseView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseView.swift; sourceTree = ""; }; + 80EFC22A2AD6525D0006DA72 /* SecondView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondView.swift; sourceTree = ""; }; + 80EFC22C2AD6533A0006DA72 /* FirstView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstView.swift; sourceTree = ""; }; + 80EFC2372AD6F1F00006DA72 /* DividerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DividerView.swift; sourceTree = ""; }; + 80EFC2392AD70B890006DA72 /* NextViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NextViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 80EFC2082AD5B2D40006DA72 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 80EFC2362AD6E09C0006DA72 /* SnapKit in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 80EFC2022AD5B2D40006DA72 = { + isa = PBXGroup; + children = ( + 80EFC20D2AD5B2D40006DA72 /* test */, + 80EFC20C2AD5B2D40006DA72 /* Products */, + ); + sourceTree = ""; + }; + 80EFC20C2AD5B2D40006DA72 /* Products */ = { + isa = PBXGroup; + children = ( + 80EFC20B2AD5B2D40006DA72 /* test.app */, + ); + name = Products; + sourceTree = ""; + }; + 80EFC20D2AD5B2D40006DA72 /* test */ = { + isa = PBXGroup; + children = ( + 80EFC20E2AD5B2D40006DA72 /* AppDelegate.swift */, + 80EFC2102AD5B2D40006DA72 /* SceneDelegate.swift */, + 80EFC2122AD5B2D40006DA72 /* ViewController.swift */, + 80EFC2392AD70B890006DA72 /* NextViewController.swift */, + 80EFC2282AD652520006DA72 /* BaseView.swift */, + 80EFC22C2AD6533A0006DA72 /* FirstView.swift */, + 80EFC22A2AD6525D0006DA72 /* SecondView.swift */, + 80EFC2372AD6F1F00006DA72 /* DividerView.swift */, + 80EFC2172AD5B2D50006DA72 /* Assets.xcassets */, + 80EFC2192AD5B2D50006DA72 /* LaunchScreen.storyboard */, + 80EFC21C2AD5B2D50006DA72 /* Info.plist */, + ); + path = test; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 80EFC20A2AD5B2D40006DA72 /* test */ = { + isa = PBXNativeTarget; + buildConfigurationList = 80EFC21F2AD5B2D50006DA72 /* Build configuration list for PBXNativeTarget "test" */; + buildPhases = ( + 80EFC2072AD5B2D40006DA72 /* Sources */, + 80EFC2082AD5B2D40006DA72 /* Frameworks */, + 80EFC2092AD5B2D40006DA72 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = test; + packageProductDependencies = ( + 80EFC2352AD6E09C0006DA72 /* SnapKit */, + ); + productName = test; + productReference = 80EFC20B2AD5B2D40006DA72 /* test.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 80EFC2032AD5B2D40006DA72 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1420; + LastUpgradeCheck = 1420; + TargetAttributes = { + 80EFC20A2AD5B2D40006DA72 = { + CreatedOnToolsVersion = 14.2; + }; + }; + }; + buildConfigurationList = 80EFC2062AD5B2D40006DA72 /* Build configuration list for PBXProject "test" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 80EFC2022AD5B2D40006DA72; + packageReferences = ( + 80EFC2342AD6E09C0006DA72 /* XCRemoteSwiftPackageReference "SnapKit" */, + ); + productRefGroup = 80EFC20C2AD5B2D40006DA72 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 80EFC20A2AD5B2D40006DA72 /* test */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 80EFC2092AD5B2D40006DA72 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 80EFC21B2AD5B2D50006DA72 /* LaunchScreen.storyboard in Resources */, + 80EFC2182AD5B2D50006DA72 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 80EFC2072AD5B2D40006DA72 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 80EFC2132AD5B2D40006DA72 /* ViewController.swift in Sources */, + 80EFC23A2AD70B890006DA72 /* NextViewController.swift in Sources */, + 80EFC22D2AD6533A0006DA72 /* FirstView.swift in Sources */, + 80EFC2382AD6F1F00006DA72 /* DividerView.swift in Sources */, + 80EFC22B2AD6525D0006DA72 /* SecondView.swift in Sources */, + 80EFC2292AD652520006DA72 /* BaseView.swift in Sources */, + 80EFC20F2AD5B2D40006DA72 /* AppDelegate.swift in Sources */, + 80EFC2112AD5B2D40006DA72 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 80EFC2192AD5B2D50006DA72 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 80EFC21A2AD5B2D50006DA72 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 80EFC21D2AD5B2D50006DA72 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++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; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 80EFC21E2AD5B2D50006DA72 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++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; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 80EFC2202AD5B2D50006DA72 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = test/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + 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 = soomin.test; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 80EFC2212AD5B2D50006DA72 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = test/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + 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 = soomin.test; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 80EFC2062AD5B2D40006DA72 /* Build configuration list for PBXProject "test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 80EFC21D2AD5B2D50006DA72 /* Debug */, + 80EFC21E2AD5B2D50006DA72 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 80EFC21F2AD5B2D50006DA72 /* Build configuration list for PBXNativeTarget "test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 80EFC2202AD5B2D50006DA72 /* Debug */, + 80EFC2212AD5B2D50006DA72 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 80EFC2342AD6E09C0006DA72 /* XCRemoteSwiftPackageReference "SnapKit" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/SnapKit/SnapKit.git"; + requirement = { + branch = develop; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 80EFC2352AD6E09C0006DA72 /* SnapKit */ = { + isa = XCSwiftPackageProductDependency; + package = 80EFC2342AD6E09C0006DA72 /* XCRemoteSwiftPackageReference "SnapKit" */; + productName = SnapKit; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 80EFC2032AD5B2D40006DA72 /* Project object */; +} diff --git a/test/test.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/test/test.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/test/test.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/test/test.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/test/test.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/test/test.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/test/test.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/test/test.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..487ec65 --- /dev/null +++ b/test/test.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,23 @@ +{ + "pins" : [ + { + "identity" : "rxswift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/ReactiveX/RxSwift.git", + "state" : { + "branch" : "main", + "revision" : "473b7a7180df6ff58925a5bd1ed039bccdc35250" + } + }, + { + "identity" : "snapkit", + "kind" : "remoteSourceControl", + "location" : "https://github.com/SnapKit/SnapKit.git", + "state" : { + "branch" : "develop", + "revision" : "4d52cc3768ec5d345827b063dfa59e98a929965d" + } + } + ], + "version" : 2 +} diff --git a/test/test/AppDelegate.swift b/test/test/AppDelegate.swift new file mode 100644 index 0000000..9584c95 --- /dev/null +++ b/test/test/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// test +// +// Created by 김수민 on 2023/10/11. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/test/test/Assets.xcassets/AccentColor.colorset/Contents.json b/test/test/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/test/test/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/test/test/Assets.xcassets/AppIcon.appiconset/Contents.json b/test/test/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/test/test/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/test/test/Assets.xcassets/Contents.json b/test/test/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/test/test/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/test/test/Assets.xcassets/pizza.imageset/Contents.json b/test/test/Assets.xcassets/pizza.imageset/Contents.json new file mode 100644 index 0000000..731e996 --- /dev/null +++ b/test/test/Assets.xcassets/pizza.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "스크린샷 2023-10-11 오후 10.41.25.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "스크린샷 2023-10-11 오후 10.41.25 1.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "스크린샷 2023-10-11 오후 10.41.25 2.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25 1.png" "b/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25 1.png" new file mode 100644 index 0000000..60c1573 Binary files /dev/null and "b/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25 1.png" differ diff --git "a/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25 2.png" "b/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25 2.png" new file mode 100644 index 0000000..60c1573 Binary files /dev/null and "b/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25 2.png" differ diff --git "a/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25.png" "b/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25.png" new file mode 100644 index 0000000..60c1573 Binary files /dev/null and "b/test/test/Assets.xcassets/pizza.imageset/\354\212\244\355\201\254\353\246\260\354\203\267 2023-10-11 \354\230\244\355\233\204 10.41.25.png" differ diff --git a/test/test/Base.lproj/LaunchScreen.storyboard b/test/test/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..28b7b0e --- /dev/null +++ b/test/test/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test/BaseView.swift b/test/test/BaseView.swift new file mode 100644 index 0000000..3ae146b --- /dev/null +++ b/test/test/BaseView.swift @@ -0,0 +1,31 @@ +// +// FirstView.swift +// test +// +// Created by 김수민 on 2023/10/11. +// + +import Foundation + +import UIKit + +class BaseView: UIView { + override init(frame: CGRect) { + super.init(frame: frame) + setViewHierarchy() + layout() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setViewHierarchy(){} + func layout(){} +} + +extension UIView { + func addSubviews(_ views: UIView...) { + for view in views { addSubview(view) } + } +} diff --git a/test/test/DividerView.swift b/test/test/DividerView.swift new file mode 100644 index 0000000..2c6573a --- /dev/null +++ b/test/test/DividerView.swift @@ -0,0 +1,22 @@ +// +// DividerView.swift +// test +// +// Created by 김수민 on 2023/10/12. +// + +import UIKit + +class DividerView: UIView { + override init(frame: CGRect) { + super.init(frame: frame) + + // Divider의 색상과 스타일 설정 + backgroundColor = UIColor.separator // 시스템 구분선 색상 사용 (iOS 13 이상) + // backgroundColor = UIColor.lightGray // Divider의 색상 설정 (iOS 12 이하) + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + } +} diff --git a/test/test/FirstView.swift b/test/test/FirstView.swift new file mode 100644 index 0000000..d73aa85 --- /dev/null +++ b/test/test/FirstView.swift @@ -0,0 +1,205 @@ +// +// FirstView.swift +// test +// +// Created by 김수민 on 2023/10/11. +// + +import UIKit +import SnapKit + +class FirstView: BaseView { + + // MARK: - property + let pizzaImage: UIImageView = { + let imageView: UIImageView = UIImageView() + let image = UIImage(named: "pizza") + imageView.image = image + return imageView + }() + + let stackView: UIStackView = { + // 세 개의 텍스트 뷰 생성 + let text1 = UILabel() + text1.text = "<인기> [재주문 1위] 바싹불고기피자" + text1.font = UIFont.boldSystemFont(ofSize: 20) // 크기 20으로 설정 + let text2 = UILabel() + text2.text = "바싹 익힌 불고기의 풍미를 입안 가득 느낄 수 있는 자가 제빵 선명희피자의 야심작" + text2.numberOfLines = 0 // 텍스트 줄바꿈을 활성화 + let text3 = UILabel() + text3.text = "영양 성분 및 알레르기성분 표기" + let stackView = UIStackView(arrangedSubviews: [text1, text2, text3]) + stackView.axis = .vertical + stackView.spacing = 5 + // 패딩 설정 + stackView.layoutMargins = UIEdgeInsets(top: 10, left: 30, bottom: 10, right: 30) + stackView.isLayoutMarginsRelativeArrangement = true + return stackView + }() + + let firstDividerView: DividerView = { + var divider = DividerView() + divider.snp.makeConstraints { + $0.height.equalTo(10) + } + return divider + }() + + let secondDividerView: DividerView = { + var divider = DividerView() + divider.snp.makeConstraints { + $0.height.equalTo(10) + } + return divider + }() + // HStack 생성 + +// let checkingButton: UIButton = { +// var buttonStatus: Bool = false +// let button = UIButton() +// button.setTitle("버튼", for: .normal) +// button.backgroundColor = .gray // 버튼 배경색을 설정 +// // 클릭 이벤트 핸들러 추가 +// button.addTarget(self, action: #selector(checking), for: .touchUpInside) +// return button +// }() + + var buttonStatus: Bool = false + @objc func checking(){ + buttonStatus = true + } + let sizeMStackView: UIStackView = { +// firstCheckingButton + let text1 = UILabel() + text1.text = "M" + let text2 = UILabel() + text2.text = "20,000원" + text2.textAlignment = .right + let checkingButton: UIButton = { +// var buttonStatus: Bool = false + let button = UIButton() + button.setTitle("버튼", for: .normal) + button.backgroundColor = .gray // 버튼 배경색을 설정 + // 클릭 이벤트 핸들러 추가 + button.addTarget(self, action: #selector(checking), for: .touchUpInside) + return button + }() + var mCountTextField: UITextField = UITextField() + mCountTextField.placeholder = "갯수를 입력하시오." + let hStack = UIStackView(arrangedSubviews: [mCountTextField, text1, text2]) + hStack.axis = .horizontal + hStack.spacing = 10 + // Spacer를 추가하여 text1과 text2를 좌우 정렬 + let spacer = UIView() + spacer.setContentHuggingPriority(.defaultLow, for: .horizontal) + hStack.addArrangedSubview(spacer) + // 패딩 설정 + hStack.layoutMargins = UIEdgeInsets(top: 30, left: 30, bottom: 30, right: 30) + hStack.isLayoutMarginsRelativeArrangement = true + return hStack + }() + + let sizeLStackView: UIStackView = { +// firstCheckingButton + let text1 = UILabel() + text1.text = "L" + let text2 = UILabel() + text2.text = "23,000원" + text2.textAlignment = .right + let checkingButton: UIButton = { +// var buttonStatus: Bool = false + let button = UIButton() + button.setTitle("버튼", for: .normal) + button.backgroundColor = .gray // 버튼 배경색을 설정 + // 클릭 이벤트 핸들러 추가 + button.addTarget(self, action: #selector(checking), for: .touchUpInside) + return button + }() + + let lCountTextField: UITextField = UITextField() +// let hStack = UIStackView(arrangedSubviews: [checkingButton, text1, text2]) + lCountTextField.placeholder = "갯수를 입력하시오." + let hStack = UIStackView(arrangedSubviews: [lCountTextField, text1, text2]) + hStack.axis = .horizontal + hStack.spacing = 10 + // Spacer를 추가하여 text1과 text2를 좌우 정렬 + let spacer = UIView() + spacer.setContentHuggingPriority(.defaultLow, for: .horizontal) + hStack.addArrangedSubview(spacer) + // 패딩 설정 + hStack.layoutMargins = UIEdgeInsets(top: 30, left: 30, bottom: 30, right: 30) + hStack.isLayoutMarginsRelativeArrangement = true + return hStack + }() + + let resultButton: UIButton = { + let button = UIButton() + button.setTitle("담기", for: .normal) // "담기" 텍스트 설정 + button.backgroundColor = .blue // 버튼 배경색을 민트색으로 설정 + button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 20) // 텍스트 크기와 굵기 설정 + button.setTitleColor(.white, for: .normal) // 텍스트 색상을 흰색으로 설정 +// button.addTarget(self, action: #selector(checking), for: .touchUpInside) + return button + + }() + + + // MARK: - BaseView + override func setViewHierarchy() { + self.backgroundColor = .white + self.addSubviews(pizzaImage, stackView, firstDividerView, sizeMStackView, sizeLStackView, secondDividerView, resultButton) + } + override func layout() { + pizzaImage.snp.makeConstraints { + $0.top.equalToSuperview() + $0.leading.equalToSuperview() + $0.trailing.equalToSuperview() + $0.height.equalTo(250) + } + stackView.snp.makeConstraints { + $0.top.equalTo(pizzaImage.snp.bottom).offset(10) + $0.leading.equalToSuperview() + $0.trailing.equalToSuperview() + } + firstDividerView.snp.makeConstraints { + $0.top.equalTo(stackView.snp.bottom) + $0.leading.equalToSuperview() + $0.trailing.equalToSuperview() + } + sizeMStackView.snp.makeConstraints { + $0.top.equalTo(firstDividerView.snp.bottom) + $0.leading.equalToSuperview() + $0.trailing.equalToSuperview() + $0.height.equalTo(100) + } + + sizeLStackView.snp.makeConstraints { + $0.top.equalTo(sizeMStackView.snp.bottom) + $0.leading.equalToSuperview() + $0.trailing.equalToSuperview() + $0.height.equalTo(100) + } + secondDividerView.snp.makeConstraints { + $0.top.equalTo(sizeLStackView.snp.bottom) + $0.leading.equalToSuperview() + $0.trailing.equalToSuperview() + } + resultButton.snp.makeConstraints { + $0.bottom.equalToSuperview().offset(-30) + $0.leading.equalToSuperview().offset(10) + $0.trailing.equalToSuperview().offset(-10) + } + } + + @objc func buttonTapped() { + // 버튼 텍스트를 다음 뷰 컨트롤러로 전달 + let nextViewController = NextViewController() +// nextViewController.receivedText = sizeMStackView.mCountTextField.text + + // 다음 뷰 컨트롤러 표시 +// navigationController?.pushViewController(nextViewController, animated: true) + } + + + +} diff --git a/test/test/Info.plist b/test/test/Info.plist new file mode 100644 index 0000000..0eb786d --- /dev/null +++ b/test/test/Info.plist @@ -0,0 +1,23 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + + diff --git a/test/test/NextViewController.swift b/test/test/NextViewController.swift new file mode 100644 index 0000000..ff48df6 --- /dev/null +++ b/test/test/NextViewController.swift @@ -0,0 +1,29 @@ +// +// NextViewController.swift +// test +// +// Created by 김수민 on 2023/10/12. +// + +import UIKit + +class NextViewController: UIViewController { + let receivedText: String? = nil + override func viewDidLoad() { + super.viewDidLoad() + self.view = SecondView() + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/test/test/SceneDelegate.swift b/test/test/SceneDelegate.swift new file mode 100644 index 0000000..7a1fda1 --- /dev/null +++ b/test/test/SceneDelegate.swift @@ -0,0 +1,59 @@ +// +// SceneDelegate.swift +// test +// +// Created by 김수민 on 2023/10/11. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). +// guard let _ = (scene as? UIWindowScene) else { return } + guard let windowScene = (scene as? UIWindowScene) else { return } + window = UIWindow(frame: UIScreen.main.bounds) + let vc = ViewController() + let navVC = UINavigationController(rootViewController: vc) + window?.rootViewController = navVC + window?.makeKeyAndVisible() + window?.windowScene = windowScene + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/test/test/SecondView.swift b/test/test/SecondView.swift new file mode 100644 index 0000000..bd73bb5 --- /dev/null +++ b/test/test/SecondView.swift @@ -0,0 +1,18 @@ +// +// SecondView.swift +// test +// +// Created by 김수민 on 2023/10/11. +// + +import Foundation + +class SecondView: BaseView { + // MARK: - property + + // MARK: - BaseView + override func setViewHierarchy() { + self.backgroundColor = .orange + } + +} diff --git a/test/test/ViewController.swift b/test/test/ViewController.swift new file mode 100644 index 0000000..7d682f1 --- /dev/null +++ b/test/test/ViewController.swift @@ -0,0 +1,26 @@ +// +// ViewController.swift +// test +// +// Created by 김수민 on 2023/10/11. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + self.view = FirstView() + } +// +// override func prepare(for segue: UIStoryboardSegue, sender: Any?) { +// if segue.identifier == "YourSegueIdentifier" { +// if let destinationVC = segue.destination as? NextViewController { +// destinationVC.receivedText = "dd" +// } +// } +// } + +}