Specifies the display option for displaying the host component
Members (8)
get · iOS 16.0+
description
TypeScript
get description(): string
Swift declaration
var description: String { get }
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(describing:)`
initializer. This initializer works with any type, and uses the custom
`description` property for types that conform to
`CustomStringConvertible`:
struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `description` property.
Creates a display option to manipulate the subdomains of a host
- Parameters:
- subdomainsToOmit: specifies a set of subdomains to omit
- omitMultiLevelSubdomains: if `true`, multi-level subdomains
(more than two subdomains beyond the TLDs) will be omitted.
- component: the component to test for condition.
- requirements: the requirements for the component.
Creates a display option to manipulate the subdomains of a host
- Parameters:
- subdomainsToOmit: specifies a set of subdomains to omit
- omitMultiLevelSubdomains: if `true`, multi-level subdomains
(more than two subdomains beyond the TLDs) will be omitted.
get · iOS 16.0+
never
TypeScript
static get never(): URL_FormatStyle_HostDisplayOption
Swift declaration
static var never: URL.FormatStyle.HostDisplayOption { get }
Creates a display option to always omit the host.
get · iOS 16.0+
always
TypeScript
static get always(): URL_FormatStyle_HostDisplayOption
Swift declaration
static var always: URL.FormatStyle.HostDisplayOption { get }
Creates a display option to always display the host.