Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Patch
  • Loading branch information
muukii committed Nov 11, 2024
commit 9cf59c491d86be8b546b06d99cae2d08651e6c25
4 changes: 2 additions & 2 deletions Sources/SwiftUIHosting/SwiftUIHostingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open class SwiftUIHostingViewController<Content: View>: UIViewController {
_ function: StaticString = #function,
_ line: UInt = #line,
configuration: SwiftUIHostingConfiguration = .init(),
content: @escaping (Self) -> Content
@ViewBuilder content: @escaping (Self) -> Content
) {

self.configuration = configuration
Expand Down Expand Up @@ -72,7 +72,7 @@ open class AnySwiftUIHostingViewController: SwiftUIHostingViewController<AnyView
_ function: StaticString = #function,
_ line: UInt = #line,
configuration: SwiftUIHostingConfiguration = .init(),
content: @escaping (UIViewController) -> AnyViewContent
@ViewBuilder content: @escaping (UIViewController) -> AnyViewContent
) {
super.init(
name,
Expand Down