attachedMode(of:)
Returns mode of an attached key without retriving value.
Declaration
func attachedMode(of keyPath: KeyPath<Keys.Type, CVAttachmentKeyDefinitionWithDefault<some CVAttachmentModePreference, some CVAttachmentValueRepresentable & Equatable & Sendable>>) -> CVAttachmentMode?Discussion
This function can be used to check for the presence of a specific key without converting it’s value. Returns nil if the key is not attached.