WindowInteractionBehavior.swift 385 B

12345678910111213141516
  1. /// The behavior for a window interaction.
  2. public enum WindowInteractionBehavior: Sendable {
  3. /// The automatic behavior.
  4. case automatic
  5. /// The disabled behavior.
  6. case disabled
  7. /// The enabled behavior.
  8. case enabled
  9. var isEnabled: Bool {
  10. switch self {
  11. case .automatic, .enabled: true
  12. case .disabled: false
  13. }
  14. }
  15. }