SwiftstructFoundation
struct Foundation.PersonNameComponents.FormatStyle
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolFoundation.FormatStyle
- protocolFoundation.ParseableFormatStyle
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 10
- field
var locale: Foundation.Locale+0x8 - field
var style: Foundation.PersonNameComponents.FormatStyle.Style+0x0 - func
format(Foundation.PersonNameComponents) -> String - func
locale(Foundation.Locale) -> Foundation.PersonNameComponents.FormatStyle - init
init(style: Foundation.PersonNameComponents.FormatStyle.Style, locale: Foundation.Locale) -> Foundation.PersonNameComponents.FormatStyle - typealias
typealias FormatInput = Foundation.PersonNameComponents - typealias
typealias FormatOutput = Swift.String - typealias
typealias Strategy = Foundation.PersonNameComponents.ParseStrategy - var
var attributed: Foundation.PersonNameComponents.AttributedStyle { get } - var
var parseStrategy: Foundation.PersonNameComponents.ParseStrategy { get }
Header
struct Foundation.PersonNameComponents.FormatStyle { enum Style { case short case medium case long case abbreviated } enum CodingKeys { case style case locale } var style: Foundation.PersonNameComponents.FormatStyle.Style var locale: Foundation.Locale init(style: Foundation.PersonNameComponents.FormatStyle.Style, locale: Foundation.Locale) var attributed: Foundation.PersonNameComponents.AttributedStyle { get } var parseStrategy: Foundation.PersonNameComponents.ParseStrategy { get } func format(_: Foundation.PersonNameComponents) -> Swift.String func locale(_: Foundation.Locale) -> Foundation.PersonNameComponents.FormatStyle }