Skip to content

번역

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

기여

STRUCT

PlatformCondition

Contents

swift
public struct PlatformCondition: Codable, Hashable, Equatable, Sendable

A condition applied to an "entity" allowing it to only be used in certain circumstances

Properties

platformFilters

swift
public let platformFilters: Set<PlatformFilter>

Methods

when(_:)

swift
public static func when(_ platformFilters: Set<PlatformFilter>) -> PlatformCondition?

Creates a condition using the specified set of filters.

  • Parameter platformFilters: filters to define which platforms this condition supports
  • Returns: a Condition with the given set of filters or nil if empty.

Parameters

NameDescription
platformFiltersfilters to define which platforms this condition supports

Released under the MIT License.