diff --git a/Development/Demo/MyBook.swift b/Development/Demo/MyBook.swift index c65580f..5b67cf6 100644 --- a/Development/Demo/MyBook.swift +++ b/Development/Demo/MyBook.swift @@ -24,7 +24,7 @@ import StorybookKit import SwiftUISupport @MainActor -let myBook2 = Book.init( +let myBook = Book.init( title: "MyUI", contents: { diff --git a/Development/Demo/RootView.swift b/Development/Demo/RootView.swift index 3625345..7ef8f23 100644 --- a/Development/Demo/RootView.swift +++ b/Development/Demo/RootView.swift @@ -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 }) } - ) + } ) - } + ) } }