HostingView

@MainActor
open class HostingView<Content> : UIView where Content : View

SwiftUI视图包装类

SwiftUIX

Accessor

  • Undocumented

    Declaration

    Swift

    @MainActor
    public var rootView: Content { get set }

Lifecycle

  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init(rootView: Content)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func willMove(toSuperview newSuperview: UIView?)
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func didMoveToSuperview()
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var frame: CGRect { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var bounds: CGRect { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var intrinsicContentSize: CGSize { get }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func sizeThatFits(_ size: CGSize) -> CGSize