Skip to content

Commit

Permalink
added carplay guide page & minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Archdoog committed Nov 26, 2024
1 parent cc5e595 commit 836cf32
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import SwiftUI
import UIKit

// swiftformat:disable all
extension UIHostingController where Content: View {
/// Create a SwiftUI view in a UIHosting controller with a closure init.
///
/// - Parameter content: The convent view builder.
convenience init<V>(@ViewBuilder content: () -> V) where V == Content {
convenience init(@ViewBuilder content: () -> Content) {
self.init(rootView: content())
}
}
// swiftformat:enable all

0 comments on commit 836cf32

Please sign in to comment.