Foundation · IOS API REFERENCE
AttributeScopes.FoundationAttributes.LinkAttribute
enum · iOS 15.0+ · SDK 27.1
@frozen enum LinkAttribute
A type for using a link as an attribute.
Members (4)
static · iOS 15.0+objectiveCValue
TypeScriptstatic objectiveCValue(value: string): _ObjectiveC_NSObject
Swift declarationstatic func objectiveCValue(for value: URL) throws -> NSObject
Returns an object for a specified URL value.
- Parameter value: A URL to produce an `NSObject` from.
- Returns: The object for the specified URL.
get · iOS 15.0+name
TypeScriptstatic get nameValue(): string
Swift declarationstatic var name: String { get set }
The name of the link attribute.
set · iOS 15.0+name
TypeScriptstatic set nameValue(value: string)
Swift declarationstatic var name: String { get set }
The name of the link attribute.
static · iOS 15.0+value
TypeScriptstatic value(object: _ObjectiveC_NSObject): string
Swift declarationstatic func value(for object: NSObject) throws -> URL
Returns the URL value of the specified object.
- Parameter object: An `NSObject` to retrieve a URL value from.
- Returns: A URL value.
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →