NativeView

Escape hatch to embed any UIKit view in a SkeleKit tree.
public class NativeView : Control

Constructors

Creates an owned UIKit view whenever the wrapper is realized.

The wrapper disposes each created view when it is unrealized. The factory must return a new view on every call.

public NativeView(
  Func<UIView> create)
ParameterSummary
Func<UIView> createCreates the UIKit view to embed.

Creates a wrapper that borrows an existing UIKit view.

The caller retains ownership; the wrapper removes the view from its hierarchy but never disposes it.

public NativeView(
  UIView view)
ParameterSummary
UIView viewThe caller-owned UIKit view to embed.