Skip to content

Commit

Permalink
⚡ WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Aug 12, 2023
1 parent 7a44582 commit 7b891d6
Show file tree
Hide file tree
Showing 34 changed files with 347 additions and 1,465 deletions.
44 changes: 22 additions & 22 deletions Development/Demo/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

import Foundation
import MyUIKit
import StorybookUI
import SwiftUI
import StorybookKit
import SwiftUISupport

struct RootView: View {
Expand All @@ -38,27 +38,27 @@ struct RootView: View {
)
}

NavigationLink("Open classic") {
ViewControllerHost(
instantiated: {
let controller = StorybookViewController(book: myBook) {
$0.dismiss(animated: true, completion: nil)
}
return controller
}()
)
}

NavigationLink("Open filter") {
ViewControllerHost(
instantiated: {
let controller = StorybookFilterViewController(book: myBook) {
$0.dismiss(animated: true, completion: nil)
}
return controller
}()
)
}
// NavigationLink("Open classic") {
// ViewControllerHost(
// instantiated: {
// let controller = StorybookViewController(book: myBook) {
// $0.dismiss(animated: true, completion: nil)
// }
// return controller
// }()
// )
// }
//
// NavigationLink("Open filter") {
// ViewControllerHost(
// instantiated: {
// let controller = StorybookFilterViewController(book: myBook) {
// $0.dismiss(animated: true, completion: nil)
// }
// return controller
// }()
// )
// }

}
}
Expand Down
57 changes: 0 additions & 57 deletions Development/Demo/ViewController.swift

This file was deleted.

11 changes: 0 additions & 11 deletions Development/Storybook.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
/* Begin PBXBuildFile section */
4B0BDD7F2A87A4C800CF2633 /* StorybookKit in Frameworks */ = {isa = PBXBuildFile; productRef = 4B0BDD7E2A87A4C800CF2633 /* StorybookKit */; };
4B0BDD812A87A4C800CF2633 /* StorybookKitTextureSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 4B0BDD802A87A4C800CF2633 /* StorybookKitTextureSupport */; };
4B0BDD832A87A4C800CF2633 /* StorybookUI in Frameworks */ = {isa = PBXBuildFile; productRef = 4B0BDD822A87A4C800CF2633 /* StorybookUI */; };
4B0BDD852A87A4DA00CF2633 /* StorybookKit in Frameworks */ = {isa = PBXBuildFile; productRef = 4B0BDD842A87A4DA00CF2633 /* StorybookKit */; };
4B81F791246F34BE009C7602 /* DSLCheck.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B81F790246F34BE009C7602 /* DSLCheck.swift */; };
4BB03C0922267064006E9E49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BB03C0822267064006E9E49 /* AppDelegate.swift */; };
4BB03C0B22267064006E9E49 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BB03C0A22267064006E9E49 /* ViewController.swift */; };
4BB03C1022267065006E9E49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4BB03C0F22267065006E9E49 /* Assets.xcassets */; };
4BB03C1322267065006E9E49 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4BB03C1122267065006E9E49 /* LaunchScreen.storyboard */; };
4BB03C2A2226709D006E9E49 /* MyUIKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BB03C282226709D006E9E49 /* MyUIKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -57,7 +55,6 @@
4B81F790246F34BE009C7602 /* DSLCheck.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DSLCheck.swift; sourceTree = "<group>"; };
4BB03C0622267064006E9E49 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
4BB03C0822267064006E9E49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4BB03C0A22267064006E9E49 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
4BB03C0F22267065006E9E49 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4BB03C1222267065006E9E49 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4BB03C1422267065006E9E49 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -79,7 +76,6 @@
files = (
4BB655BA2A87B0C200F2E2D7 /* SwiftUISupport in Frameworks */,
4B0BDD812A87A4C800CF2633 /* StorybookKitTextureSupport in Frameworks */,
4B0BDD832A87A4C800CF2633 /* StorybookUI in Frameworks */,
4B0BDD7F2A87A4C800CF2633 /* StorybookKit in Frameworks */,
4BB03C2D2226709D006E9E49 /* MyUIKit.framework in Frameworks */,
);
Expand Down Expand Up @@ -107,7 +103,6 @@
isa = PBXGroup;
children = (
4BB03C0822267064006E9E49 /* AppDelegate.swift */,
4BB03C0A22267064006E9E49 /* ViewController.swift */,
4BB03C0F22267065006E9E49 /* Assets.xcassets */,
4BB03C1122267065006E9E49 /* LaunchScreen.storyboard */,
4BB03C1422267065006E9E49 /* Info.plist */,
Expand Down Expand Up @@ -193,7 +188,6 @@
packageProductDependencies = (
4B0BDD7E2A87A4C800CF2633 /* StorybookKit */,
4B0BDD802A87A4C800CF2633 /* StorybookKitTextureSupport */,
4B0BDD822A87A4C800CF2633 /* StorybookUI */,
4BB655B92A87B0C200F2E2D7 /* SwiftUISupport */,
);
productName = Demo;
Expand Down Expand Up @@ -288,7 +282,6 @@
buildActionMask = 2147483647;
files = (
4BB655B72A87B01000F2E2D7 /* RootView.swift in Sources */,
4BB03C0B22267064006E9E49 /* ViewController.swift in Sources */,
4BB03C0922267064006E9E49 /* AppDelegate.swift in Sources */,
4B81F791246F34BE009C7602 /* DSLCheck.swift in Sources */,
);
Expand Down Expand Up @@ -603,10 +596,6 @@
isa = XCSwiftPackageProductDependency;
productName = StorybookKitTextureSupport;
};
4B0BDD822A87A4C800CF2633 /* StorybookUI */ = {
isa = XCSwiftPackageProductDependency;
productName = StorybookUI;
};
4B0BDD842A87A4DA00CF2633 /* StorybookKit */ = {
isa = XCSwiftPackageProductDependency;
productName = StorybookKit;
Expand Down
40 changes: 0 additions & 40 deletions Sources/StorybookKit/BookViewPresentableType.swift

This file was deleted.

42 changes: 0 additions & 42 deletions Sources/StorybookKit/Compositions/BookForEach.swift

This file was deleted.

33 changes: 0 additions & 33 deletions Sources/StorybookKit/Compositions/BookGroup.swift

This file was deleted.

13 changes: 7 additions & 6 deletions Sources/StorybookKit/Compositions/BookPadding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,23 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import UIKit
import SwiftUI

public struct BookSpacer: BookView {

public func asTree() -> BookTree {
return .spacer(self)
}

public let height: CGFloat

public init(height: CGFloat) {
self.height = height
}

public var body: BookView {
public var bookBody: any BookView {
fatalError()
}

public var body: some View {
Spacer(minLength: 0)
.frame(height: height)
}

}
37 changes: 0 additions & 37 deletions Sources/StorybookKit/Compositions/BookScope.swift

This file was deleted.

Loading

0 comments on commit 7b891d6

Please sign in to comment.