StructureFoundation5.9.0
AttributedSubstring
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
@dynamicMemberLookup struct AttributedSubstring
Citizens in Foundation
Conformances
protocol AttributedStringAttributeMutation
protocol AttributedStringProtocol
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
init(
) var base: AttributedString
var characters: AttributedString.CharacterView
var description: String
var endIndex: AttributedString.Index
var runs: AttributedString.Runs
var startIndex: AttributedString.Index
var unicodeScalars: AttributedString.UnicodeScalarView
subscript<K>(K
.Type) -> K.Value? subscript<R>(R
) -> AttributedSubstring subscript<K>(dynamicMember _: KeyPath<AttributeDynamicLookup, K>
) -> K.Value? subscript<S>(dynamicMember _: KeyPath<AttributeScopes, S.Type>
) -> ScopedAttributeContainer<S> static func == (AttributedSubstring, AttributedSubstring
) -> Bool func mergeAttributes(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy
) func replaceAttributes(AttributeContainer, with: AttributeContainer
) func setAttributes(AttributeContainer
)
Features
var halfWidthCornerQuoted: String
static func != (Self, Self
) -> Bool static func == <RHS>(Self, RHS
) -> Bool func hash(into: inout Hasher
) func index(AttributedString
.Index, offsetByCharacters: Int) -> AttributedString.Index func index(AttributedString
.Index, offsetByRuns: Int) -> AttributedString.Index func index(AttributedString
.Index, offsetByUnicodeScalars: Int) -> AttributedString.Index func index(afterCharacter: AttributedString.Index
) -> AttributedString.Index func index(afterRun: AttributedString.Index
) -> AttributedString.Index func index(afterUnicodeScalar: AttributedString.Index
) -> AttributedString.Index func index(beforeCharacter: AttributedString.Index
) -> AttributedString.Index func index(beforeRun: AttributedString.Index
) -> AttributedString.Index func index(beforeUnicodeScalar: AttributedString.Index
) -> AttributedString.Index func mergingAttributes(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy
) -> AttributedString func range<T>(of: T, options: String.CompareOptions, locale: Locale?
) -> Range<AttributedString.Index>? func replacingAttributes(AttributeContainer, with: AttributeContainer
) -> AttributedString func settingAttributes(AttributeContainer
) -> AttributedString