Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Apr 16, 2024
1 parent b1e1709 commit 82fac3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/StorybookKit/StorybookDisplayRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public struct StorybookDisplayRootView: View {
public init(bookStore: BookStore) {
self.book = .init(store: bookStore)
}

@MainActor
public init(book: any BookType) {
self.book = .init(store: .init(book: book))
}

public var body: some View {

Expand Down

0 comments on commit 82fac3c

Please sign in to comment.