Skip to content

Commit 8985fa9

Browse files
authored
SwiftUI based (#34)
1 parent 5926ed7 commit 8985fa9

File tree

74 files changed

+1541
-3737
lines changed

Some content is hidden

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

74 files changed

+1541
-3737
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ jobs:
1111
xcode-version: "14.3"
1212
- uses: actions/checkout@v2
1313
- name: xcodebuild
14-
run: xcodebuild -scheme StorybookKit -sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
15-
build-storybook-ui:
16-
runs-on: macos-13
17-
steps:
18-
- uses: maxim-lobanov/[email protected]
19-
with:
20-
xcode-version: "14.3"
21-
- uses: actions/checkout@v2
22-
- name: xcodebuild
23-
run: xcodebuild -scheme StorybookUI -sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
14+
run: xcodebuild -scheme StorybookKit -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
2415
build-storybook-kit-texture-support:
2516
runs-on: macos-13
2617
steps:
@@ -29,4 +20,4 @@ jobs:
2920
xcode-version: "14.3"
3021
- uses: actions/checkout@v2
3122
- name: xcodebuild
32-
run: xcodebuild -scheme StorybookKitTextureSupport -sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
23+
run: xcodebuild -scheme StorybookKitTextureSupport -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "StorybookKit"
18+
BuildableName = "StorybookKit"
19+
BlueprintName = "StorybookKit"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "StorybookKit"
53+
BuildableName = "StorybookKit"
54+
BlueprintName = "StorybookKit"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "StorybookUI"
18+
BuildableName = "StorybookUI"
19+
BlueprintName = "StorybookUI"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "StorybookUI"
53+
BuildableName = "StorybookUI"
54+
BlueprintName = "StorybookUI"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>

Development/Demo/AppDelegate.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,23 @@
2020
// THE SOFTWARE.
2121

2222
import UIKit
23+
import SwiftUI
2324

2425
@UIApplicationMain
2526
class AppDelegate: UIResponder, UIApplicationDelegate {
2627

2728
var window: UIWindow?
2829

29-
3030
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
31+
32+
let controller = UIHostingController(rootView: RootView())
33+
34+
let newWindow = UIWindow()
35+
self.window = newWindow
36+
37+
newWindow.makeKeyAndVisible()
38+
newWindow.rootViewController = controller
39+
3140
// Override point for customization after application launch.
3241
window?.tintColor = .systemRed
3342
return true

Development/Demo/Base.lproj/Main.storyboard

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

Development/Demo/DSLCheck.swift

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

Development/MyUIKit/Elements/MyComponent.swift renamed to Development/Demo/Elements/MyComponent.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// THE SOFTWARE.
2121

2222
import Foundation
23+
import UIKit
2324

2425
public final class MyComponent: UIView {
2526

0 commit comments

Comments
 (0)