///
/// PresentationStyle.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

/// Represents the JS union `PresentationStyle`, backed by a C++ enum.
public typealias PresentationStyle = margelo.nitro.rncandle.PresentationStyle

extension PresentationStyle {
  /**
   * Get a PresentationStyle for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  public init?(fromString string: String) {
    switch string {
    case "sheet":
      self = .sheet
    case "fullScreen":
      self = .fullscreen
    default:
      return nil
    }
  }

  /**
   * Get the String value this PresentationStyle represents.
   */
  public var stringValue: String {
    switch self {
    case .sheet:
      return "sheet"
    case .fullscreen:
      return "fullScreen"
    }
  }
}
