Skip to content
This repository was archived by the owner on Dec 27, 2020. It is now read-only.

Commit 40bf1ea

Browse files
authored
Products (#64)
* products * tests * badge * ci
1 parent c875b98 commit 40bf1ea

File tree

89 files changed

+49
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+49
-45
lines changed

.github/workflows/swift.yml renamed to .github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: ci
22

33
on: [push, pull_request]
44

Demo/SwiftUIExtensionsDemo WatchKit Extension/ContentView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import SwiftUI
2-
import SwiftUIExtensions
32

43
struct ContentView: View {
54
var body: some View {

Demo/SwiftUIExtensionsDemo WatchKit Extension/Layouts/ModularGrid/ModularGridView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SwiftUI
2-
import SwiftUIExtensions
2+
import Grid
33

44
struct ModularGridView: View {
55
@State var selection: Int = 0

Demo/SwiftUIExtensionsDemo WatchKit Extension/Layouts/StaggeredGrid/StaggeredGridView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SwiftUI
2-
import SwiftUIExtensions
2+
import Grid
33

44
struct StaggeredGridView: View {
55
var body: some View {

Demo/SwiftUIExtensionsDemo tvOS/Layouts/ModularGrid/ModularGridView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SwiftUI
2-
import SwiftUIExtensions
2+
import Grid
33

44
struct ModularGridView: View {
55
@State var selection: Int = 0

Demo/SwiftUIExtensionsDemo tvOS/Layouts/StaggeredGrid/StaggeredGridView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SwiftUI
2-
import SwiftUIExtensions
2+
import Grid
33

44
struct StaggeredGridView: View {
55
var body: some View {

Demo/SwiftUIExtensionsDemo.xcodeproj/project.pbxproj

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
FA2C327823A35EA1002DF6F7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FA2C327623A35EA1002DF6F7 /* LaunchScreen.storyboard */; };
1818
FA2C328123A35F58002DF6F7 /* StaggeredGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2C328023A35F58002DF6F7 /* StaggeredGridView.swift */; };
1919
FA2C328323A35F73002DF6F7 /* ModularGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2C328223A35F73002DF6F7 /* ModularGridView.swift */; };
20-
FA2C328523A35FD2002DF6F7 /* SwiftUIExtensions in Frameworks */ = {isa = PBXBuildFile; productRef = FA2C328423A35FD2002DF6F7 /* SwiftUIExtensions */; };
2120
FA2C328623A35FE6002DF6F7 /* Color+Random.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA37C458239DE7330037BFE3 /* Color+Random.swift */; };
2221
FA2C328723A35FE6002DF6F7 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA37C459239DE7330037BFE3 /* Item.swift */; };
2322
FA2C328823A35FE6002DF6F7 /* Card.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA37C45B239DE7330037BFE3 /* Card.swift */; };
2423
FA2C328923A35FE6002DF6F7 /* SharedAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FA37C45A239DE7330037BFE3 /* SharedAssets.xcassets */; };
25-
FA2C328C23A36DB5002DF6F7 /* SwiftUIExtensions in Frameworks */ = {isa = PBXBuildFile; productRef = FA2C328B23A36DB5002DF6F7 /* SwiftUIExtensions */; };
2624
FA2C329123A3704B002DF6F7 /* PatternsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2C328E23A3704B002DF6F7 /* PatternsView.swift */; };
2725
FA2C329223A3704B002DF6F7 /* RegularPolygonsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2C328F23A3704B002DF6F7 /* RegularPolygonsView.swift */; };
2826
FA2C329323A3704B002DF6F7 /* LinesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2C329023A3704B002DF6F7 /* LinesView.swift */; };
@@ -59,6 +57,9 @@
5957
FA37C485239DEB2C0037BFE3 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA37C459239DE7330037BFE3 /* Item.swift */; };
6058
FA37C486239DEB2C0037BFE3 /* Card.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA37C45B239DE7330037BFE3 /* Card.swift */; };
6159
FA37C487239DEB2C0037BFE3 /* SharedAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FA37C45A239DE7330037BFE3 /* SharedAssets.xcassets */; };
60+
FA4AB23423B96F61007B0422 /* SwiftUIExtensions in Frameworks */ = {isa = PBXBuildFile; productRef = FA4AB23323B96F61007B0422 /* SwiftUIExtensions */; };
61+
FA90447823B975620090B6DA /* Grid in Frameworks */ = {isa = PBXBuildFile; productRef = FA90447723B975620090B6DA /* Grid */; };
62+
FA90447A23B975CA0090B6DA /* Grid in Frameworks */ = {isa = PBXBuildFile; productRef = FA90447923B975CA0090B6DA /* Grid */; };
6263
FAB94A0823A37B7500EBEB8C /* ChartsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB94A0723A37B7500EBEB8C /* ChartsView.swift */; };
6364
FAB94A1323A384BA00EBEB8C /* HalfCapsule.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB94A1123A384B900EBEB8C /* HalfCapsule.swift */; };
6465
FAB94A1423A384BA00EBEB8C /* HalfCapsule.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB94A1123A384B900EBEB8C /* HalfCapsule.swift */; };
@@ -78,7 +79,6 @@
7879
FAD4B57323A35A2800308E28 /* NotificationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAD4B57223A35A2800308E28 /* NotificationView.swift */; };
7980
FAD4B57523A35A2900308E28 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FAD4B57423A35A2900308E28 /* Assets.xcassets */; };
8081
FAD4B57823A35A2900308E28 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FAD4B57723A35A2900308E28 /* Preview Assets.xcassets */; };
81-
FAD4B58723A35BCA00308E28 /* SwiftUIExtensions in Frameworks */ = {isa = PBXBuildFile; productRef = FAD4B58623A35BCA00308E28 /* SwiftUIExtensions */; };
8282
FAD4B58C23A35C8300308E28 /* ModularGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAD4B58B23A35C8300308E28 /* ModularGridView.swift */; };
8383
FAD4B58E23A35C9500308E28 /* StaggeredGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAD4B58D23A35C9500308E28 /* StaggeredGridView.swift */; };
8484
FAD4B58F23A35CC400308E28 /* Color+Random.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA37C458239DE7330037BFE3 /* Color+Random.swift */; };
@@ -208,15 +208,15 @@
208208
isa = PBXFrameworksBuildPhase;
209209
buildActionMask = 2147483647;
210210
files = (
211-
FA2C328523A35FD2002DF6F7 /* SwiftUIExtensions in Frameworks */,
211+
FA90447A23B975CA0090B6DA /* Grid in Frameworks */,
212212
);
213213
runOnlyForDeploymentPostprocessing = 0;
214214
};
215215
FA37C430239DE2560037BFE3 /* Frameworks */ = {
216216
isa = PBXFrameworksBuildPhase;
217217
buildActionMask = 2147483647;
218218
files = (
219-
FA2C328C23A36DB5002DF6F7 /* SwiftUIExtensions in Frameworks */,
219+
FA4AB23423B96F61007B0422 /* SwiftUIExtensions in Frameworks */,
220220
FA37C455239DE6B60037BFE3 /* SwiftUIExtensions in Frameworks */,
221221
);
222222
runOnlyForDeploymentPostprocessing = 0;
@@ -233,7 +233,7 @@
233233
isa = PBXFrameworksBuildPhase;
234234
buildActionMask = 2147483647;
235235
files = (
236-
FAD4B58723A35BCA00308E28 /* SwiftUIExtensions in Frameworks */,
236+
FA90447823B975620090B6DA /* Grid in Frameworks */,
237237
);
238238
runOnlyForDeploymentPostprocessing = 0;
239239
};
@@ -590,7 +590,7 @@
590590
);
591591
name = "SwiftUIExtensionsDemo tvOS";
592592
packageProductDependencies = (
593-
FA2C328423A35FD2002DF6F7 /* SwiftUIExtensions */,
593+
FA90447923B975CA0090B6DA /* Grid */,
594594
);
595595
productName = "SwiftUIExtensionsDemo tvOS";
596596
productReference = FA2C326B23A35EA0002DF6F7 /* SwiftUIExtensionsDemo tvOS.app */;
@@ -611,7 +611,7 @@
611611
name = "SwiftUIExtensionsDemo iOS";
612612
packageProductDependencies = (
613613
FA37C454239DE6B60037BFE3 /* SwiftUIExtensions */,
614-
FA2C328B23A36DB5002DF6F7 /* SwiftUIExtensions */,
614+
FA4AB23323B96F61007B0422 /* SwiftUIExtensions */,
615615
);
616616
productName = "SwiftUIExtensionsDemo iOS";
617617
productReference = FA37C433239DE2560037BFE3 /* SwiftUIExtensionsDemo iOS.app */;
@@ -685,7 +685,7 @@
685685
);
686686
name = "SwiftUIExtensionsDemo WatchKit Extension";
687687
packageProductDependencies = (
688-
FAD4B58623A35BCA00308E28 /* SwiftUIExtensions */,
688+
FA90447723B975620090B6DA /* Grid */,
689689
);
690690
productName = "SwiftUIExtensionsDemo WatchKit Extension";
691691
productReference = FAD4B56523A35A2800308E28 /* SwiftUIExtensionsDemo WatchKit Extension.appex */;
@@ -730,7 +730,7 @@
730730
);
731731
mainGroup = FA800E28239DE09A005D2211;
732732
packageReferences = (
733-
FA2C328A23A36DB5002DF6F7 /* XCRemoteSwiftPackageReference "SwiftUIExtensions" */,
733+
FA4AB23223B96F61007B0422 /* XCRemoteSwiftPackageReference "swiftui-extensions" */,
734734
);
735735
productRefGroup = FA37C434239DE2560037BFE3 /* Products */;
736736
projectDirPath = "";
@@ -1710,9 +1710,9 @@
17101710
/* End XCConfigurationList section */
17111711

17121712
/* Begin XCRemoteSwiftPackageReference section */
1713-
FA2C328A23A36DB5002DF6F7 /* XCRemoteSwiftPackageReference "SwiftUIExtensions" */ = {
1713+
FA4AB23223B96F61007B0422 /* XCRemoteSwiftPackageReference "swiftui-extensions" */ = {
17141714
isa = XCRemoteSwiftPackageReference;
1715-
repositoryURL = "[email protected]:SwiftExtensions/SwiftUIExtensions.git";
1715+
repositoryURL = "[email protected]:swift-extensions/swiftui-extensions.git";
17161716
requirement = {
17171717
branch = master;
17181718
kind = branch;
@@ -1721,26 +1721,26 @@
17211721
/* End XCRemoteSwiftPackageReference section */
17221722

17231723
/* Begin XCSwiftPackageProductDependency section */
1724-
FA2C328423A35FD2002DF6F7 /* SwiftUIExtensions */ = {
1724+
FA37C454239DE6B60037BFE3 /* SwiftUIExtensions */ = {
17251725
isa = XCSwiftPackageProductDependency;
17261726
productName = SwiftUIExtensions;
17271727
};
1728-
FA2C328B23A36DB5002DF6F7 /* SwiftUIExtensions */ = {
1728+
FA37C477239DE9A50037BFE3 /* SwiftUIExtensions */ = {
17291729
isa = XCSwiftPackageProductDependency;
1730-
package = FA2C328A23A36DB5002DF6F7 /* XCRemoteSwiftPackageReference "SwiftUIExtensions" */;
17311730
productName = SwiftUIExtensions;
17321731
};
1733-
FA37C454239DE6B60037BFE3 /* SwiftUIExtensions */ = {
1732+
FA4AB23323B96F61007B0422 /* SwiftUIExtensions */ = {
17341733
isa = XCSwiftPackageProductDependency;
1734+
package = FA4AB23223B96F61007B0422 /* XCRemoteSwiftPackageReference "swiftui-extensions" */;
17351735
productName = SwiftUIExtensions;
17361736
};
1737-
FA37C477239DE9A50037BFE3 /* SwiftUIExtensions */ = {
1737+
FA90447723B975620090B6DA /* Grid */ = {
17381738
isa = XCSwiftPackageProductDependency;
1739-
productName = SwiftUIExtensions;
1739+
productName = Grid;
17401740
};
1741-
FAD4B58623A35BCA00308E28 /* SwiftUIExtensions */ = {
1741+
FA90447923B975CA0090B6DA /* Grid */ = {
17421742
isa = XCSwiftPackageProductDependency;
1743-
productName = SwiftUIExtensions;
1743+
productName = Grid;
17441744
};
17451745
/* End XCSwiftPackageProductDependency section */
17461746
};

Package.swift

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,23 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "SwiftUIExtensions",
7+
name: "swiftui-extensions",
88
platforms: [
99
.iOS(.v13), .macOS(.v10_15), .watchOS(.v6), .tvOS(.v13)
1010
],
1111
products: [
12-
.library(
13-
name: "SwiftUIExtensions",
14-
targets: ["SwiftUIExtensions"]),
12+
.library(name: "SwiftUIExtensions", targets: ["SwiftUIExtensions"]),
13+
.library(name: "Grid", targets: ["Grid"]),
14+
.library(name: "Sliders", targets: ["Sliders"]),
15+
.library(name: "Shapes", targets: ["Shapes"]),
16+
.library(name: "Chart", targets: ["Chart"]),
1517
],
1618
targets: [
17-
.target(
18-
name: "SwiftUIExtensions",
19-
dependencies: [],
20-
exclude: ["Demo", "Resources"]
21-
),
22-
.testTarget(
23-
name: "SwiftUIExtensionsTests",
24-
dependencies: ["SwiftUIExtensions"]
25-
)
19+
.target(name: "SwiftUIExtensions", dependencies: ["Grid", "Sliders", "Shapes", "Chart"]),
20+
.target(name: "Grid", dependencies: []),
21+
.target(name: "Sliders", dependencies: []),
22+
.target(name: "Shapes", dependencies: []),
23+
.target(name: "Chart", dependencies: ["Shapes"]),
24+
.testTarget(name: "SwiftUIExtensionsTests", dependencies: ["SwiftUIExtensions"])
2625
]
2726
)

README.md

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)