One Logo Pool Ball
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

TypeScript
static objectiveCValue(value: string): _ObjectiveC_NSObject
Swift declaration
static 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

TypeScript
static get nameValue(): string
Swift declaration
static var name: String { get set }

The name of the link attribute.

set · iOS 15.0+

name

TypeScript
static set nameValue(value: string)
Swift declaration
static var name: String { get set }

The name of the link attribute.

static · iOS 15.0+

value

TypeScript
static value(object: _ObjectiveC_NSObject): string
Swift declaration
static 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 →