Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Jan 31, 2025
1 parent 49e261d commit c4eb048
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
25 changes: 25 additions & 0 deletions Sources/StorybookKit/Storybook.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import SwiftUI

@available(iOS 17.0, *)
public struct Storybook: View {

public init() {

}

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

if let nodes = Book.allBookPreviews() {
Book(title: "#Preview macro") {
nodes
}
}

}
)
)
}
}
8 changes: 0 additions & 8 deletions Sources/StorybookKit/StorybookDisplayRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,3 @@ final class _ViewController<Content: View>: UIViewController {
}

}

#if DEBUG

#Preview {
BookActionHosting { BookAction(title: "Hello", action: { vc in }) }
}

#endif

0 comments on commit c4eb048

Please sign in to comment.