プロトコル


DecodableAttributedStringKey


属性キーがその値を復号する方法を定義するプロトコル。


iOS 15.0+ iPadOS 15.0+ macOS 12.0+ Mac Catalyst 15.0+

tvOS 15.0+ WatchOS 8.0+ VisionOS 1.0+ Xcode 13.0+

protocol DecodableAttributedStringKey





概観


属性を復号可能にするには、このプロトコルを実装します。AttributedString または AttributeContainer を復号化すると、それらの型がこのプロトコルに準拠していない属性はすべて削除されます。






トピックス


値の復号化


static func decode(from: Decoder) -> Self.Value

提供された復号器から値を復号します。

必須 デフォルトの実装が提供されます。






関連


以下からの継承


AttributedStringKey



準拠する型


AttributeScopes.FoundationAttributes.AgreementArgumentAttribute

AttributeScopes.FoundationAttributes.AgreementConceptAttribute

AttributeScopes.FoundationAttributes.AlternateDescriptionAttribute

AttributeScopes.FoundationAttributes.ByteCountAttribute

AttributeScopes.FoundationAttributes.DateFieldAttribute

AttributeScopes.FoundationAttributes.DurationFieldAttribute

AttributeScopes.FoundationAttributes.ImageURLAttribute

AttributeScopes.FoundationAttributes.InflectionAlternativeAttribute

AttributeScopes.FoundationAttributes.InflectionRuleAttribute

AttributeScopes.FoundationAttributes.InlinePresentationIntentAttribute

AttributeScopes.FoundationAttributes.LanguageIdentifierAttribute

AttributeScopes.FoundationAttributes.LinkAttribute

AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateArgumentAttribute

AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateIntervalArgumentAttribute

AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedNumericArgumentAttribute

AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedURLArgumentAttribute

AttributeScopes.FoundationAttributes.MarkdownSourcePositionAttribute

AttributeScopes.FoundationAttributes.MeasurementAttribute

AttributeScopes.FoundationAttributes.MorphologyAttribute

AttributeScopes.FoundationAttributes.NumberFormatAttributes.NumberPartAttribute

AttributeScopes.FoundationAttributes.NumberFormatAttributes.SymbolAttribute

AttributeScopes.FoundationAttributes.PersonNameComponentAttribute

AttributeScopes.FoundationAttributes.PresentationIntentAttribute

AttributeScopes.FoundationAttributes.ReferentConceptAttribute

AttributeScopes.FoundationAttributes.ReplacementIndexAttribute






以下も見よ


コード化と復号化のキー


protocol EncodableAttributedStringKey

属性キーがその値をコード化する方法を定義するプロトコル。


typealias CodableAttributedStringKey

コード化可能および復号化可能の両方の属性キーによって使用される型エイリアス。















トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ












トップへ