SwiftstructStoreKit
SubscriptionPeriod
struct StoreKit.Product.SubscriptionPeriod
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 19
- func
static period(with: StoreKit.Product.SubscriptionPeriod.Unit, value: Int) -> StoreKit.Product.SubscriptionPeriod - var
static var everySixMonths: StoreKit.Product.SubscriptionPeriod { get } - var
static var everyThreeDays: StoreKit.Product.SubscriptionPeriod { get } - var
static var everyThreeMonths: StoreKit.Product.SubscriptionPeriod { get } - var
static var everyTwoMonths: StoreKit.Product.SubscriptionPeriod { get } - var
static var everyTwoWeeks: StoreKit.Product.SubscriptionPeriod { get } - var
static var monthly: StoreKit.Product.SubscriptionPeriod { get } - var
static var weekly: StoreKit.Product.SubscriptionPeriod { get } - var
static var yearly: StoreKit.Product.SubscriptionPeriod { get } - field
let unit: StoreKit.Product.SubscriptionPeriod.Unit+0x0 - field
let value: Int+0x8 - func
dateRange(referenceDate: Foundation.Date) -> Range<Foundation.Date> - func
formatted<A where A: Foundation.FormatStyle, A.FormatInput == Range<Foundation.Date>>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput - func
formatted<A where A: Foundation.FormatStyle, A.FormatInput == Duration>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput - init
init(from8601String: String) throws -> StoreKit.Product.SubscriptionPeriod - init
init(unit: StoreKit.Product.SubscriptionPeriod.Unit, value: Int) -> StoreKit.Product.SubscriptionPeriod - init
init(StoreKit.BackingValue) -> StoreKit.Product.SubscriptionPeriod? - var
var canonicalRepresentation: StoreKit.Product.SubscriptionPeriod { get } - var
var debugDescription: String { get }
Header
struct StoreKit.Product.SubscriptionPeriod { enum Unit { struct FormatStyle { let locale: Foundation.Locale func format(_: StoreKit.Product.SubscriptionPeriod.Unit) -> Swift.String func locale(_: Foundation.Locale) -> StoreKit.Product.SubscriptionPeriod.Unit.FormatStyle } case day case week case month case year var calendarComponent: Foundation.Calendar.Component { get } var debugDescription: Swift.String { get } var dynamicCalendarComponent: Foundation.Calendar.Component { get } var localizedDescription: Swift.String { get } func formatted<A>(_: A) -> A.FormatOutput where A: Foundation.FormatStyle, A.FormatInput == StoreKit.Product.SubscriptionPeriod.Unit static func < (_: StoreKit.Product.SubscriptionPeriod.Unit, _: StoreKit.Product.SubscriptionPeriod.Unit) -> Swift.Bool } let unit: StoreKit.Product.SubscriptionPeriod.Unit let value: Swift.Int init(from8601String: Swift.String) throws init(unit: StoreKit.Product.SubscriptionPeriod.Unit, value: Swift.Int) init?(_: StoreKit.BackingValue) var canonicalRepresentation: StoreKit.Product.SubscriptionPeriod { get } var debugDescription: Swift.String { get } func dateRange(referenceDate: Foundation.Date) -> Swift.Range<Foundation.Date> func formatted<A>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput where A: Foundation.FormatStyle, A.FormatInput == Swift.Range<Foundation.Date> func formatted<A>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput where A: Foundation.FormatStyle, A.FormatInput == Swift.Duration static var everySixMonths: StoreKit.Product.SubscriptionPeriod { get } static var everyThreeDays: StoreKit.Product.SubscriptionPeriod { get } static var everyThreeMonths: StoreKit.Product.SubscriptionPeriod { get } static var everyTwoMonths: StoreKit.Product.SubscriptionPeriod { get } static var everyTwoWeeks: StoreKit.Product.SubscriptionPeriod { get } static var monthly: StoreKit.Product.SubscriptionPeriod { get } static var weekly: StoreKit.Product.SubscriptionPeriod { get } static var yearly: StoreKit.Product.SubscriptionPeriod { get } static func period(with: StoreKit.Product.SubscriptionPeriod.Unit, value: Swift.Int) -> StoreKit.Product.SubscriptionPeriod }