diff --git a/README.md b/README.md index 314383a..0132a3f 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ ZStack(alignment: .bottom){ ## Example Project -Check out the __neumorphic-ios-example__ XCode project to see how to build neumorphic UI and buttons. If you use the default shadow colors of Neumorphic, you can also get dark mode support for free. +Check out the __neumorphic-examples__ XCode project to see how to build neumorphic UI and buttons. If you use the default shadow colors of Neumorphic, you can also get dark mode support for free. ## Soft Button Style Customization diff --git a/neumorphic-ios-example/neumorphic-ios-example/AppDelegate.swift b/neumorphic-examples/ios-example/AppDelegate.swift similarity index 98% rename from neumorphic-ios-example/neumorphic-ios-example/AppDelegate.swift rename to neumorphic-examples/ios-example/AppDelegate.swift index c0033b9..c808e1a 100644 --- a/neumorphic-ios-example/neumorphic-ios-example/AppDelegate.swift +++ b/neumorphic-examples/ios-example/AppDelegate.swift @@ -1,6 +1,6 @@ // // AppDelegate.swift -// neumorphic-ios-example +// neumorphic-examples // // Created by Costa Chung on 2/3/2020. // Copyright © 2020 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/AppIcon.appiconset/Contents.json b/neumorphic-examples/ios-example/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/AppIcon.appiconset/Contents.json rename to neumorphic-examples/ios-example/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/neumorphic-ios-example/mac-example/Assets.xcassets/Contents.json b/neumorphic-examples/ios-example/Assets.xcassets/Contents.json similarity index 100% rename from neumorphic-ios-example/mac-example/Assets.xcassets/Contents.json rename to neumorphic-examples/ios-example/Assets.xcassets/Contents.json diff --git a/neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/redButtonDarkShadow.colorset/Contents.json b/neumorphic-examples/ios-example/Assets.xcassets/redButtonDarkShadow.colorset/Contents.json similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/redButtonDarkShadow.colorset/Contents.json rename to neumorphic-examples/ios-example/Assets.xcassets/redButtonDarkShadow.colorset/Contents.json diff --git a/neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/redButtonLightShadow.colorset/Contents.json b/neumorphic-examples/ios-example/Assets.xcassets/redButtonLightShadow.colorset/Contents.json similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/redButtonLightShadow.colorset/Contents.json rename to neumorphic-examples/ios-example/Assets.xcassets/redButtonLightShadow.colorset/Contents.json diff --git a/neumorphic-ios-example/neumorphic-ios-example/Base.lproj/LaunchScreen.storyboard b/neumorphic-examples/ios-example/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Base.lproj/LaunchScreen.storyboard rename to neumorphic-examples/ios-example/Base.lproj/LaunchScreen.storyboard diff --git a/neumorphic-ios-example/neumorphic-ios-example/ContentView.swift b/neumorphic-examples/ios-example/ContentView.swift similarity index 99% rename from neumorphic-ios-example/neumorphic-ios-example/ContentView.swift rename to neumorphic-examples/ios-example/ContentView.swift index 85afd81..942b180 100644 --- a/neumorphic-ios-example/neumorphic-ios-example/ContentView.swift +++ b/neumorphic-examples/ios-example/ContentView.swift @@ -1,6 +1,6 @@ // // ContentView.swift -// neumorphic-ios-example +// neumorphic-examples // // Created by Costa Chung on 2/3/2020. // Copyright © 2020 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/neumorphic-ios-example/Info.plist b/neumorphic-examples/ios-example/Info.plist similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Info.plist rename to neumorphic-examples/ios-example/Info.plist diff --git a/neumorphic-ios-example/neumorphic-ios-example/Preview Content/Preview Assets.xcassets/Contents.json b/neumorphic-examples/ios-example/Preview Content/Preview Assets.xcassets/Contents.json similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Preview Content/Preview Assets.xcassets/Contents.json rename to neumorphic-examples/ios-example/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/neumorphic-ios-example/neumorphic-ios-example/SceneDelegate.swift b/neumorphic-examples/ios-example/SceneDelegate.swift similarity index 99% rename from neumorphic-ios-example/neumorphic-ios-example/SceneDelegate.swift rename to neumorphic-examples/ios-example/SceneDelegate.swift index cc8fd87..6578634 100644 --- a/neumorphic-ios-example/neumorphic-ios-example/SceneDelegate.swift +++ b/neumorphic-examples/ios-example/SceneDelegate.swift @@ -1,6 +1,6 @@ // // SceneDelegate.swift -// neumorphic-ios-example +// neumorphic-examples // // Created by Costa Chung on 2/3/2020. // Copyright © 2020 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/neumorphic-ios-example/SoftButtonDemoView.swift b/neumorphic-examples/ios-example/SoftButtonDemoView.swift similarity index 99% rename from neumorphic-ios-example/neumorphic-ios-example/SoftButtonDemoView.swift rename to neumorphic-examples/ios-example/SoftButtonDemoView.swift index 6f53ad8..798926f 100644 --- a/neumorphic-ios-example/neumorphic-ios-example/SoftButtonDemoView.swift +++ b/neumorphic-examples/ios-example/SoftButtonDemoView.swift @@ -1,6 +1,6 @@ // // SoftButtonDemoView.swift -// neumorphic-ios-example +// neumorphic-examples // // Created by Costa Chung on 10/8/2020. // Copyright © 2020 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/neumorphic-ios-example/SoftSwitchToggleDemoView.swift b/neumorphic-examples/ios-example/SoftSwitchToggleDemoView.swift similarity index 99% rename from neumorphic-ios-example/neumorphic-ios-example/SoftSwitchToggleDemoView.swift rename to neumorphic-examples/ios-example/SoftSwitchToggleDemoView.swift index 2548dcf..fd2c899 100644 --- a/neumorphic-ios-example/neumorphic-ios-example/SoftSwitchToggleDemoView.swift +++ b/neumorphic-examples/ios-example/SoftSwitchToggleDemoView.swift @@ -1,6 +1,6 @@ // // SoftSwitchToggleDemoView.swift -// neumorphic-ios-example +// neumorphic-examples // // Created by Costa Chung on 12/12/2020. // Copyright © 2020 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/neumorphic-ios-example/SoftToggleDemoView.swift b/neumorphic-examples/ios-example/SoftToggleDemoView.swift similarity index 99% rename from neumorphic-ios-example/neumorphic-ios-example/SoftToggleDemoView.swift rename to neumorphic-examples/ios-example/SoftToggleDemoView.swift index f6686aa..88f1748 100644 --- a/neumorphic-ios-example/neumorphic-ios-example/SoftToggleDemoView.swift +++ b/neumorphic-examples/ios-example/SoftToggleDemoView.swift @@ -1,6 +1,6 @@ // // SoftToggleDemoView.swift -// neumorphic-ios-example +// neumorphic-examples // // Created by Costa Chung on 11/12/2020. // Copyright © 2020 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/mac-example/Assets.xcassets/AccentColor.colorset/Contents.json b/neumorphic-examples/mac-example/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from neumorphic-ios-example/mac-example/Assets.xcassets/AccentColor.colorset/Contents.json rename to neumorphic-examples/mac-example/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/neumorphic-ios-example/mac-example/Assets.xcassets/AppIcon.appiconset/Contents.json b/neumorphic-examples/mac-example/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from neumorphic-ios-example/mac-example/Assets.xcassets/AppIcon.appiconset/Contents.json rename to neumorphic-examples/mac-example/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/neumorphic-ios-example/mac-example/Preview Content/Preview Assets.xcassets/Contents.json b/neumorphic-examples/mac-example/Assets.xcassets/Contents.json similarity index 100% rename from neumorphic-ios-example/mac-example/Preview Content/Preview Assets.xcassets/Contents.json rename to neumorphic-examples/mac-example/Assets.xcassets/Contents.json diff --git a/neumorphic-ios-example/mac-example/ContentView.swift b/neumorphic-examples/mac-example/ContentView.swift similarity index 99% rename from neumorphic-ios-example/mac-example/ContentView.swift rename to neumorphic-examples/mac-example/ContentView.swift index a2867bc..cfd6ce0 100644 --- a/neumorphic-ios-example/mac-example/ContentView.swift +++ b/neumorphic-examples/mac-example/ContentView.swift @@ -1,6 +1,6 @@ // // ContentView.swift -// mac-example +// neumorphic-examples // // Created by Costa Chung on 14/2/2021. // Copyright © 2021 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/mac-example/Info.plist b/neumorphic-examples/mac-example/Info.plist similarity index 100% rename from neumorphic-ios-example/mac-example/Info.plist rename to neumorphic-examples/mac-example/Info.plist diff --git a/neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/Contents.json b/neumorphic-examples/mac-example/Preview Content/Preview Assets.xcassets/Contents.json similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example/Assets.xcassets/Contents.json rename to neumorphic-examples/mac-example/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/neumorphic-ios-example/mac-example/mac_example.entitlements b/neumorphic-examples/mac-example/mac_example.entitlements similarity index 100% rename from neumorphic-ios-example/mac-example/mac_example.entitlements rename to neumorphic-examples/mac-example/mac_example.entitlements diff --git a/neumorphic-ios-example/mac-example/mac_exampleApp.swift b/neumorphic-examples/mac-example/mac_exampleApp.swift similarity index 92% rename from neumorphic-ios-example/mac-example/mac_exampleApp.swift rename to neumorphic-examples/mac-example/mac_exampleApp.swift index 277afb7..e58f6a6 100644 --- a/neumorphic-ios-example/mac-example/mac_exampleApp.swift +++ b/neumorphic-examples/mac-example/mac_exampleApp.swift @@ -1,6 +1,6 @@ // // mac_exampleApp.swift -// mac-example +// neumorphic-examples // // Created by Costa Chung on 14/2/2021. // Copyright © 2021 Costa Chung. All rights reserved. diff --git a/neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.pbxproj b/neumorphic-examples/neumorphic-examples.xcodeproj/project.pbxproj similarity index 94% rename from neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.pbxproj rename to neumorphic-examples/neumorphic-examples.xcodeproj/project.pbxproj index 3918831..2e98e10 100644 --- a/neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.pbxproj +++ b/neumorphic-examples/neumorphic-examples.xcodeproj/project.pbxproj @@ -25,7 +25,7 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - AA1C8438240CDD090082F452 /* neumorphic-ios-example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "neumorphic-ios-example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + AA1C8438240CDD090082F452 /* ios-example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ios-example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; AA1C843B240CDD090082F452 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; AA1C843D240CDD090082F452 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; AA1C843F240CDD090082F452 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; @@ -70,7 +70,7 @@ isa = PBXGroup; children = ( AAB9DDA62480D03B0047A0DC /* neumorphic */, - AA1C843A240CDD090082F452 /* neumorphic-ios-example */, + AA1C843A240CDD090082F452 /* ios-example */, AA24DA5A25D8E2B2009C17C8 /* mac-example */, AA1C8439240CDD090082F452 /* Products */, AA1C844F240CDFC20082F452 /* Frameworks */, @@ -80,13 +80,13 @@ AA1C8439240CDD090082F452 /* Products */ = { isa = PBXGroup; children = ( - AA1C8438240CDD090082F452 /* neumorphic-ios-example.app */, + AA1C8438240CDD090082F452 /* ios-example.app */, AA24DA5925D8E2B2009C17C8 /* mac-example.app */, ); name = Products; sourceTree = ""; }; - AA1C843A240CDD090082F452 /* neumorphic-ios-example */ = { + AA1C843A240CDD090082F452 /* ios-example */ = { isa = PBXGroup; children = ( AA1C843B240CDD090082F452 /* AppDelegate.swift */, @@ -100,7 +100,7 @@ AA1C8449240CDD090082F452 /* Info.plist */, AA1C8443240CDD090082F452 /* Preview Content */, ); - path = "neumorphic-ios-example"; + path = "ios-example"; sourceTree = ""; }; AA1C8443240CDD090082F452 /* Preview Content */ = { @@ -142,9 +142,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - AA1C8437240CDD090082F452 /* neumorphic-ios-example */ = { + AA1C8437240CDD090082F452 /* ios-example */ = { isa = PBXNativeTarget; - buildConfigurationList = AA1C844C240CDD090082F452 /* Build configuration list for PBXNativeTarget "neumorphic-ios-example" */; + buildConfigurationList = AA1C844C240CDD090082F452 /* Build configuration list for PBXNativeTarget "ios-example" */; buildPhases = ( AA1C8434240CDD090082F452 /* Sources */, AA1C8435240CDD090082F452 /* Frameworks */, @@ -154,12 +154,12 @@ ); dependencies = ( ); - name = "neumorphic-ios-example"; + name = "ios-example"; packageProductDependencies = ( AAB9DDA72480D0500047A0DC /* Neumorphic */, ); productName = "neumorphic-ios-example"; - productReference = AA1C8438240CDD090082F452 /* neumorphic-ios-example.app */; + productReference = AA1C8438240CDD090082F452 /* ios-example.app */; productType = "com.apple.product-type.application"; }; AA24DA5825D8E2B2009C17C8 /* mac-example */ = { @@ -200,7 +200,7 @@ }; }; }; - buildConfigurationList = AA1C8433240CDD090082F452 /* Build configuration list for PBXProject "neumorphic-ios-example" */; + buildConfigurationList = AA1C8433240CDD090082F452 /* Build configuration list for PBXProject "neumorphic-examples" */; compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; @@ -213,7 +213,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - AA1C8437240CDD090082F452 /* neumorphic-ios-example */, + AA1C8437240CDD090082F452 /* ios-example */, AA24DA5825D8E2B2009C17C8 /* mac-example */, ); }; @@ -397,15 +397,15 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Manual; - DEVELOPMENT_ASSET_PATHS = "\"neumorphic-ios-example/Preview Content\""; + DEVELOPMENT_ASSET_PATHS = "\"ios-example/Preview Content\""; ENABLE_PREVIEWS = YES; FRAMEWORK_SEARCH_PATHS = ""; - INFOPLIST_FILE = "neumorphic-ios-example/Info.plist"; + INFOPLIST_FILE = "ios-example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "neumorphic-ios-example"; + PRODUCT_BUNDLE_IDENTIFIER = "neumorphic.ios-example"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -417,15 +417,15 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Manual; - DEVELOPMENT_ASSET_PATHS = "\"neumorphic-ios-example/Preview Content\""; + DEVELOPMENT_ASSET_PATHS = "\"ios-example/Preview Content\""; ENABLE_PREVIEWS = YES; FRAMEWORK_SEARCH_PATHS = ""; - INFOPLIST_FILE = "neumorphic-ios-example/Info.plist"; + INFOPLIST_FILE = "ios-example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "neumorphic-ios-example"; + PRODUCT_BUNDLE_IDENTIFIER = "neumorphic.ios-example"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -487,7 +487,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - AA1C8433240CDD090082F452 /* Build configuration list for PBXProject "neumorphic-ios-example" */ = { + AA1C8433240CDD090082F452 /* Build configuration list for PBXProject "neumorphic-examples" */ = { isa = XCConfigurationList; buildConfigurations = ( AA1C844A240CDD090082F452 /* Debug */, @@ -496,7 +496,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - AA1C844C240CDD090082F452 /* Build configuration list for PBXNativeTarget "neumorphic-ios-example" */ = { + AA1C844C240CDD090082F452 /* Build configuration list for PBXNativeTarget "ios-example" */ = { isa = XCConfigurationList; buildConfigurations = ( AA1C844D240CDD090082F452 /* Debug */, diff --git a/neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/neumorphic-examples/neumorphic-examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 77% rename from neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to neumorphic-examples/neumorphic-examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 9641405..919434a 100644 --- a/neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/neumorphic-examples/neumorphic-examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:"> diff --git a/neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/neumorphic-examples/neumorphic-examples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from neumorphic-ios-example/neumorphic-ios-example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to neumorphic-examples/neumorphic-examples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/neumorphic-examples/neumorphic-examples.xcodeproj/xcshareddata/xcschemes/ios-example.xcscheme b/neumorphic-examples/neumorphic-examples.xcodeproj/xcshareddata/xcschemes/ios-example.xcscheme new file mode 100644 index 0000000..c0e3189 --- /dev/null +++ b/neumorphic-examples/neumorphic-examples.xcodeproj/xcshareddata/xcschemes/ios-example.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/neumorphic-examples/neumorphic-examples.xcodeproj/xcshareddata/xcschemes/mac-example.xcscheme b/neumorphic-examples/neumorphic-examples.xcodeproj/xcshareddata/xcschemes/mac-example.xcscheme new file mode 100644 index 0000000..1174e47 --- /dev/null +++ b/neumorphic-examples/neumorphic-examples.xcodeproj/xcshareddata/xcschemes/mac-example.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +