Skip to content

Commit 2a7f6c9

Browse files
remove components preview, colors and app icons
1 parent f20abe2 commit 2a7f6c9

17 files changed

+4
-659
lines changed

App/ComponentsKitApp/ComponentsKitApp/Assets.xcassets/AccentColor.colorset/Contents.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
{
22
"colors" : [
33
{
4-
"color" : {
5-
"color-space" : "srgb",
6-
"components" : {
7-
"alpha" : "1.000",
8-
"blue" : "0xF8",
9-
"green" : "0x84",
10-
"red" : "0x36"
11-
}
12-
},
134
"idiom" : "universal"
145
},
156
{
@@ -19,15 +10,6 @@
1910
"value" : "dark"
2011
}
2112
],
22-
"color" : {
23-
"color-space" : "srgb",
24-
"components" : {
25-
"alpha" : "1.000",
26-
"blue" : "0xDB",
27-
"green" : "0x58",
28-
"red" : "0x00"
29-
}
30-
},
3113
"idiom" : "universal"
3214
}
3315
],

App/ComponentsKitApp/ComponentsKitApp/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"images" : [
33
{
4-
"filename" : "app_icon_light.png",
54
"idiom" : "universal",
65
"platform" : "ios",
76
"size" : "1024x1024"
@@ -13,7 +12,6 @@
1312
"value" : "dark"
1413
}
1514
],
16-
"filename" : "app_icon_dark.png",
1715
"idiom" : "universal",
1816
"platform" : "ios",
1917
"size" : "1024x1024"
@@ -25,7 +23,6 @@
2523
"value" : "tinted"
2624
}
2725
],
28-
"filename" : "app_icon_tinted.png",
2926
"idiom" : "universal",
3027
"platform" : "ios",
3128
"size" : "1024x1024"

App/ComponentsKitApp/ComponentsKitApp/Core/App.swift

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,74 +5,23 @@ struct App: View {
55
var body: some View {
66
NavigationStack {
77
List {
8-
Section {
9-
Text("Discover more information about **ComponentsKit** on the website.")
10-
SUButton(
11-
model: .init {
12-
$0.title = "Open Website"
13-
$0.isFullWidth = true
14-
},
15-
action: {
16-
guard let url = URL(string: "https://componentskit.io") else { return }
17-
UIApplication.shared.open(url)
18-
}
19-
)
20-
}
21-
22-
Section("Components") {
23-
NavigationLinkWithTitle("Button") {
24-
ButtonPreview()
25-
}
26-
NavigationLinkWithTitle("Checkbox") {
27-
CheckboxPreview()
28-
}
29-
NavigationLinkWithTitle("Input Field") {
30-
InputFieldPreview()
31-
}
32-
NavigationLinkWithTitle("Loading") {
33-
LoadingPreview()
34-
}
35-
NavigationLinkWithTitle("Segmented Control") {
36-
SegmentedControlPreview()
37-
}
38-
}
39-
40-
Section("Demos") {
41-
NavigationLink("SwiftUI Login") {
8+
Section("Login") {
9+
NavigationLink("SwiftUI") {
4210
SwiftUILogin()
4311
}
44-
NavigationLink("UIKit Login") {
12+
NavigationLink("UIKit") {
4513
UIViewControllerRepresenting {
4614
UIKitLogin()
4715
}
4816
}
4917
}
5018
}
51-
.navigationTitle("ComponentsKit")
19+
.navigationTitle("Examples")
5220
.navigationBarTitleDisplayMode(.inline)
5321
}
5422
}
5523
}
5624

57-
// MARK: - Helper
58-
59-
private struct NavigationLinkWithTitle<Destination: View>: View {
60-
let title: String
61-
@ViewBuilder let destination: () -> Destination
62-
63-
init(_ title: String, destination: @escaping () -> Destination) {
64-
self.title = title
65-
self.destination = destination
66-
}
67-
68-
var body: some View {
69-
NavigationLink(self.title) {
70-
self.destination()
71-
.navigationTitle(self.title)
72-
}
73-
}
74-
}
75-
7625
// MARK: - Preview
7726

7827
#Preview {

App/ComponentsKitApp/ComponentsKitApp/Core/AppDelegate.swift

Lines changed: 0 additions & 38 deletions
This file was deleted.

App/ComponentsKitApp/ComponentsKitApp/Core/Root.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import SwiftUI
22

33
@main
44
struct Root: SwiftUI.App {
5-
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
6-
75
var body: some Scene {
86
WindowGroup {
97
App()

App/ComponentsKitApp/ComponentsKitApp/Helpers/PreviewPickers.swift

Lines changed: 0 additions & 112 deletions
This file was deleted.

App/ComponentsKitApp/ComponentsKitApp/Helpers/PreviewWrapper.swift

Lines changed: 0 additions & 44 deletions
This file was deleted.

App/ComponentsKitApp/ComponentsKitApp/Helpers/UIViewRepresenting.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)