1
0

Scene.swift 434 B

1234567891011
  1. /// Scenes wrap views and dictate how they are displayed (e.g. in a window or
  2. /// a menu bar).
  3. ///
  4. /// Scenes can also be a composition of multiple child scenes instead of
  5. /// wrapping a root view.
  6. ///
  7. /// Implementing scenes yourself is considered an advanced use-case.
  8. public protocol Scene {
  9. /// The node type used to manage this scene in the scene graph.
  10. associatedtype Node: SceneGraphNode where Node.NodeScene == Self
  11. }