DefaultWindowSize.swift 282 B

12345678
  1. extension Scene {
  2. /// Sets the default size of windows controlled by this scene.
  3. ///
  4. /// Used when creating new window instances.
  5. public func defaultSize(width: Int, height: Int) -> some Scene {
  6. environment(\.defaultWindowSize, SIMD2(width, height))
  7. }
  8. }