From 579328d9685c303321d2e5a938a044cf2d95d4ba Mon Sep 17 00:00:00 2001 From: yukanamori Date: Sat, 9 Mar 2024 23:17:37 +0900 Subject: [PATCH] Remove example project --- Examples/Examples.xcodeproj/project.pbxproj | 369 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../AccentColor.colorset/Contents.json | 11 - .../AppIcon.appiconset/Contents.json | 13 - .../Examples/Assets.xcassets/Contents.json | 6 - Examples/Examples/ContentView.swift | 46 --- Examples/Examples/ExamplesApp.swift | 17 - .../Preview Assets.xcassets/Contents.json | 6 - 9 files changed, 483 deletions(-) delete mode 100644 Examples/Examples.xcodeproj/project.pbxproj delete mode 100644 Examples/Examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 Examples/Examples/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 Examples/Examples/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Examples/Examples/Assets.xcassets/Contents.json delete mode 100644 Examples/Examples/ContentView.swift delete mode 100644 Examples/Examples/ExamplesApp.swift delete mode 100644 Examples/Examples/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/Examples/Examples.xcodeproj/project.pbxproj b/Examples/Examples.xcodeproj/project.pbxproj deleted file mode 100644 index 629f867..0000000 --- a/Examples/Examples.xcodeproj/project.pbxproj +++ /dev/null @@ -1,369 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 56; - objects = { - -/* Begin PBXBuildFile section */ - 01769C522B9C39C300DEF42E /* ExamplesApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01769C512B9C39C300DEF42E /* ExamplesApp.swift */; }; - 01769C542B9C39C300DEF42E /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01769C532B9C39C300DEF42E /* ContentView.swift */; }; - 01769C562B9C39C400DEF42E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 01769C552B9C39C400DEF42E /* Assets.xcassets */; }; - 01769C592B9C39C400DEF42E /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 01769C582B9C39C400DEF42E /* Preview Assets.xcassets */; }; - 01769C622B9C3A1700DEF42E /* RandomPasswordGenerator in Frameworks */ = {isa = PBXBuildFile; productRef = 01769C612B9C3A1700DEF42E /* RandomPasswordGenerator */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 01769C4E2B9C39C300DEF42E /* Examples.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Examples.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 01769C512B9C39C300DEF42E /* ExamplesApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExamplesApp.swift; sourceTree = ""; }; - 01769C532B9C39C300DEF42E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - 01769C552B9C39C400DEF42E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 01769C582B9C39C400DEF42E /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 01769C5F2B9C39F800DEF42E /* RandomPasswordGenerator */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = RandomPasswordGenerator; path = ../..; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 01769C4B2B9C39C300DEF42E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 01769C622B9C3A1700DEF42E /* RandomPasswordGenerator in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 01769C452B9C39C300DEF42E = { - isa = PBXGroup; - children = ( - 01769C5F2B9C39F800DEF42E /* RandomPasswordGenerator */, - 01769C502B9C39C300DEF42E /* Examples */, - 01769C4F2B9C39C300DEF42E /* Products */, - 01769C602B9C3A1700DEF42E /* Frameworks */, - ); - sourceTree = ""; - }; - 01769C4F2B9C39C300DEF42E /* Products */ = { - isa = PBXGroup; - children = ( - 01769C4E2B9C39C300DEF42E /* Examples.app */, - ); - name = Products; - sourceTree = ""; - }; - 01769C502B9C39C300DEF42E /* Examples */ = { - isa = PBXGroup; - children = ( - 01769C512B9C39C300DEF42E /* ExamplesApp.swift */, - 01769C532B9C39C300DEF42E /* ContentView.swift */, - 01769C552B9C39C400DEF42E /* Assets.xcassets */, - 01769C572B9C39C400DEF42E /* Preview Content */, - ); - path = Examples; - sourceTree = ""; - }; - 01769C572B9C39C400DEF42E /* Preview Content */ = { - isa = PBXGroup; - children = ( - 01769C582B9C39C400DEF42E /* Preview Assets.xcassets */, - ); - path = "Preview Content"; - sourceTree = ""; - }; - 01769C602B9C3A1700DEF42E /* Frameworks */ = { - isa = PBXGroup; - children = ( - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 01769C4D2B9C39C300DEF42E /* Examples */ = { - isa = PBXNativeTarget; - buildConfigurationList = 01769C5C2B9C39C400DEF42E /* Build configuration list for PBXNativeTarget "Examples" */; - buildPhases = ( - 01769C4A2B9C39C300DEF42E /* Sources */, - 01769C4B2B9C39C300DEF42E /* Frameworks */, - 01769C4C2B9C39C300DEF42E /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Examples; - packageProductDependencies = ( - 01769C612B9C3A1700DEF42E /* RandomPasswordGenerator */, - ); - productName = Examples; - productReference = 01769C4E2B9C39C300DEF42E /* Examples.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 01769C462B9C39C300DEF42E /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1520; - LastUpgradeCheck = 1520; - TargetAttributes = { - 01769C4D2B9C39C300DEF42E = { - CreatedOnToolsVersion = 15.2; - }; - }; - }; - buildConfigurationList = 01769C492B9C39C300DEF42E /* Build configuration list for PBXProject "Examples" */; - compatibilityVersion = "Xcode 14.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 01769C452B9C39C300DEF42E; - productRefGroup = 01769C4F2B9C39C300DEF42E /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 01769C4D2B9C39C300DEF42E /* Examples */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 01769C4C2B9C39C300DEF42E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 01769C592B9C39C400DEF42E /* Preview Assets.xcassets in Resources */, - 01769C562B9C39C400DEF42E /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 01769C4A2B9C39C300DEF42E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 01769C542B9C39C300DEF42E /* ContentView.swift in Sources */, - 01769C522B9C39C300DEF42E /* ExamplesApp.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 01769C5A2B9C39C400DEF42E /* 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; - }; - 01769C5B2B9C39C400DEF42E /* 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; - }; - 01769C5D2B9C39C400DEF42E /* 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 = "\"Examples/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 = net.yukanamori.RandomPasswordGenerator.Examples; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 01769C5E2B9C39C400DEF42E /* 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 = "\"Examples/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 = net.yukanamori.RandomPasswordGenerator.Examples; - 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 */ - 01769C492B9C39C300DEF42E /* Build configuration list for PBXProject "Examples" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 01769C5A2B9C39C400DEF42E /* Debug */, - 01769C5B2B9C39C400DEF42E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 01769C5C2B9C39C400DEF42E /* Build configuration list for PBXNativeTarget "Examples" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 01769C5D2B9C39C400DEF42E /* Debug */, - 01769C5E2B9C39C400DEF42E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCSwiftPackageProductDependency section */ - 01769C612B9C3A1700DEF42E /* RandomPasswordGenerator */ = { - isa = XCSwiftPackageProductDependency; - productName = RandomPasswordGenerator; - }; -/* End XCSwiftPackageProductDependency section */ - }; - rootObject = 01769C462B9C39C300DEF42E /* Project object */; -} diff --git a/Examples/Examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/Examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/Examples/Examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/Examples/Examples/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/Examples/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb87897..0000000 --- a/Examples/Examples/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Examples/Examples/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/Examples/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 13613e3..0000000 --- a/Examples/Examples/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Examples/Examples/Assets.xcassets/Contents.json b/Examples/Examples/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/Examples/Examples/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Examples/Examples/ContentView.swift b/Examples/Examples/ContentView.swift deleted file mode 100644 index b96e1ce..0000000 --- a/Examples/Examples/ContentView.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// ContentView.swift -// Examples -// -// Created by Yu Kanamori on 2024/03/09. -// - -import SwiftUI -import RandomPasswordGenerator - -struct ContentView: View { - @State private var password: String = "" - @State private var errorMessage: String? - - var body: some View { - VStack { - Text(password) - .padding() - Button(action: generatePassword) { - Text("Generate Password") - } - if let errorMessage { - Text("Error: \(errorMessage)") - .foregroundColor(.red) - } - } - .onAppear(perform: generatePassword) - } - - func generatePassword() { - let generator = RandomPasswordGenerator(length: 10, - characterTypes: [.digits, .uppercase, .lowercase], - excludedCharacters: "0OIl1") - do { - password = try generator.generate() - errorMessage = nil - } catch { - print("パスワードの生成に失敗しました: \(error)") - errorMessage = error.localizedDescription - } - } -} - -#Preview { - ContentView() -} diff --git a/Examples/Examples/ExamplesApp.swift b/Examples/Examples/ExamplesApp.swift deleted file mode 100644 index 52dd494..0000000 --- a/Examples/Examples/ExamplesApp.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// ExamplesApp.swift -// Examples -// -// Created by Yu Kanamori on 2024/03/09. -// - -import SwiftUI - -@main -struct ExamplesApp: App { - var body: some Scene { - WindowGroup { - ContentView() - } - } -} diff --git a/Examples/Examples/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/Examples/Preview Content/Preview Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/Examples/Examples/Preview Content/Preview Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -}