Skip to content

Commit

Permalink
SwiftUI based (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Aug 23, 2023
1 parent 5926ed7 commit 8985fa9
Show file tree
Hide file tree
Showing 74 changed files with 1,541 additions and 3,737 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ jobs:
xcode-version: "14.3"
- uses: actions/checkout@v2
- name: xcodebuild
run: xcodebuild -scheme StorybookKit -sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
build-storybook-ui:
runs-on: macos-13
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: "14.3"
- uses: actions/checkout@v2
- name: xcodebuild
run: xcodebuild -scheme StorybookUI -sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
run: xcodebuild -scheme StorybookKit -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
build-storybook-kit-texture-support:
runs-on: macos-13
steps:
Expand All @@ -29,4 +20,4 @@ jobs:
xcode-version: "14.3"
- uses: actions/checkout@v2
- name: xcodebuild
run: xcodebuild -scheme StorybookKitTextureSupport -sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
run: xcodebuild -scheme StorybookKitTextureSupport -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2'
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/StorybookKit.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StorybookKit"
BuildableName = "StorybookKit"
BlueprintName = "StorybookKit"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StorybookKit"
BuildableName = "StorybookKit"
BlueprintName = "StorybookKit"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/StorybookUI.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StorybookUI"
BuildableName = "StorybookUI"
BlueprintName = "StorybookUI"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StorybookUI"
BuildableName = "StorybookUI"
BlueprintName = "StorybookUI"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
11 changes: 10 additions & 1 deletion Development/Demo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@
// THE SOFTWARE.

import UIKit
import SwiftUI

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

let controller = UIHostingController(rootView: RootView())

let newWindow = UIWindow()
self.window = newWindow

newWindow.makeKeyAndVisible()
newWindow.rootViewController = controller

// Override point for customization after application launch.
window?.tintColor = .systemRed
return true
Expand Down
58 changes: 0 additions & 58 deletions Development/Demo/Base.lproj/Main.storyboard

This file was deleted.

116 changes: 0 additions & 116 deletions Development/Demo/DSLCheck.swift

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// THE SOFTWARE.

import Foundation
import UIKit

public final class MyComponent: UIView {

Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions Development/Demo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand Down
Loading

0 comments on commit 8985fa9

Please sign in to comment.