Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnEstropia committed Feb 20, 2024
1 parent ac1cec8 commit 1096efc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Development/Demo/MyBook.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import StorybookKit
import SwiftUISupport

@MainActor
let myBook2 = Book.init(
let myBook = Book.init(
title: "MyUI",
contents: {

Expand Down
27 changes: 9 additions & 18 deletions Development/Demo/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,18 @@ import SwiftUISupport
struct RootView: View {

var body: some View {
VStack {
StorybookDisplayRootView(
bookStore: .init(
book: .init(title: "Storybook Demo") {

// StorybookDisplayRootView(
// book: myBook
// )
myBook

// StorybookDisplayRootView(bookStore: .init(book: myBook2))

StorybookDisplayRootView(
bookStore: .init(
book: .init(title: "Storybook Demo") {

myBook2

Book(title: "#StorybookPage macro") {
Book.allStorybookPages()
.map({ $0.bookBody })
}
Book(title: "#StorybookPage macro") {
Book.allStorybookPages()
.map({ $0.bookBody })
}
)
}
)
}
)
}
}

0 comments on commit 1096efc

Please sign in to comment.