Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnEstropia committed Feb 19, 2024
1 parent 0e47a79 commit b729cb8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/StorybookKit/Internals/machOLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension Book {

static func findAllBookProviders() -> [any BookProvider.Type] {

let moduleName = ((Bundle.main.bundlePath as NSString).lastPathComponent as NSString).deletingPathExtension
let moduleName = Bundle.main.bundleURL.deletingPathExtension().lastPathComponent
guard !moduleName.isEmpty else {
return []
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/StorybookKit/Primitives/BookPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public struct BookPage: BookView, Identifiable {
private let line: UInt

public init<Destination: View>(
_ file: StaticString = #file,
_ file: StaticString = #fileID,
_ line: UInt = #line,
title: String,
@ViewBuilder destination: () -> Destination
Expand Down
2 changes: 1 addition & 1 deletion Sources/StorybookKit/Primitives/BookPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public struct BookPreview: BookView {
private var frameConstraint: FrameConstraint = .init()

public init(
_ file: StaticString = #file,
_ file: StaticString = #fileID,
_ line: UInt = #line,
title: String? = nil,
viewBlock: @escaping @MainActor (inout Context) -> UIView
Expand Down
2 changes: 1 addition & 1 deletion Sources/StorybookKitTextureSupport/BookNodePreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct BookNodePreview: BookView {
private var backing: BookPreview

public init(
_ file: StaticString = #file,
_ file: StaticString = #fileID,
_ line: UInt = #line,
title: String? = nil,
nodeBlock: @escaping @MainActor (inout BookPreview.Context) -> ASDisplayNode
Expand Down

0 comments on commit b729cb8

Please sign in to comment.