ViewManager

@objcMembers public final class ViewManager: NSObject

Manages the set LayoutView instances that have been created.

This class is designed as a singleton instance, accessible via ViewManager.shared.

  • Shared instance.

    Declaration

    Swift

    public static let shared = ViewManager()
  • Dictionary that indexes weak LayoutView references based on their layout.uuid

    Declaration

    Swift

    public private(set) var views: NSMapTable<NSString, LayoutView> = NSMapTable.strongToWeakObjects()