case content
case label
static func == (AccessibilityLabeledPairRole, ...
static func != (Self, Self) -> Bool
Equatable の実装
Hashable の実装
値
accessibilityValue<S>(S)
accessibilityValue(LocalizedStringKey)
accessibilityValue(Text)
ヒント
accessibilityHint(LocalizedStringKey)
accessibilityHint(Text)
accessibilityHint<S>(S)
アクション
accessibilityAction
(AccessibilityActionKind...)
accessibilityActions<Content>(()
accessibilityAction(named: Text, ()
accessibilityAction<S>(named: S, ()
accessibilityAction(named: LocalizedStringKey, ()
accessibilityAction<Label>(action: ()
accessibilityAdjustableAction ((AccessibilityAdjustmentDirection)
accessibilityScrollAction((Edge)
struct AccessibilityActionKind
アクションの種類を取得
アクションタイプの作成
アクションの比較
デフォルトの実装
enum AccessibilityAdjustmentDirection
調整方向の取得
調整方向の比較
Equatable の実装
func accessibilityActivationPoint(CGPoint)
func accessibilityActivationPoint(UnitPoint)
func accessibilityDirectTouch   Beta  
func accessibilityZoomAction)
struct AccessibilityDirectTouchOptions
struct AccessibilityZoomGestureAction
let direction: AccessibilityZoomGestureAction.Direction
let location: UnitPoint
let point: CGPoint
列挙型
enum Direction
カスタムコントロール
func accessibilityRepresentation<V>
func accessibilityRespondsToUserInteraction
カスタム説明の追加
accessibilityCustomContent(AccessibilityCustomContentKey)
accessibilityCustomContent(AccessibilityCustomContentKey)
accessibilityCustomContent<V>(LocalizedStringKey)
accessibilityCustomContent(Text, Text)
accessibilityCustomContent(LocalizedStringKey)
accessibilityCustomContent<V>(AccessibilityCustomContentKey)
accessibilityCustomContent(LocalizedStringKey)
ローターの作成
accessibilityRotor<Content>(LocalizedStringKey)
accessibilityRotor<Content>(Text, entries)
accessibilityRotor<L, Content>(L, entries)
accessibilityRotor<EntryModel, ID>(LocalizedStringKey
accessibilityRotor<EntryModel, ID>(Text
accessibilityRotor<L, EntryModel, ID>
accessibilityRotor<EntryModel>(LocalizedStringKey)
accessibilityRotor<EntryModel>(Text, entries)
accessibilityRotor<L, EntryModel>
accessibilityRotor(LocalizedStringKey)
accessibilityRotor(Text, textRanges)
accessibilityRotor<L>(L, textRanges)
システムローターの置き換え
accessibilityRotor<Content>
accessibilityRotor<EntryModel, ID>
accessibilityRotor<EntryModel>
accessibilityRotor(AccessibilitySystemRotor)
AccessibilitySystemRotor
テキストを反復処理
textFields: AccessibilitySystemRotor
boldText: AccessibilitySystemRotor
static var italicText: AccessibilitySystemRotor
static var underlineText: AccessibilitySystemRotor
static var misspelledWords: AccessibilitySystemRotor
見出しを繰り返し処理
static var headings: AccessibilitySystemRotor
static func headings(level: AccessibilityHeadingLevel)
リンクを繰り返し処理
static var links: AccessibilitySystemRotor
static func links(visited: Bool) -> AccessibilitySystemRotor
他の要素を繰り返し処理
static var images: AccessibilitySystemRotor
static var landmarks: AccessibilitySystemRotor
static var lists: AccessibilitySystemRotor
static var tables: AccessibilitySystemRotor
ローターの構成
accessibilityRotorEntry<ID>(id: ID, in)
accessibilityLinkedGroup<ID>(id: ID, in)
accessibilitySortPriority(Double)
AccessibilityFocusState
init<T>()
init()
init<T>(for: AccessibilityTechnologies)
init(for: AccessibilityTechnologies)
AccessibilityTechnologies
テクノロジ型の取得
switchControl: AccessibilityTechnologies
voiceOver: AccessibilityTechnologies
テクノロジ型の作成
init()
AccessibilityFocusState
フォーカス状態の作成
init<T>()
init()
init<T>(for)
init(for)
状態の取得
var projectedValue: AccessibilityFocusState
var wrappedValue: Value
struct Binding
AccessibilityTraits
特性の取得
static let allowsDirectInteraction: AccessibilityTraits
static let causesPageTurn: AccessibilityTraits
static let isButton: AccessibilityTraits
static let isHeader: AccessibilityTraits
static let isImage: AccessibilityTraits
static let isKeyboardKey: AccessibilityTraits
static let isLink: AccessibilityTraits
static let isModal: AccessibilityTraits
static let isSearchField: AccessibilityTraits
static let isSelected: AccessibilityTraits
static let isStaticText: AccessibilityTraits
static let isSummaryElement: AccessibilityTraits
static let isToggle: AccessibilityTraits
static let playsSound: AccessibilityTraits
static let startsMediaSession: AccessibilityTraits
static let updatesFrequently: AccessibilityTraits
特性のコンテンツへの割り当て
func accessibilityAddTraits
func accessibilityRemoveTraits
同一性確認(Identity)
func accessibilityIdentifier(String)
色の管理
func accessibilityIgnoresInvertColors(Bool)
var accessibilityInvertColors: Bool
var accessibilityDifferentiateWithoutColor: Bool
内容の説明
func accessibilityTextContentType(AccessibilityTextContentType)
func accessibilityHeading(AccessibilityHeadingLevel)
enum AccessibilityHeadingLevel
見出しレベルの取得
case h1
case h2
case h3
case h4
case h5
case h6
case unspecified
struct AccessibilityTextContentType
内容の型の取得
static let console
static let fileSystem
static let messaging
static let narrative
static let plain
static let sourceCode
static let spreadsheet
static let wordProcessing
VoiceOver
func speechAdjustedPitch(Double)
func speechAlwaysIncludesPunctuation(Bool)
func speechAnnouncementsQueued(Bool)
func speechSpellsOutCharacters(Bool)
グラフ
func accessibilityChartDescriptor<R>(R)
AXChartDescriptorRepresentable
記述子の管理
func makeChartDescriptor() -> AXChartDescriptor
func updateChartDescriptor(AXChartDescriptor)
大きなコンテンツ
func accessibilityShowsLargeContentViewer()
func accessibilityShowsLargeContentViewer<V>
var accessibilityLargeContentViewerEnabled: Bool
クイックアクション
accessibilityQuickAction(style:content:)
accessibilityQuickAction(style:isActive:content:)
AccessibilityQuickActionStyle
組み込みのメニュースタイルを取得
static var outline
static var prompt
サポートする型
struct AccessibilityQuickActionOutlineStyle
struct AccessibilityQuickActionPromptStyle
struct AccessibilityAttachmentModifier
struct AccessibilityTechnologies
技術の型を取得
static var switchControl: AccessibilityTechnologies
static var voiceOver: AccessibilityTechnologies
技術の型の作成
init()
リンク可能要素の構成
accessibilityLinkedUIElements
accessibilityServesAsTitleForUIElements
accessibilityTitleUIElement
Accessible Navigation
ローターの作成
accessibilityRotor<Content>
accessibilityRotor<Content>(Text)
accessibilityRotor<L, Content>
AccessibilityRotorContent
サポートする型
var body: Self.Body
Body : AccessibilityRotorContent
AccessibilityRotorContentBuilder
ナビゲーションコンテンツの構築
buildBlock(_:)
buildBlock(_:_:)
buildBlock(_:_:_:)
buildBlock(_:_:_:_:)
buildBlock(_:_:_:_:_:)
buildBlock(_:_:_:_:_:_:)
buildBlock(_:_:_:_:_:_:_:)
buildBlock(_:_:_:_:_:_:_:_:)
buildBlock(_:_:_:_:_:_:_:_:_:)
buildBlock(_:_:_:_:_:_:_:_:_:_:)
buildIf
buildExpression
AccessibilityCustomContentKey
init(LocalizedStringKey)
init(Text, id: String)
init(LocalizedStringKey, id: String)
AccessibilityRotorEntry
ローターエントリの作成
init(LocalizedStringKey, textRange: Range<String.Index>, prepare: (() -> Void))
init<L>(L, textRange: Range<String.Index>, prepare: (() -> Void))
init(Text?, textRange: Range<String.Index>, prepare: (() -> Void))
識別子(ID)を使用したローターエントリの作成
init(LocalizedStringKey, id: ID, textRange: Range<String.Index>?, prepare: (() -> Void))
init<L>(L, id: ID, textRange: Range<String.Index>?, prepare: (() -> Void))
init(Text, id: ID, textRange: Range<String.Index>?, prepare: (() -> Void))
名前空間内に識別されたローターエントリを作成
init(LocalizedStringKey, id: ID, in: Namespace.ID, textRange: Range&lSttring.Index>?, prepare: (() -> Void))
init<L>(L, ID, in: Namespace.ID, textRange: Range<String.Index>?, prepare: (() -> Void))
init(Text, id: ID, in: Namespace.ID, textRange: Range<String.Index>?, prepare: (() -> Void))
コレクションからローターを作成
func accessibilityRotor<EntryModel, ID>(LocalizedStringKey, entries: [EntryModel], entryID: KeyPath<EntryModel, ID>, entryLabel: KeyPath<EntryModel, String>) -> some View
func accessibilityRotor<EntryModel, ID>(Text, entries: [EntryModel], entryID: KeyPath<EntryModel, ID>, entryLabel: KeyPath<EntryModel, String>) -> some View
func accessibilityRotor<L, EntryModel, ID>(L, entries: [EntryModel], entryID: KeyPath<EntryModel, ID>, entryLabel: KeyPath<EntryModel, String>) -> some View
ラベルでローターを作成
func accessibilityRotor<EntryModel>(LocalizedStringKey, entries: [EntryModel], entryLabel: KeyPath<EntryModel, String>) -> some View
func accessibilityRotor<EntryModel>(Text, entries: [EntryModel], entryLabel: KeyPath&lEtntryModel, String>) -> some View
func accessibilityRotor<L, EntryModel>(L, entries: [EntryModel], entryLabel: KeyPath<EntryModel, String>) -> some View
テキスト範囲のローターの作成
func accessibilityRotor(LocalizedStringKey, textRanges: [Range<String.Index>]) -> some View
func accessibilityRotor(Text, textRanges: [Range<String.Index>]) -> some View
func accessibilityRotor<L>(L, textRanges: [Range<String.Index>]) -> some View
システムローターの置き換え
func accessibilityRotor<Content>(AccessibilitySystemRotor, entries: () -> Content) -> some View
func accessibilityRotor<EntryModel, ID>(AccessibilitySystemRotor, entries: [EntryModel], entryID: KeyPath<EntryModel, ID>, entryLabel: KeyPath<EntryModel, String>) -> some View
func accessibilityRotor<EntryModel>(AccessibilitySystemRotor, entries: [EntryModel], entryLabel: KeyPath<EntryModel, String>) -> some View
func accessibilityRotor(AccessibilitySystemRotor, textRanges: [Range<String.Index>]) -> some View
struct AccessibilitySystemRotor
テキストを反復処理
ローターの構成
func accessibilityRotorEntry<ID>(id: ID, in: Namespace.ID) -> some View
func accessibilityLinkedGroup<ID>(id: ID, in: Namespace.ID) -> some View
func accessibilitySortPriority(Double) -> ModifiedContent<Self, AccessibilityAttachmentModifier>
AccessibilityAttachmentModifier
サポートする型
typealias Body
デフォルトの実装
ViewModifier の実装
インスタンスメソッド
リンク可能要素の構成
accessibilityLinkedUIElements
accessibilityServesAsTitleForUIElements
accessibilityTitleUIElement
アップルシリコン
Rosetta
ロゼッタ翻訳環境について
オーディオグラフ
  チャートデータをオーディオグラフとして表現
AXChart
アクセシビリティをサポート
var accessibilityChartDescriptor: AXChartDescriptor?
class AXChartDescriptor
チャートの作成
init(title: String?, summary: String?, xAxis: AXDataAxisDescriptor, yAxis: AXNumericDataAxisDescriptor?, additionalAxes: [AXDataAxisDescriptor], series: [AXDataSeriesDescriptor])
init(attributedTitle: NSAttributedString?, summary: String?, xAxis: AXDataAxisDescriptor, yAxis: AXNumericDataAxisDescriptor?, additionalAxes: [AXDataAxisDescriptor], series: [AXDataSeriesDescriptor])
チャートのタイトルの指定
var title: String?
var attributedTitle: NSAttributedString?
チャートの概要の指定
var summary: String?
座標軸の指定
var xAxis: AXDataAxisDescriptor
var yAxis: AXNumericDataAxisDescriptor?
var additionalAxes: [AXDataAxisDescriptor]
protocol AXDataAxisDescriptor
タイトルの指定
struct AttributeScopes.FoundationAttributes
let dateField: AttributeScopes.FoundationAttributes.DateFieldAttribute
enum AttributeScopes.FoundationAttributes.DateFieldAttribute
case amPM
case day
case dayOfYear
case era
case hour
case minute
case month
case quarter
case relatedGregorianYear
case second
case secondFraction
case timeZone
case weekOfMonth
case weekOfYear
case weekday
case weekdayOrdinal
case year
イニシャライザ
init(from: Decoder)
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func encode(to: Encoder)
func hash(into: inout Hasher)
演算子関数
static func != (AttributeScopes.FoundationAttributes.DateFieldAttribute.Field, AttributeScopes.FoundationAttributes.DateFieldAttribute.Field) -> Bool
static func == (AttributeScopes.FoundationAttributes.DateFieldAttribute.Field, AttributeScopes.FoundationAttributes.DateFieldAttribute.Field) -> Bool
言語属性の使用
let languageIdentifier: AttributeScopes.FoundationAttributes.LanguageIdentifierAttribute
enum AttributeScopes.FoundationAttributes.LanguageIdentifierAttribute
URL 属性の使用
let imageURL: AttributeScopes.FoundationAttributes.ImageURLAttribute
enum AttributeScopes.FoundationAttributes.ImageURLAttribute
let link: AttributeScopes.FoundationAttributes.LinkAttribute
enum AttributeScopes.FoundationAttributes.LinkAttribute
属性名と値へのアクセス
static var name: String
static func value(for: NSObject) -> URL
typealias AttributeScopes.FoundationAttributes.LinkAttribute.Value
static func objectiveCValue(for: URL) -> NSObject
typealias AttributeScopes.FoundationAttributes.LinkAttribute.ObjectiveCValue
コード化と復号化
static func decode(from: Decoder) -> URL
static func encode(URL, to: Encoder)
属性の説明
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static var runBoundaries: AttributedString.AttributeRunBoundaries?
提示意図属性の使用
let inlinePresentationIntent: AttributeScopes.FoundationAttributes.InlinePresentationIntentAttribute
enum AttributeScopes.FoundationAttributes.InlinePresentationIntentAttribute
struct InlinePresentationIntent
インラインで提示の意図の作成
let presentationIntent: AttributeScopes.FoundationAttributes.PresentationIntentAttribute
enum AttributeScopes.FoundationAttributes.PresentationIntentAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.InlinePresentationIntentAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> PresentationIntent
static func encode(PresentationIntent, to: Encoder)
struct PresentationIntent
代替説明属性の使用
let alternateDescription: AttributeScopes.FoundationAttributes.AlternateDescriptionAttribute
enum AttributeScopes.FoundationAttributes.AlternateDescriptionAttribute
文字列書式属性の使用
let replacementIndex: AttributeScopes.FoundationAttributes.ReplacementIndexAttribute
enum AttributeScopes.FoundationAttributes.ReplacementIndexAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.ReplacementIndexAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Int
static func encode(Int, to: Encoder)
文字列ローカライズ属性の使用
let localizedStringArgumentAttributes: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes
struct AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes
ローカライズ属性の取得
let localizedNumericArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedNumericArgumentAttribute
enum AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedNumericArgumentAttribute
属性付き文字列キープロパティの検査
static let name: String
enum AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedNumericArgumentAttribute.Value
let localizedDateArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateArgumentAttribute
enum AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateArgumentAttribute
let localizedDateIntervalArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateIntervalArgumentAttribute
enum AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateIntervalArgumentAttribute
let localizedURLArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedURLArgumentAttribute
enum AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedURLArgumentAttribute
enum AttributeScopes.FoundationAttributes.AlternateDescriptionAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.AlternateDescriptionAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> String
static func encode(String, to: Encoder)
文字列書式属性の使用
let replacementIndex: AttributeScopes.FoundationAttributes.ReplacementIndexAttribute
enum AttributeScopes.FoundationAttributes.ReplacementIndexAttribute
文字列ローカライズ属性の使用
let localizedStringArgumentAttributes: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes
struct AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes
自動文法一致属性の使用
let inflect: AttributeScopes.FoundationAttributes.InflectionRuleAttribute
enum AttributeScopes.FoundationAttributes.InflectionRuleAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.InflectionRuleAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let markdownName: String
static var markdownName: String
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> InflectionRule
static func decodeMarkdown(from: Decoder) -> InflectionRule
static func encode(InflectionRule, to: Encoder)
let agreementArgument: AttributeScopes.FoundationAttributes.AgreementArgumentAttribute
enum AttributeScopes.FoundationAttributes.AgreementArgumentAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.AgreementArgumentAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let markdownName: String
static var markdownName: String
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> InflectionRule
static func decodeMarkdown(from: Decoder) -> InflectionRule
static func encode(InflectionRule, to: Encoder)
enum AttributeScopes.FoundationAttributes.AgreementConceptAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.AgreementConceptAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let markdownName: String
static var markdownName: String
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Int
static func decodeMarkdown(from: Decoder) -> Int
static func encode(Int, to: Encoder)
let morphology: AttributeScopes.FoundationAttributes.MorphologyAttribute
enum AttributeScopes.FoundationAttributes.MorphologyAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.MorphologyAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let markdownName: String
static var markdownName: String
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Morphology
static func decodeMarkdown(from: Decoder) -> Morphology
static func encode(Morphology, to: Encoder)
let referentConcept: AttributeScopes.FoundationAttributes.ReferentConceptAttribute
enum AttributeScopes.FoundationAttributes.ReferentConceptAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.ReferentConceptAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let markdownName: String
static var markdownName: String
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Int
static func decodeMarkdown(from: Decoder) -> Int
static func encode(Int, to: Encoder)
let inflectionAlternative: AttributeScopes.FoundationAttributes.InflectionAlternativeAttribute
enum AttributeScopes.FoundationAttributes.InflectionAlternativeAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.InflectionAlternativeAttribute.ObjectiveCValue
typealias AttributeScopes.FoundationAttributes.InflectionAlternativeAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let markdownName: String
static var markdownName: String
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> AttributedString
static func decodeMarkdown(from: Decoder) -> AttributedString
static func encode(AttributedString, to: Encoder)
static func objectiveCValue(for: AttributedString) -> NSObject
static func value(for: NSObject) -> AttributedString
let numberFormat: AttributeScopes.FoundationAttributes.NumberFormatAttributes
struct AttributeScopes.FoundationAttributes.NumberFormatAttributes
型エイリアス
typealias AttributeScopes.FoundationAttributes.NumberFormatAttributes.DecodingConfiguration
typealias AttributeScopes.FoundationAttributes.NumberFormatAttributes.EncodingConfiguration
インスタンスプロパティ
let numberPart: AttributeScopes.FoundationAttributes.NumberFormatAttributes.NumberPartAttribute
let numberSymbol: AttributeScopes.FoundationAttributes.NumberFormatAttributes.SymbolAttribute
型プロパティ
static var decodingConfiguration: AttributeScopeCodableConfiguration
static var encodingConfiguration: AttributeScopeCodableConfiguration
列挙型
enum AttributeScopes.FoundationAttributes.NumberFormatAttributes.NumberPartAttribute
enum AttributeScopes.FoundationAttributes.NumberFormatAttributes.SymbolAttribute
let personNameComponent: AttributeScopes.FoundationAttributes.PersonNameComponentAttribute
enum AttributeScopes.FoundationAttributes.PersonNameComponentAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.PersonNameComponentAttribute.ObjectiveCValue
typealias AttributeScopes.FoundationAttributes.PersonNameComponentAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Component
static func encode(Component), to: Encoder)
列挙型
enum AttributeScopes.FoundationAttributes.PersonNameComponentAttribute.Component
Markdown ソースの位置属性の使用
let markdownSourcePosition: AttributeScopes.FoundationAttributes.MarkdownSourcePositionAttribute
enum AttributeScopes.FoundationAttributes.MarkdownSourcePositionAttribute
Markdown ソースの位置属性の検査/p>
static var inheritedByAddedText: Bool
static var runBoundaries: AttributedString.AttributeRunBoundaries?
コード化と復号化
static let name: String
typealias AttributeScopes.FoundationAttributes.MarkdownSourcePositionAttribute.Value
static func decode(from: Decoder) -> AttributedString.MarkdownSourcePosition
static func encode(AttributedString.MarkdownSourcePosition, to: Encoder)
Markdown ソース位置属性の記述
var description: String
サポートする型
struct AttributedString.MarkdownSourcePosition
型プロパティ
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
コード化と復号化
static var decodingConfiguration: AttributeScopeCodableConfiguration
typealias AttributeScopes.FoundationAttributes.DecodingConfiguration
static var encodingConfiguration: AttributeScopeCodableConfiguration
typealias AttributeScopes.FoundationAttributes.EncodingConfiguration
インスタンスプロパティ
let byteCount: AttributeScopes.FoundationAttributes.ByteCountAttribute
let durationField: AttributeScopes.FoundationAttributes.DurationFieldAttribute
let measurement: AttributeScopes.FoundationAttributes.MeasurementAttribute
構造体
struct AttributeScopes.FoundationAttributes.MeasurementAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.MeasurementAttribute.Value
インスタンスプロパティ
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Component
static func encode(Component, to: Encoder)
列挙型
enum AttributeScopes.FoundationAttributes.MeasurementAttribute.Component
列挙型
enum AttributeScopes.FoundationAttributes.ByteCountAttribute
列挙型 Case
case actualByteCount
case spelledOutValue
case unit(AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit)
case value
イニシャライザ
init(from: Decoder)
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func encode(to: Encoder)
func hash(into: inout Hasher)
演算子関数
static func != (AttributeScopes.FoundationAttributes.ByteCountAttribute.Component, AttributeScopes.FoundationAttributes.ByteCountAttribute.Component) -> Bool
static func == (AttributeScopes.FoundationAttributes.ByteCountAttribute.Component, AttributeScopes.FoundationAttributes.ByteCountAttribute.Component) -> Bool
enum AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit
列挙型 Case
case byte
case eb
case gb
case kb
case mb
case pb
case tb
case yb
case zb
イニシャライザ
init(from: Decoder)
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func encode(to: Encoder)
func hash(into: inout Hasher)
演算子関数
static func != (AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit, AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit) -> Bool
static func == (AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit, AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit) -> Bool
enum AttributeScopes.FoundationAttributes.DurationFieldAttribute
型エイリアス
typealias AttributeScopes.FoundationAttributes.DurationFieldAttribute.Value
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static let name: String
static var runBoundaries: AttributedString.AttributeRunBoundaries?
型メソッド
static func decode(from: Decoder) -> Field
static func encode(Field, to: Encoder)
列挙型
enum AttributeScopes.FoundationAttributes.DurationFieldAttribute.Field
Protocol AttributeScope
コード化構成のサポート
static var encodingConfiguration: AttributeScopeCodableConfiguration
static var decodingConfiguration: AttributeScopeCodableConfiguration
enum AttributeScopes
Foundation 定義の属性
var foundation: AttributeScopes.FoundationAttributes.Type
struct AttributeScopes.FoundationAttributes
SwiftUI 定義の属性
var swiftUI: AttributeScopes.SwiftUIAttributes.Type
struct AttributeScopes.SwiftUIAttributes
UIKit 定義の属性
var uiKit: AttributeScopes.UIKitAttributes.Type
struct AttributeScopes.UIKitAttributes
色属性の使用
let backgroundColor: AttributeScopes.UIKitAttributes.BackgroundColorAttribute
let foregroundColor: AttributeScopes.UIKitAttributes.ForegroundColorAttribute
フォントとレイアウト属性の使用
let font: AttributeScopes.UIKitAttributes.FontAttribute
let kern: AttributeScopes.UIKitAttributes.KernAttribute
let ligature: AttributeScopes.UIKitAttributes.LigatureAttribute
let tracking: AttributeScopes.UIKitAttributes.TrackingAttribute
テキストスタイル属性の使用
let baselineOffset: AttributeScopes.UIKitAttributes.BaselineOffsetAttribute
let obliqueness: AttributeScopes.UIKitAttributes.ObliquenessAttribute
let paragraphStyle: AttributeScopes.UIKitAttributes.ParagraphStyleAttribute
let shadow: AttributeScopes.UIKitAttributes.ShadowAttribute
let strikethroughColor: AttributeScopes.UIKitAttributes.StrikethroughColorAttribute
let strikethroughStyle: AttributeScopes.UIKitAttributes.StrikethroughStyleAttribute
let strokeColor: AttributeScopes.UIKitAttributes.StrokeColorAttribute
let strokeWidth: AttributeScopes.UIKitAttributes.StrokeWidthAttribute
let textEffect: AttributeScopes.UIKitAttributes.TextEffectAttribute
let underlineColor: AttributeScopes.UIKitAttributes.UnderlineColorAttribute
let underlineStyle: AttributeScopes.UIKitAttributes.UnderlineStyleAttribute
付属と拡張の使用
let attachment: AttributeScopes.UIKitAttributes.AttachmentAttribute
let expansion: AttributeScopes.UIKitAttributes.ExpansionAttribute
Foundation 属性の使用
let foundation: AttributeScopes.FoundationAttributes
コード化と復号化
typealias AttributeScopes.UIKitAttributes.DecodingConfiguration
typealias AttributeScopes.UIKitAttributes.EncodingConfiguration
インスタンスプロパティ
let accessibility: AttributeScopes.AccessibilityAttributes
let textItemTag: AttributeScopes.UIKitAttributes.TextItemTagAttribute
AppKit 定義の属性
var appKit: AttributeScopes.AppKitAttributes.Type
struct AttributeScopes.AppKitAttributes
色属性の使用
let backgroundColor: AttributeScopes.AppKitAttributes.BackgroundColorAttribute
let foregroundColor: AttributeScopes.AppKitAttributes.ForegroundColorAttribute
フォントとレイアウト属性の使用
let font: AttributeScopes.AppKitAttributes.FontAttribute
let kern: AttributeScopes.AppKitAttributes.KernAttribute
let ligature: AttributeScopes.AppKitAttributes.LigatureAttribute
let glyphInfo: AttributeScopes.AppKitAttributes.GlyphInfoAttribute
let tracking: AttributeScopes.AppKitAttributes.TrackingAttribute
テキストスタイル属性の使用
let baselineOffset: AttributeScopes.AppKitAttributes.BaselineOffsetAttribute
let obliqueness: AttributeScopes.AppKitAttributes.ObliquenessAttribute
  廃止  
let shadow: AttributeScopes.AppKitAttributes.ShadowAttribute
let strikethroughColor: AttributeScopes.AppKitAttributes.StrikethroughColorAttribute
let strikethroughStyle: AttributeScopes.AppKitAttributes.StrikethroughStyleAttribute
let strokeColor: AttributeScopes.AppKitAttributes.StrokeColorAttribute
let strokeWidth: AttributeScopes.AppKitAttributes.StrokeWidthAttribute
let textEffect: AttributeScopes.AppKitAttributes.TextEffectAttribute
let underlineColor: AttributeScopes.AppKitAttributes.UnderlineColorAttribute
let underlineStyle: AttributeScopes.AppKitAttributes.UnderlineStyleAttribute
付属と拡張の使用
let attachment: AttributeScopes.AppKitAttributes.AttachmentAttribute
let expansion: AttributeScopes.AppKitAttributes.ExpansionAttribute
  廃止  
ユーザインターフェース属性の使用
let cursor: AttributeScopes.AppKitAttributes.CursorAttribute
let toolTip: AttributeScopes.AppKitAttributes.ToolTipAttribute
let textAlternatives: AttributeScopes.AppKitAttributes.TextAlternativesAttribute
Foundation 属性の使用
let foundation: AttributeScopes.FoundationAttributes
テキストレイアウトと提示属性の使用
let markedClauseSegment: AttributeScopes.AppKitAttributes.MarkedClauseSegmentAttribute
let paragraphStyle: AttributeScopes.AppKitAttributes.ParagraphStyleAttribute
let superscript: AttributeScopes.AppKitAttributes.SuperscriptAttribute
コード化と復号化
typealias AttributeScopes.AppKitAttributes.DecodingConfiguration
typealias AttributeScopes.AppKitAttributes.EncodingConfiguration
インスタンスプロパティ
let accessibility: AttributeScopes.AccessibilityAttributes
インスタンスプロパティ
var accessibility: AttributeScopes.AccessibilityAttributes.Type
構造体
struct AttributeScopes.AccessibilityAttributes
型エイリアス
typealias AttributeScopes.AccessibilityAttributes.DecodingConfiguration
typealias AttributeScopes.AccessibilityAttributes.EncodingConfiguration
インスタンスプロパティ
let accessibilityHeadingLevel: AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute
let accessibilitySpeechAdjustedPitch: AttributeScopes.AccessibilityAttributes.AdjustedPitchAttribute
let accessibilitySpeechAnnouncementPriority: AttributeScopes.AccessibilityAttributes.AnnouncementPriorityAttribute
let accessibilitySpeechAnnouncementsQueued: AttributeScopes.AccessibilityAttributes.QueueAnnouncementAttribute   廃止  
let accessibilitySpeechIncludesPunctuation: AttributeScopes.AccessibilityAttributes.IncludesPunctuationAttribute
let accessibilitySpeechPhoneticNotation: AttributeScopes.AccessibilityAttributes.IPANotationAttribute
let accessibilitySpeechSpellsOutCharacters: AttributeScopes.AccessibilityAttributes.SpellOutAttribute
let accessibilityTextCustom: AttributeScopes.AccessibilityAttributes.TextCustomAttribute
let accessibilityTextualContext: AttributeScopes.AccessibilityAttributes.TextualContextAttribute
AttributeScopeCodableConfiguration
コード化と復号化
init(from: Decoder)
init(from: Decoder, configuration: AttributeScopeCodableConfiguration)
typealias AttributedString.DecodingConfiguration
func encode(to: Encoder)
func encode(to: Encoder, configuration: AttributeScopeCodableConfiguration)
typealias AttributedString.EncodingConfiguration
属性付き文字列キーのコード化と復号化
enum AttributeDynamicLookup
キー値へのアクセス
subscript<T>(T.Type) -> T
フレームワーク属性範囲へのアクセス
subscript<T>(dynamicMember: KeyPath<AttributeScopes.FoundationAttributes, T>) -> T
subscript<T>(dynamicMember: KeyPath<AttributeScopes.FoundationAttributes.NumberFormatAttributes, T>) -> T
subscript<T>(dynamicMember: KeyPath<AttributeScopes.SwiftUIAttributes, T>) -> T
subscript<T>(dynamicMember: KeyPath<AttributeScopes.UIKitAttributes, T>) -> T
subscript<T>(dynamicMember: KeyPath<AttributeScopes.AppKitAttributes, T>) -> T
サブスクリプト
subscript<T>(dynamicMember: KeyPath<AttributeScopes.AccessibilityAttributes, T>) -> T
subscript<T>(dynamicMember: KeyPath<AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes, T>) -> T
部分文字列全体の属性へのアクセス
subscript<K>(K.Type) -> K.Value?
subscript<K>(dynamicMember: KeyPath<AttributeDynamicLookup, K>) -> K.Value?
subscript<S>(dynamicMember: KeyPath<AttributeScopes, S.Type>) -> ScopedAttributeContainer<S>
struct ScopedAttributeContainer
属性キーへのアクセス
subscript<T>(dynamicMember: KeyPath<S, T>) -> T.Value?
キープロパティの宣言
associatedtype Value
static var name: String
structure AttributedString
属性付き文字列の作成
init()
init(AttributedSubstring)
init(String, attributes: AttributeContainer)
init(Substring, attributes: AttributeContainer)
init<S>(S, attributes: AttributeContainer)
struct AttributeContainer
protocol AttributedStringKey
キープロパティの宣言
static var name: String
associatedtype Value
キーの説明
var description: String
型プロパティ
static var inheritedByAddedText: Bool
static var invalidationConditions: Set<AttributedString.AttributeInvalidationCondition>?
static var runBoundaries: AttributedString.AttributeRunBoundaries?
struct AttributeContainer.Builder
Builder 関数の呼び出し
func callAsFunction(T.Value) -> AttributeContainer
属性の変更
func merge(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)
func merging(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy) -> AttributeContainer
enum AttributedString.AttributeMergePolicy
合体ポリシー
case keepCurrent
case keepNew
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
合体ポリシーの比較
static func == (AttributedString.AttributeMergePolicy, AttributedString.AttributeMergePolicy) -> Bool
static func != (AttributedString.AttributeMergePolicy, AttributedString.AttributeMergePolicy) -> Bool
属性の適用と変更
func setAttributes(AttributeContainer)
func settingAttributes(AttributeContainer) -> AttributedString
func mergeAttributes(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)
func mergingAttributes(AttributeContainer, mergePolicy: AttributeMergePolicy) -> AttributedString
enum AttributedString.AttributeMergePolicy
func replaceAttributes(AttributeContainer, with: AttributeContainer)
func replacingAttributes(AttributeContainer, with: AttributeContainer) -> AttributedString
protocol AttributedStringAttributeMutation
文字列の属性を変更する
func setAttributes(AttributeContainer)
func mergeAttributes(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)
func replaceAttributes(AttributeContainer, with: AttributeContainer)
コード化と復号化
init(from: Decoder, configuration: AttributeScopeCodableConfiguration)
func encode(to: Encoder, configuration: AttributeScopeCodableConfiguration)
typealias AttributeContainer.DecodingConfiguration
typealias AttributeContainer.EncodingConfiguration
Objective-C 属性との相互運用
protocol ObjectiveCConvertibleAttributedStringKey
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
属性コンテナの比較
static func == (AttributeContainer, AttributeContainer) -> Bool
static func != (AttributeContainer, AttributeContainer) -> Bool
属性コンテナの記述
var description: String
リテラル値から属性付き文字列を作成
init(stringLiteral: String)
typealias AttributedString.StringLiteralType
init(unicodeScalarLiteral: String)
typealias AttributedString.UnicodeScalarLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias AttributedString.ExtendedGraphemeClusterLiteralType
ローカライズされた属性付き文字列の作成
init(localized: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?)
init<S>(localized: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: S.Type)
init<S>(localized: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: KeyPath<AttributeScopes, S.Type>)
struct String.LocalizationValue
構造体
- struct StringInterpolation
イニシャライザ
- init(literalCapacity: Int, interpolationCount: Int)
インスタンスメソッド
- func appendInterpolation<Subject>(Subject)
- func appendInterpolation(String)
- func appendInterpolation<T>(T)
- func appendInterpolation<T>(T)
- func appendInterpolation<C>(C, format: ListFormatStyle<StringStyle, [String]>)
- func appendInterpolation<T, F>(T, format: F)
- func appendInterpolation<T, F>(T, format: F)
- func appendInterpolation(AttributedString, options: AttributedString.InterpolationOptions)
- func appendInterpolation<T>(T, specifier: String)
- func appendInterpolation(placeholder: String.LocalizationValue.Placeholder)
- func appendInterpolation(placeholder: String.LocalizationValue.Placeholder, specifier: String)
- func appendLiteral(String)
型エイリアス
- typealias StringLiteralType
演算子
static func == (String.LocalizationValue, String.LocalizationValue) -> Bool
イニシャライザ
init(String)
init(stringInterpolation: String.LocalizationValue.StringInterpolation)
init(stringLiteral: String)
型エイリアス
typealias ExtendedGraphemeClusterLiteralType
typealias StringLiteralType
typealias UnicodeScalarLiteralType
列挙型
enum Placeholder
デフォルトの実装
Decodable の実装
init(from: any Decoder) throws
Encodable の実装
func encode(to encoder: any Encoder) throws
Equatable の実装
static func != (Self, Self) -> Bool
ExpressibleByExtendedGraphemeClusterLiteral の実装
init(extendedGraphemeClusterLiteral: Self.StringLiteralType)
ExpressibleByUnicodeScalarLiteral の実装
init(unicodeScalarLiteral: Self.ExtendedGraphemeClusterLiteralType)
struct AttributedString.FormattingOptions
書式設定オプションの作成
init()
init<S>(S)
typealias AttributedString.FormattingOptions.Element
init(arrayLiteral: AttributedString.FormattingOptions...)
typealias AttributedString.FormattingOptions.ArrayLiteralElement
init(rawValue: UInt)
typealias AttributedString.FormattingOptions.RawValue
定義された書式設定オプションの使用
static let applyReplacementIndexAttribute: AttributedString.FormattingOptions
検査するプロパティ
let rawValue: UInt
セット演算の実行
var isEmpty: Bool
func contains(AttributedString.FormattingOptions) -> Bool
func formIntersection(AttributedString.FormattingOptions)
func formSymmetricDifference(AttributedString.FormattingOptions)
func formUnion(AttributedString.FormattingOptions)
func insert(AttributedString.FormattingOptions) -> (inserted: Bool, memberAfterInsert: AttributedString.FormattingOptions)
func intersection(AttributedString.FormattingOptions) -> AttributedString.FormattingOptions
func isDisjoint(with: AttributedString.FormattingOptions) -> Bool
func isStrictSubset(of: AttributedString.FormattingOptions) -> Bool
func isStrictSuperset(of: AttributedString.FormattingOptions) -> Bool
func isSubset(of: AttributedString.FormattingOptions) -> Bool
func isSuperset(of: AttributedString.FormattingOptions) -> Bool
func remove(AttributedString.FormattingOptions) -> AttributedString.FormattingOptions?
func subtract(AttributedString.FormattingOptions)
func subtracting(AttributedString.FormattingOptions) -> AttributedString.FormattingOptions
func symmetricDifference(AttributedString.FormattingOptions) -> AttributedString.FormattingOptions
func union(AttributedString.FormattingOptions) -> AttributedString.FormattingOptions
func update(with: AttributedString.FormattingOptions) -> AttributedString.FormattingOptions?
書式設定オプションの比較
static func != (AttributedString.FormattingOptions, AttributedString.FormattingOptions) -> Bool
init(localized: LocalizedStringResource)
init<S>(localized: LocalizedStringResource, including: S.Type)
init<S>(localized: LocalizedStringResource, including: KeyPath<AttributeScopes, S.Type>)
イニシャライザ
init(localized:)
init(localized:options:)
struct LocalizedStringResource
var locale: Locale
リソースプロパティにアクセス
let key: String
let defaultValue: String.LocalizationValue
let table: String?
var bundle: LocalizedStringResource.BundleDescription
enum LocalizedStringResource.BundleDescription
ローカライズされた属性文字列をデフォルト値で作成
init(localized: StaticString, defaultValue: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?)
init<S>(localized: StaticString, defaultValue: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: S.Type)
init<S>(localized: StaticString, defaultValue: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: KeyPath<AttributeScopes, S.Type>)
属性付き文字列を Markdown から作成
Markdown 構文を使用した属性付き文字列のインスタンス化
Markdown 文字列からの初期化
init(markdown: String, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
init<S>(markdown: String, including: S.Type, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
init<S>(markdown: String, including: KeyPath<AttributeScopes, S.Type>, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
Markdown データからの初期化
init(markdown: Data, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
init<S>(markdown: Data, including: S.Type, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
init<S>(markdown: Data, including: KeyPath<AttributeScopes, S.Type>, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
URL コンテンツから Markdownで初期化
init(contentsOf: URL, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
init<S>(contentsOf: URL, including: S.Type, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
init<S>(contentsOf: URL, including: KeyPath<AttributeScopes, S.Type>, options: AttributedString.MarkdownParsingOptions, baseURL: URL?)
Markdown 解析オプションの指定
struct AttributedString.MarkdownParsingOptions
enum AttributedString.MarkdownParsingOptions.FailurePolicy
失敗ポリシーの作成
init?(rawValue: Int)
失敗ポリシーの宣言
case returnPartiallyParsedIfPossible
case throwError
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
失敗ポリシーの比較
var rawValue: Int
typealias AttributedString.MarkdownParsingOptions.FailurePolicy.RawValue
static func != (AttributedString.MarkdownParsingOptions.FailurePolicy, AttributedString.MarkdownParsingOptions.FailurePolicy) -> Bool
var interpretedSyntax: AttributedString.MarkdownParsingOptions.InterpretedSyntax
enum AttributedString.MarkdownParsingOptions.InterpretedSyntax
var languageCode: String?
参照型から属性付き文字列を作成
init<S>(NSAttributedString, including: S.Type)
init<S>(NSAttributedString, including: KeyPath<AttributeScopes, S.Type>)
init(NSAttributedString)
重複した属性付き文字列の作成
init<S, T>(T, including: S.Type)
init<S, T>(T, including: KeyPath<AttributeScopes, S.Type>)
属性の適用と変更
func setAttributes(AttributeContainer)
func settingAttributes(AttributeContainer) -> AttributedString
func mergeAttributes(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)
func mergingAttributes(AttributeContainer, mergePolicy: AttributeMergePolicy) -> AttributedString
enum AttributedString.AttributeMergePolicy
func replaceAttributes(AttributeContainer, with: AttributeContainer)
func replacingAttributes(AttributeContainer, with: AttributeContainer) -> AttributedString
protocol AttributedStringAttributeMutation
定義された属性の使用
enum AttributeScopes
enum AttributeDynamicLookup
struct ScopedAttributeContainer
部分文字列の検索
func range<T>(of: T, options: String.CompareOptions, locale: Locale?) -> Range<Index>?
範囲へのアクセス
subscript(some RangeExpression<AttributedString.Index>) -> AttributedSubstring
指標へのアクセス
属性付き文字列内の指標へのアクセス
端末指標へのアクセス
var startIndex: AttributedString.Index
var endIndex: AttributedString.Index
オフセットによる指標へのアクセス
func index(Index, offsetByCharacters: Int) -> Index
func index(Index, offsetByRuns: Int) -> Index
func index(Index, offsetByUnicodeScalars: Int) -> Index
既知の位置より前の指標へのアクセス
func index(beforeCharacter: Index) -> Index
func index(beforeRun: Index) -> Index
func index(beforeUnicodeScalar: Index) -> Index
既知の位置より後の指標へのアクセス
func index(afterCharacter: Index) -> Index
func index(afterRun: Index) -> Index
func index(afterUnicodeScalar: Index) -> Index
サポートする型
struct AttributedString.Index
属性付き文字列の中へのビューのアクセス
var characters: AttributedString.CharacterView
struct AttributedString.CharacterView
型エイリアス
- typealias AttributedString.CharacterView.Element
- typealias AttributedString.CharacterView.Index
- typealias AttributedString.CharacterView.Indices
- typealias AttributedString.CharacterView.Iterator
- typealias AttributedString.CharacterView.SubSequence
イニシャライザ
- init()
- init<S>(S)
- init(repeating: Character, count: Int)
インスタンスプロパティ
- var count: Int
- var endIndex: AttributedString.Index
- var first: Character?
- var indices: DefaultIndices<AttributedString.CharacterView>
- var isEmpty: Bool
- var last: Character?
- var lazy: LazySequence<AttributedString.CharacterView>
- var publisher: Publishers.Sequence<AttributedString.CharacterView, Never>
- var startIndex: AttributedString.Index
- var underestimatedCount: Int
インスタンスメソッド
- func allSatisfy((Character) -> Bool) -> Bool
- func append(Character)
- func append<S>(contentsOf: S)
- func applying(CollectionDifference<Character>) -> AttributedString.CharacterView?
- func compactMap<ElementOfResult>((Character) -> ElementOfResult?) -> [ElementOfResult]
- func compare<Comparator>(Comparator.Compared, Comparator.Compared) -> ComparisonResult
- func contains(Character) -> Bool
- func contains(where: (Character) -> Bool) -> Bool
- func difference<C>(from: C) -> CollectionDifference<Character>
- func difference<C>(from: C, by: (C.Element, Character) -> Bool) -> CollectionDifference<Character>
- func distance(from: AttributedString.Index, to: AttributedString.Index) -> Int
- func drop(while: (Character) -> Bool) -> Slice<AttributedString.CharacterView>
- func dropFirst(Int) -> Slice<AttributedString.CharacterView>
- func dropLast(Int) -> Slice<AttributedString.CharacterView>
- func elementsEqual<OtherSequence>(OtherSequence) -> Bool
- func elementsEqual<OtherSequence>(OtherSequence, by: (Character, OtherSequence.Element) -> Bool) -> Bool
- func enumerated() -> EnumeratedSequence<AttributedString.CharacterView>
- func filter((Character) -> Bool) -> AttributedString.CharacterView
- func first(where: (Character) -> Bool) -> Character?
- func firstIndex(of: Character) -> AttributedString.Index?
- func firstIndex(where: (Character) -> Bool) -> AttributedString.Index?
- func firstRange<C>(of: C) -> Range<AttributedString.Index>?
- func firstRange<C>(of: C) -> Range<AttributedString.Index>?
- func flatMap<SegmentOfResult>((Character) -> SegmentOfResult) -> [SegmentOfResult.Element]
func flatMap<ElementOfResult>((Character) -> ElementOfResult?) -> [ElementOfResult]   廃止  
- func forEach((Character) -> Void)
- func formIndex(inout AttributedString.Index, offsetBy: Int)
- func formIndex(inout AttributedString.Index, offsetBy: Int, limitedBy: AttributedString.Index) -> Bool
- func formIndex(after: inout AttributedString.Index)
- func formIndex(before: inout AttributedString.Index)
- func formatted<S>(S) -> S.FormatOutput
- func index(AttributedString.Index, offsetBy: Int) -> AttributedString.Index
- func index(AttributedString.Index, offsetBy: Int, limitedBy: AttributedString.Index) -> AttributedString.Index?
- func index(after: AttributedString.Index) -> AttributedString.Index
- func index(before: AttributedString.Index) -> AttributedString.Index
func index(of: Character) -> AttributedString.Index?   廃止  
- func insert(Character, at: AttributedString.Index)
- func insert<C>(contentsOf: C, at: AttributedString.Index)
- func last(where: (Character) -> Bool) -> Character?
- func lastIndex(of: Character) -> AttributedString.Index?
- func lastIndex(where: (Character) -> Bool) -> AttributedString.Index?
- func lexicographicallyPrecedes<OtherSequence>(OtherSequence) -> Bool
- func lexicographicallyPrecedes<OtherSequence>(OtherSequence, by: (Character, Character) -> Bool) -> Bool
- func makeIterator() -> IndexingIterator<AttributedString.CharacterView>
- func map<T>((Character) -> T) -> [T]
- func max() -> Character?
- func max(by: (Character, Character) -> Bool) -> Character?
- func min() -> Character?
- func min(by: (Character, Character) -> Bool) -> Character?
- func popLast() -> Character?
- func prefix(Int) -> Slice<AttributedString.CharacterView>
- func prefix(through: AttributedString.Index) -> Slice<AttributedString.CharacterView>
- func prefix(upTo: AttributedString.Index) -> Slice<AttributedString.CharacterView>
- func prefix(while: (Character) -> Bool) -> Slice<AttributedString.CharacterView>
- func randomElement() -> Character?
- func randomElement<T>(using: inout T) -> Character?
- func ranges<C>(of: C) -> [Range
- func reduce<Result>(Result, (Result, Character) -> Result) -> Result
- func reduce<Result>(into: Result, (inout Result, Character) -> ()) -> Result
- func remove(at: AttributedString.Index) -> Character
- func removeAll(keepingCapacity: Bool)
- func removeAll(where: (Character) -> Bool)
- func removeFirst() -> Character
- func removeFirst(Int)
- func removeLast() -> Character
- func removeLast(Int)
- func removeSubrange(Range<AttributedString.Index>)
- func removeSubrange<R>(R)
- func replace<C, Replacement>(C, with: Replacement, maxReplacements: Int)
- func replaceSubrange(Range<AttributedString.CharacterView.Index>, with: some Collection<Character>)
- func replaceSubrange<C, R>(R, with: C)
- func replacing<C, Replacement>(C, with: Replacement, maxReplacements: Int) -> AttributedString.CharacterView
- func replacing<C, Replacement>(C, with: Replacement, subrange: Range<AttributedString.Index>, maxReplacements: Int) -> AttributedString.CharacterView
- func reserveCapacity(Int)
- func reversed() -> ReversedCollection<AttributedString.CharacterView>
- func shuffled() -> [Character]
- func shuffled<T>(using: inout T) -> [Character]
- func sorted() -> [Character]
- func sorted(by: (Character, Character) -> Bool) -> [Character]
- func sorted<Comparator>(using: Comparator) -> [Character]
- func sorted<S, Comparator>(using: S) -> [Character]
- func split(maxSplits: Int, omittingEmptySubsequences: Bool, whereSeparator: (Character) -> Bool) -> [Slice<AttributedString.CharacterView>]
- func split(separator: Character, maxSplits: Int, omittingEmptySubsequences: Bool) -> [Slice<AttributedString.CharacterView>]
- func starts<PossiblePrefix>(with: PossiblePrefix) -> Bool
- func starts<PossiblePrefix>(with: PossiblePrefix, by: (Character, PossiblePrefix.Element) -> Bool) -> Bool
- func suffix(Int) -> Slice<AttributedString.CharacterView>
- func suffix(from: AttributedString.Index) -> Slice<AttributedString.CharacterView>
- func trimPrefix<Prefix>(Prefix)
- func trimPrefix(while: (Character) -> Bool)
- func trimmingPrefix<Prefix>(Prefix) -> Slice<AttributedString.CharacterView>
- func trimmingPrefix(while: (Character) -> Bool) -> Slice<AttributedString.CharacterView>
- func withContiguousStorageIfAvailable<R>((UnsafeBufferPointer<Character>) -> R) -> R?
サブスクリプト
- subscript(AttributedString.Index) -> Character
- subscript(Range<AttributedString.Index>) -> Slice<AttributedString.CharacterView>
- subscript<R>(R) -> Slice<AttributedString.CharacterView>
- subscript((UnboundedRange_) -> ()) -> Slice<AttributedString.CharacterView>
演算子関数
- static func + <Other>(Other, AttributedString.CharacterView) -> AttributedString.CharacterView
- static func + <Other>(AttributedString.CharacterView, Other) -> AttributedString.CharacterView
- static func + <Other>(AttributedString.CharacterView, Other) -> AttributedString.CharacterView
- static func += <Other>(inout AttributedString.CharacterView, Other)
- associatedtype Compared
- func compare(Self.Compared, Self.Compared) -> ComparisonResult
var unicodeScalars: AttributedString.UnicodeScalarView
型エイリアス
typealias AttributedString.UnicodeScalarView.Element
typealias AttributedString.UnicodeScalarView.Index
typealias AttributedString.UnicodeScalarView.Indices
typealias AttributedString.UnicodeScalarView.Iterator
typealias AttributedString.UnicodeScalarView.SubSequence
イニシャライザ
init()
init<S>(S)
init(repeating: Character, count: Int)
インスタンスプロパティ
var count: Int
var endIndex: AttributedString.Index
var first: UnicodeScalar?
var indices: DefaultIndices<AttributedString.UnicodeScalarView>
var isEmpty: Bool
var last: UnicodeScalar?
var lazy: LazySequence<AttributedString.UnicodeScalarView>
var publisher: Publishers.Sequence<AttributedString.UnicodeScalarView, Never>
var startIndex: AttributedString.Index
var underestimatedCount: Int
インスタンスメソッド
func allSatisfy((UnicodeScalar) -> Bool) -> Bool
func append(UnicodeScalar)
func append<S>(contentsOf: S)
func applying(CollectionDifference<UnicodeScalar>) -> AttributedString.UnicodeScalarView?
func compactMap<ElementOfResult>((UnicodeScalar) -> ElementOfResult?) -> [ElementOfResult]
func compare<Comparator>(Comparator.Compared, Comparator.Compared) -> ComparisonResult
func contains(UnicodeScalar) -> Bool
func contains(where: (UnicodeScalar) -> Bool) -> Bool
func difference<C>(from: C) -> CollectionDifference<UnicodeScalar>
func difference<C>(from: C, by: (C.Element, UnicodeScalar) -> Bool) -> CollectionDifference<UnicodeScalar>
func distance(from: AttributedString.Index, to: AttributedString.Index) -> Int
func drop(while: (UnicodeScalar) -> Bool) -> Slice<AttributedString.UnicodeScalarView>
func dropFirst(Int) -> Slice<AttributedString.UnicodeScalarView>
func dropLast(Int) -> Slice<AttributedString.UnicodeScalarView>
func elementsEqual<OtherSequence>(OtherSequence) -> Bool
func elementsEqual<OtherSequence>(OtherSequence, by: (UnicodeScalar, OtherSequence.Element) -> Bool) -> Bool
func enumerated() -> EnumeratedSequence<AttributedString.UnicodeScalarView>
func filter((UnicodeScalar) -> Bool) -> AttributedString.UnicodeScalarView
func first(where: (UnicodeScalar) -> Bool) -> UnicodeScalar?
func firstIndex(of: UnicodeScalar) -> AttributedString.Index?
func firstIndex(where: (UnicodeScalar) -> Bool) -> AttributedString.Index?
func firstRange<C>(of: C) -> Range<AttributedString.Index>?
func firstRange<C>(of: C) -> Range<AttributedString.Index>?
func flatMap<SegmentOfResult>((UnicodeScalar) -> SegmentOfResult) -> [SegmentOfResult.Element]
func flatMap<ElementOfResult>((UnicodeScalar) -> ElementOfResult?) -> [ElementOfResult]   廃止  
func forEach((UnicodeScalar) -> Void)
func formIndex(inout AttributedString.Index, offsetBy: Int)
func formIndex(inout AttributedString.Index, offsetBy: Int, limitedBy: AttributedString.Index) -> Bool
func formIndex(after: inout AttributedString.Index)
func formIndex(before: inout AttributedString.Index)
func formatted<S>(S) -> S.FormatOutput
func index(AttributedString.Index, offsetBy: Int) -> AttributedString.Index
func index(AttributedString.Index, offsetBy: Int, limitedBy: AttributedString.Index) -> AttributedString.Index?
func index(after: AttributedString.Index) -> AttributedString.Index
func index(before: AttributedString.Index) -> AttributedString.Index
func index(of: UnicodeScalar) -> AttributedString.Index?   廃止  
func insert(UnicodeScalar, at: AttributedString.Index)
func insert<C>(contentsOf: C, at: AttributedString.Index)
func last(where: (UnicodeScalar) -> Bool) -> UnicodeScalar?
func lastIndex(of: UnicodeScalar) -> AttributedString.Index?
func lastIndex(where: (UnicodeScalar) -> Bool) -> AttributedString.Index?
func lexicographicallyPrecedes<OtherSequence>(OtherSequence) -> Bool
func lexicographicallyPrecedes<OtherSequence>(OtherSequence, by: (UnicodeScalar, UnicodeScalar) -> Bool) -> Bool
func makeIterator() -> IndexingIterator<AttributedString.UnicodeScalarView>
func map<T>((UnicodeScalar) -> T) -> [T]
func max() -> UnicodeScalar?
func max(by: (UnicodeScalar, UnicodeScalar) -> Bool) -> UnicodeScalar?
func min() -> UnicodeScalar?
func min(by: (UnicodeScalar, UnicodeScalar) -> Bool) -> UnicodeScalar?
func popLast() -> UnicodeScalar?
func prefix(Int) -> Slice<AttributedString.UnicodeScalarView>
func prefix(through: AttributedString.Index) -> Slice<AttributedString.UnicodeScalarView>
func prefix(upTo: AttributedString.Index) -> Slice<AttributedString.UnicodeScalarView>
func prefix(while: (UnicodeScalar) -> Bool) -> Slice<AttributedString.UnicodeScalarView>
func randomElement() -> UnicodeScalar?
func randomElement<T>(using: inout T) -> UnicodeScalar?
func ranges<C>(of: C) -> [Range
func reduce<Result>(Result, (Result, UnicodeScalar) -> Result) -> Result
func reduce<Result>(into: Result, (inout Result, UnicodeScalar) -> ()) -> Result
func remove(at: AttributedString.Index) -> UnicodeScalar
func removeAll(keepingCapacity: Bool)
func removeAll(where: (UnicodeScalar) -> Bool)
func removeFirst() -> UnicodeScalar
func removeFirst(Int)
func removeLast() -> UnicodeScalar
func removeLast(Int)
func removeSubrange(Range<AttributedString.Index>)
func removeSubrange<R>(R)
func replace<C, Replacement>(C, with: Replacement, maxReplacements: Int)
func replaceSubrange(Range<AttributedString.UnicodeScalarView.Index>, with: some Collection<UnicodeScalar>)
func replaceSubrange<C, R>(R, with: C)
func replacing<C, Replacement>(C, with: Replacement, maxReplacements: Int) -> AttributedString.UnicodeScalarView
func replacing<C, Replacement>(C, with: Replacement, subrange: Range<AttributedString.Index>, maxReplacements: Int) -> AttributedString.UnicodeScalarView
func reserveCapacity(Int)
func reversed() -> ReversedCollection<AttributedString.UnicodeScalarView>
func shuffled() -> [UnicodeScalar]
func shuffled<T>(using: inout T) -> [UnicodeScalar]
func sorted() -> [UnicodeScalar]
func sorted(by: (UnicodeScalar, UnicodeScalar) -> Bool) -> [UnicodeScalar]
func sorted<Comparator>(using: Comparator) -> [UnicodeScalar]
func sorted<S, Comparator>(using: S) -> [UnicodeScalar]
func split(maxSplits: Int, omittingEmptySubsequences: Bool, whereSeparator: (UnicodeScalar) -> Bool) -> [Slice<AttributedString.UnicodeScalarView>]
func split(separator: UnicodeScalar, maxSplits: Int, omittingEmptySubsequences: Bool) -> [Slice<AttributedString.UnicodeScalarView>]
func starts<PossiblePrefix>(with: PossiblePrefix) -> Bool
func starts<PossiblePrefix>(with: PossiblePrefix, by: (UnicodeScalar, PossiblePrefix.Element) -> Bool) -> Bool
func suffix(Int) -> Slice<AttributedString.UnicodeScalarView>
func suffix(from: AttributedString.Index) -> Slice<AttributedString.UnicodeScalarView>
func trimPrefix<Prefix>(Prefix)
func trimPrefix(while: (UnicodeScalar) -> Bool)
func trimmingPrefix<Prefix>(Prefix) -> Slice<AttributedString.UnicodeScalarView>
func trimmingPrefix(while: (UnicodeScalar) -> Bool) -> Slice<AttributedString.UnicodeScalarView>
func withContiguousStorageIfAvailable<R>((UnsafeBufferPointer<UnicodeScalar>) -> R) -> R?
サブスクリプト
subscript(AttributedString.Index) -> UnicodeScalar
subscript(Range<AttributedString.Index>) -> Slice<AttributedString.UnicodeScalarView>
subscript<R>(R) -> Slice<AttributedString.UnicodeScalarView>
subscript((UnboundedRange_) -> ()) -> Slice<AttributedString.UnicodeScalarView>
演算子関数
static func + <Other>(Other, AttributedString.UnicodeScalarView) -> AttributedString.UnicodeScalarView
static func + <Other>(AttributedString.UnicodeScalarView, Other) -> AttributedString.UnicodeScalarView
static func + <Other>(AttributedString.UnicodeScalarView, Other) -> AttributedString.UnicodeScalarView
static func += <Other>(inout AttributedString.UnicodeScalarView, Other)
var runs: AttributedString.Runs
struct AttributedString.Runs
型エイリアス
typealias AttributedString.Runs.Element
typealias AttributedString.Runs.Indices
typealias AttributedString.Runs.Iterator
typealias AttributedString.Runs.SubSequence
インスタンスプロパティ
var count: Int
var description: String
var endIndex: AttributedString.Runs.Index
var first: Run?
var indices: DefaultIndices<AttributedString.Runs>
var isEmpty: Bool
var last: Run?
var lazy: LazySequence<AttributedString.Runs>
var publisher: Publishers.Sequence<AttributedString.Runs, Never>
var startIndex: AttributedString.Runs.Index
var underestimatedCount: Int
インスタンスメソッド
func allSatisfy((Run) -> Bool) -> Bool
func compactMap<ElementOfResult>((Run) -> ElementOfResult?) -> [ElementOfResult]
func compare<Comparator>(Comparator.Compared, Comparator.Compared) -> ComparisonResult
func contains(Run) -> Bool
func contains(where: (Run) -> Bool) -> Bool
func difference<C>(from: C) -> CollectionDifference<Run>
func difference<C>(from: C, by: (C.Element, Run) -> Bool) -> CollectionDifference<Run>
func distance(from: AttributedString.Runs.Index, to: AttributedString.Runs.Index) -> Int
func drop(while: (Run) -> Bool) -> Slice<AttributedString.RunView>
func dropFirst(Int) -> Slice<AttributedString.RunView>
func dropLast(Int) -> Slice<AttributedString.RunView>
func elementsEqual<OtherSequence>(OtherSequence) -> Bool
func elementsEqual<OtherSequence>(OtherSequence, by: (Run, OtherSequence.Element) -> Bool) -> Bool
func enumerated() -> EnumeratedSequence<AttributedString.Runs>
func filter((Run) -> Bool) -> Run
func filter(Predicate<Run>) -> [Run]
func first(where: (Run) -> Bool) -> Run?
func firstIndex(of: Run) -> Index?
func firstIndex(where: (Run) -> Bool) -> Index?
func firstRange<C>(of: C) -> Range<Index>?
func flatMap<SegmentOfResult>((Run) -> SegmentOfResult) -> [SegmentOfResult.Element]
func flatMap<ElementOfResult>((Run) -> ElementOfResult?) -> [ElementOfResult]   廃止  
func forEach((Run) -> Void)
func formIndex(inout AttributedString.Index, offsetBy: Int)
func formIndex(inout AttributedString.Index, offsetBy: Int, limitedBy: AttributedString.Index) -> Bool
func formIndex(after: inout AttributedString.Index)
func formIndex(before: inout AttributedString.Index)
func formatted<S>(S) -> S.FormatOutput
func index(AttributedString.Runs.Index, offsetBy: Int) -> AttributedString.Runs.Index
func index(AttributedString.Runs.Index, offsetBy: Int, limitedBy: AttributedString.Runs.Index) -> AttributedString.Runs.Index?
func index(after: AttributedString.Runs.Index) -> AttributedString.Runs.Index
func index(before: AttributedString.Runs.Index) -> AttributedString.Runs.Index
func index(of: Run) -> Index?   廃止  
func last(where: (Run) -> Bool) -> Run?
func lastIndex(of: Run) -> Index?
func lastIndex(where: (Run) -> Bool) -> Index?
func lexicographicallyPrecedes<OtherSequence>(OtherSequence, by: (Run, Run) -> Bool) -> Bool
func makeIterator() -> IndexingIterator<AttributedString.Runs>
func map<T>((Run) -> T) -> [T]
func max(by: (Run, Run) -> Bool) -> Run?
func min(by: (Run, Run) -> Bool) -> Run?
func prefix(Int) -> Slice<AttributedString.Runs>
func prefix(through: AttributedString.Index) -> Slice<AttributedString.VRuns>
func prefix(upTo: Index) -> Slice<AttributedString.Runs>
func prefix(while: (Run) -> Bool) -> Slice<AttributedString.Runs>
func randomElement() -> Run?
func randomElement<T>(using: inout T) -> Run?
func ranges<C>(of: C) -> [Range
func reduce<Result>(Result, (Result, Run) -> Result) -> Result
func reduce<Result>(into: Result, (inout Result, Run) -> ()) -> Result
func reversed() -> ReversedCollection<AttributedString.Runs>
func shuffled() -> [Run]
func shuffled<T>(using: inout T) -> [Run]
func sorted(by: (Run, Run) -> Bool) -> [Run]
func sorted<Comparator>(using: Comparator) -> [Run]
func sorted<S, Comparator>(using: S) -> [Run]
func split(maxSplits: Int, omittingEmptySubsequences: Bool, whereSeparator: (Run) -> Bool) -> [Slice<AttributedString.Runs>]
func split(separator: Run, maxSplits: Int, omittingEmptySubsequences: Bool) -> [Slice<AttributedString.Runs>]
func starts<PossiblePrefix>(with: PossiblePrefix) -> Bool
func starts<PossiblePrefix>(with: PossiblePrefix, by: (Run, PossiblePrefix.Element) -> Bool) -> Bool
func suffix(Int) -> Slice<AttributedString.Runs>
func suffix(from: Index) -> Slice<AttributedString.Runs>
func trimmingPrefix<Prefix>(Prefix) -> Slice<AttributedString.Runs>
func trimmingPrefix(while: (Run) -> Bool) -> Slice<AttributedString.Runs>
func withContiguousStorageIfAvailable<R>((UnsafeBufferPointer<Run>) -> R) -> R?
サブスクリプト
subscript<T>(KeyPath<AttributeDynamicLookup, T>) -> AttributedString.Runs.AttributesSlice1<T>
subscript(AttributedString.Index) -> AttributedString.Runs.Run
subscript(AttributedString.Runs.Index) -> AttributedString.Runs.Run
subscript<R>(R) -> Slice<AttributedString.Runs>
subscript((UnboundedRange_) -> ()) -> Slice<AttributedString.Runs>
subscript(Range<Index>) -> Slice<AttributedString.Runs>
subscript<T>(T.Type) -> AttributedString.Runs.AttributesSlice1<T>
subscript<T, U>(KeyPath<AttributeDynamicLookup, T>, KeyPath<AttributeDynamicLookup, U>) -> AttributedString.Runs.AttributesSlice2<T, U>
subscript<T, U>(T.Type, U.Type) -> AttributedString.Runs.AttributesSlice2<T, U>
subscript<T, U, V>(KeyPath<AttributeDynamicLookup, T>, KeyPath<AttributeDynamicLookup, U>, KeyPath<AttributeDynamicLookup, V>) -> AttributedString.Runs.AttributesSlice3&lT, U, V>
subscript<T, U, V>(T.Type, U.Type, V.Type) -> AttributedString.Runs.AttributesSlice3<T, U, V>
subscript<T, U, V, W>(KeyPath<AttributeDynamicLookup, T>, KeyPath<AttributeDynamicLookup, U>, KeyPath<AttributeDynamicLookup, V>, KeyPath<AttributeDynamicLookup, W>) -> AttributedString.Runs.AttributesSlice4<T, U, V, W>
subscript<T, U, V, W>(T.Type, U.Type, V.Type, W.Type) -> AttributedString.Runs.AttributesSlice4<T, U, V, W>
subscript<T, U, V, W, X>(KeyPath<AttributeDynamicLookup, T>, KeyPath<AttributeDynamicLookup, U>, KeyPath<AttributeDynamicLookup, V>, KeyPath<AttributeDynamicLookup, W>, KeyPath<AttributeDynamicLookup, X>) -> AttributedString.Runs.AttributesSlice5<T, U, V, W, X>
subscript<T, U, V, W, X>(T.Type, U.Type, V.Type, W.Type, X.Type) -> AttributedString.Runs.AttributesSlice5<T, U, V, W, X>
演算子関数
static func != (AttributedString.Runs, AttributedString.Runs) -> Bool
static func == (AttributedString.Runs, AttributedString.Runs) -> Bool
構造体
struct AttributedString.Runs.AttributesSlice1
struct AttributedString.Runs.AttributesSlice2
struct AttributedString.Runs.AttributesSlice3
struct AttributedString.Runs.AttributesSlice4
struct AttributedString.Runs.AttributesSlice5
struct AttributedString.Runs.Index
型エイリアス
typealias AttributedString.Runs.Index.Stride
インスタンスメソッド
func advanced(by: Int) -> AttributedString.Runs.Index
func distance(to: AttributedString.Runs.Index) -> Int
演算子関数
static func != (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Bool
static func ... (AttributedString.Runs.Index) -> PartialRangeFrom<AttributedString.Runs.Index>
static func ... (AttributedString.Runs.Index) -> PartialRangeThrough<AttributedString.Runs.Index>
static func ... (AttributedString.Runs.Index, AttributedString.Runs.Index) -> ClosedRange<AttributedString.Runs.Index>
static func ..< (AttributedString.Runs.Index) -> PartialRangeUpTo<AttributedString.Runs.Index>
static func ..< (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Range<AttributedString.Runs.Index>
static func < (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Bool
static func <= (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Bool
static func == (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Bool
static func > (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Bool
static func >= (AttributedString.Runs.Index, AttributedString.Runs.Index) -> Bool
struct AttributedString.Runs.Run
インスタンスプロパティ
var attributes: AttributeContainer
var description: String
var range: Range<AttributedString.Index>
サブスクリプト
subscript<K>(K.Type) -> K.Value?
subscript<K>(dynamicMember: KeyPath<AttributeDynamicLookup, K>) -> K.Value?
subscript<S>(dynamicMember: KeyPath<AttributeScopes, S.Type>) -> ScopedAttributeContainer<S>
演算子関数
static func != (AttributedString.Runs.Run, AttributedString.Runs.Run) -> Bool
static func == (AttributedString.Runs.Run, AttributedString.Runs.Run) -> Bool
b>属性付き文字列の変更
func insert(some AttributedStringProtocol, at: AttributedString.Index)
struct AttributedString.Index
func removeSubrange(some RangeExpression<AttributedString.Index>)
func replaceSubrange(some RangeExpression<AttributedString.Index>, with: some AttributedStringProtocol)
属性の変換
func transformingAttributes<K>(K.Type, (inout AttributedString.SingleAttributeTransformer<K>) -> Void) -> AttributedString
func transformingAttributes<K>(KeyPath<AttributeDynamicLookup, K>, (inout AttributedString.SingleAttributeTransformer<K>) -> Void) -> AttributedString
func transformingAttributes<K1, K2>(K1.Type, K2.Type, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>) -> Void) -> AttributedString
func transformingAttributes<K1, K2>(KeyPath<AttributeDynamicLookup, K1>, KeyPath<AttributeDynamicLookup, K2>, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>) -> Void) -> AttributedString
func transformingAttributes<K1, K2, K3>(K1.Type, K2.Type, K3.Type, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>) -> Void) -> AttributedString
func transformingAttributes<K1, K2, K3>(KeyPath<AttributeDynamicLookup, K1>, KeyPath<AttributeDynamicLookup, K2>, KeyPath<AttributeDynamicLookup, K3>, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>) -> Void) -> AttributedString
func transformingAttributes<K1, K2, K3, K4>(K1.Type, K2.Type, K3.Type, K4.Type, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>, inout AttributedString.SingleAttributeTransformer<K4>) -> Void) -> AttributedString
func transformingAttributes<K1, K2, K3, K4>(KeyPath<AttributeDynamicLookup, K1>, KeyPath<AttributeDynamicLookup, K2>, KeyPath<AttributeDynamicLookup, K3>, KeyPath<AttributeDynamicLookup, K4>, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>, inout AttributedString.SingleAttributeTransformer<K4>) -> Void) -> AttributedString
func transformingAttributes<K1, K2, K3, K4, K5>(K1.Type, K2.Type, K3.Type, K4.Type, K5.Type, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>, inout AttributedString.SingleAttributeTransformer<K4>, inout AttributedString.SingleAttributeTransformer<K5>) -> Void) -> AttributedString
func transformingAttributes<K1, K2, K3, K4, K5>(KeyPath<AttributeDynamicLookup, K1>, KeyPath<AttributeDynamicLookup, K2>, KeyPath<AttributeDynamicLookup, K3>, KeyPath<AttributeDynamicLookup, K4>, KeyPath<AttributeDynamicLookup, K5>, (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>, inout AttributedString.SingleAttributeTransformer<K4>, inout AttributedString.SingleAttributeTransformer<K5>) -> Void) -> AttributedString
struct AttributedString.SingleAttributeTransformer
文字列全体の属性へのアクセス
subscript<K>(K.Type) -> K.Value?
subscript<K>(dynamicMember: KeyPath<AttributeDynamicLookup, K>) -> K.Value?
enum AttributeDynamicLookup
subscript<S>(dynamicMember: KeyPath<AttributeScopes, S.Type>) -> ScopedAttributeContainer<S>
struct ScopedAttributeContainer
属性付き文字列の結合
func append(some AttributedStringProtocol)
static func + (AttributedString, AttributedString) -> AttributedString
static func + (AttributedString, some AttributedStringProtocol) -> AttributedString
static func += (inout AttributedString, AttributedString)
static func += (inout AttributedString, some AttributedStringProtocol)
自動文法一致の実行
func inflected() -> AttributedString
文字列補間の実行
struct AttributedString.InterpolationOptions
属性付き文字列の比較
static func == (AttributedString, AttributedString) -> Bool
static func == <RHS>(AttributedString, RHS) -> Bool
static func != (AttributedString, AttributedString) -> Bool
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
コード化と復号化
init(from: any Decoder)
init(from: any Decoder, configuration: AttributeScopeCodableConfiguration)
typealias AttributedString.DecodingConfiguration
func encode(to: any Encoder)
func encode(to: any Encoder, configuration: AttributeScopeCodableConfiguration)
typealias AttributedString.EncodingConfiguration
struct AttributeScopeCodableConfiguration
属性付き文字列キーのコード化と復号化
属性付き文字列の記述
var description: String
型エイリアス
typealias AttributedString.Representation
typealias AttributedString.Specification
typealias AttributedString.UnwrappedType
typealias AttributedString.ValueType
イニシャライザ
init(localized: StaticString, defaultValue: String.LocalizationValue, options: AttributedString.LocalizationOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?)
init<S>(localized: StaticString, defaultValue: String.LocalizationValue, options: AttributedString.LocalizationOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: KeyPath<AttributeScopes, S.Type>)
init<S>(localized: StaticString, defaultValue: String.LocalizationValue, options: AttributedString.LocalizationOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: S.Type)
init(localized: LocalizedStringResource, options: AttributedString.LocalizationOptions)
init<S>(localized: LocalizedStringResource, options: AttributedString.LocalizationOptions, including: KeyPath<AttributeScopes, S.Type>)
init<S>(localized: LocalizedStringResource, options: AttributedString.LocalizationOptions, including: S.Type)
init(localized: String.LocalizationValue, options: AttributedString.LocalizationOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?)
init<S>(localized: String.LocalizationValue, options: AttributedString.LocalizationOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: KeyPath<AttributeScopes, S.Type>)
init<S>(localized: String.LocalizationValue, options: AttributedString.LocalizationOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: S.Type)
型プロパティ
static var defaultResolverSpecification: ResolverSpecification
static var transferRepresentation: TransferRepresentation
構造体
struct AttributedString.AttributeInvalidationCondition
struct AttributedString.LocalizationOptions
列挙型
enum AttributedString.AttributeRunBoundaries
Class AXCategoricalDataAxisDescriptor
カテゴリデータ軸の作成
init(title: String, categoryOrder: [String])
init(attributedTitle: NSAttributedString, categoryOrder: [String])
カテゴリの順序の構成
var categoryOrder: [String]
protocol AXNumericDataAxisDescriptor
数値データ軸の作成
init(title: String, range: ClosedRange<Double>, gridlinePositions: [Double], valueDescriptionProvider: ((Double) -> String))
init(attributedTitle: NSAttributedString, range: ClosedRange<Double>, gridlinePositions: [Double], valueDescriptionProvider: ((Double) -> String))
値の説明の指定
var valueDescriptionProvider: (Double) -> String
座標軸スケールの構成
var scaleType: AXNumericDataAxisDescriptor.ScaleType
enum AXNumericDataAxisDescriptor.ScaleType
スケール
座標軸範囲の構成
var range: ClosedRange<Double>
グリッド線の構成
var gridlinePositions: [Double]
AXDataPoint
データポイントの作成
init(x: String, y: Double?, additionalValues: [AXDataPoint.Value], label: String?)
init(x: Double, y: Double?, additionalValues: [AXDataPoint.Value], label: String?)
データ値の指定
var xValue: AXDataPointValue
var yValue: AXDataPointValue?
class AXDataPointValue
enum AXDataPoint.Value
定数群
ラベルの指定
var label: String?
var attributedLabel: NSAttributedString?
AXDataSeriesDescriptor
データシリーズの作成
init(name: String, isContinuous: Bool, dataPoints: [AXDataPoint])
init(attributedName: NSAttributedString, isContinuous: Bool, dataPoints: [AXDataPoint])
シリーズに名前を付ける
var name: String?
var attributedName: NSAttributedString
データポイントの構成
var isContinuous: Bool
var dataPoints: [AXDataPoint]
コンテンツレイアウトを指定
var contentFrame: CGRect
var contentDirection: AXChartDescriptor.ContentDirection
enum AXChartDescriptor.ContentDirection
コンテンツの方向
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
XYZ