Skip to content

번역

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

STRUCT

ConfigurationName

Contents

swift
public struct ConfigurationName: ExpressibleByStringLiteral, Codable, Equatable, Sendable

A configuration name.

It has build-in support for debug and release configurations.

You can extend with your own configurations using a extension:

import ProjectDescription
extension ConfigurationName {
  static var beta: ConfigurationName {
      ConfigurationName("Beta")
  }
}

Properties

rawValue

swift
public var rawValue: String

The configuration name.

debug

swift
public static var debug: ConfigurationName

Returns a configuration named "Debug"

release

swift
public static var release: ConfigurationName

Returns a configuration named "Release"

Methods

init(stringLiteral:)

swift
public init(stringLiteral value: StringLiteralType)

Creates a configuration name with its name.

  • Parameter value: Configuration name.

Parameters

NameDescription
valueConfiguration name.

configuration(_:)

swift
public static func configuration(_ name: String) -> ConfigurationName

Returns a configuration name with its name.

  • Parameter name: Configuration name.
  • Returns: Initialized configuration name.

Parameters

NameDescription
nameConfiguration name.

Released under the MIT License.