Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ open class UIHostingController<Content>: UIViewController where Content : View {
func _viewSafeAreaDidChange() {
_openSwiftUIUnimplementedWarning()
}

func didRender() {
_openSwiftUIUnimplementedWarning()
}
}

@available(macOS, unavailable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
// Status: Complete

#if os(iOS) || os(visionOS)
public import UIKit
import COpenSwiftUI

import UIKit
// MARK: - UIViewControllerProvider

protocol UIViewControllerProvider: AnyObject {
package protocol UIViewControllerProvider: AnyObject {
var uiViewController: UIViewController? { get }
}

extension UIViewControllerProvider {
var containingViewController: UIViewController? {
package var containingViewController: UIViewController? {
if let uiViewController {
return uiViewController
} else if let view = self as? UIView {
Expand All @@ -24,5 +26,4 @@ extension UIViewControllerProvider {
}
}
}

#endif
Loading
Loading