From 3448c5def83cca3a0893d8f459d47b18b72112a9 Mon Sep 17 00:00:00 2001 From: tsuzukihashi Date: Wed, 26 Feb 2020 02:20:42 +0900 Subject: [PATCH] =?UTF-8?q?iOS=E3=81=AE=E3=83=8F=E3=82=99=E3=83=BC?= =?UTF-8?q?=E3=82=B7=E3=82=99=E3=83=A7=E3=83=B3=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/ContentView.swift | 1 + NeumorphismUI.xcodeproj/project.pbxproj | 29 ++++++++++++++++++- .../contents.xcworkspacedata | 2 +- Sources/Color+.swift | 1 + 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Demo/ContentView.swift b/Demo/ContentView.swift index bd6c7dc..b8c51ba 100644 --- a/Demo/ContentView.swift +++ b/Demo/ContentView.swift @@ -1,4 +1,5 @@ import SwiftUI +import NeumorphismUI struct ContentView: View { var body: some View { diff --git a/NeumorphismUI.xcodeproj/project.pbxproj b/NeumorphismUI.xcodeproj/project.pbxproj index b63b74b..1016b08 100644 --- a/NeumorphismUI.xcodeproj/project.pbxproj +++ b/NeumorphismUI.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 50; + objectVersion = 52; objects = { /* Begin PBXBuildFile section */ @@ -18,6 +18,7 @@ DAB7EA77240180D0005D4DF5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DAB7EA75240180D0005D4DF5 /* LaunchScreen.storyboard */; }; DAB9BD1E2404217800728215 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = DAB9BD1C2404217800728215 /* README.md */; }; DAB9BD202404218E00728215 /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = DAB9BD1F2404218E00728215 /* .gitignore */; }; + DABCFF2F24058E80007FE645 /* NeumorphismUI in Frameworks */ = {isa = PBXBuildFile; productRef = DABCFF2E24058E80007FE645 /* NeumorphismUI */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -54,6 +55,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + DABCFF2F24058E80007FE645 /* NeumorphismUI in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -173,6 +175,9 @@ dependencies = ( ); name = NeumorphismUI; + packageProductDependencies = ( + DABCFF2E24058E80007FE645 /* NeumorphismUI */, + ); productName = NeumorphismUI; productReference = DAB7EA1C24004173005D4DF5 /* NeumorphismUI.framework */; productType = "com.apple.product-type.framework"; @@ -243,6 +248,9 @@ Base, ); mainGroup = DAB7EA1224004173005D4DF5; + packageReferences = ( + DABCFF2D24058E80007FE645 /* XCRemoteSwiftPackageReference "NeumorphismUI" */, + ); productRefGroup = DAB7EA1D24004173005D4DF5 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -618,6 +626,25 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + DABCFF2D24058E80007FE645 /* XCRemoteSwiftPackageReference "NeumorphismUI" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/tsuzukihashi/NeumorphismUI.git"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 0.0.4; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + DABCFF2E24058E80007FE645 /* NeumorphismUI */ = { + isa = XCSwiftPackageProductDependency; + package = DABCFF2D24058E80007FE645 /* XCRemoteSwiftPackageReference "NeumorphismUI" */; + productName = NeumorphismUI; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = DAB7EA1324004173005D4DF5 /* Project object */; } diff --git a/NeumorphismUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/NeumorphismUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 5bd658e..919434a 100644 --- a/NeumorphismUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/NeumorphismUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:"> diff --git a/Sources/Color+.swift b/Sources/Color+.swift index f1d5c8a..e03f90b 100644 --- a/Sources/Color+.swift +++ b/Sources/Color+.swift @@ -1,5 +1,6 @@ import SwiftUI +@available(iOS 13.0, *) @available(OSX 10.15, *) public extension Color { init(hex: String, opacity: Double = 1.0) {