StructureString
String.LocalizationValue
A value — created from a string literal or string interpolation — used to look up a localized entry in a strings file or strings dictionary file.
Availability
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
- Xcode 13.0+
Technology
- Foundation ファウンデーション
Declaration 宣言
struct LocalizationValue
Topics 話題
Type Aliases 型エイリアス
Initializers イニシャライザ
Operator Functions 演算子関数
Structures 構造体
Relationships 関係
Conforms To 次に準拠
See Also 参照
Creating a Localized Attributed String
init(localized: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?)
Creates an attributed string by looking up a localized string from the app’s bundle.
init<S>(localized: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: S.Type)
Creates an attributed string by looking up a localized string from the app’s bundle, including an attribute scope.
init<S>(localized: String.LocalizationValue, options: AttributedString.FormattingOptions, table: String?, bundle: Bundle?, locale: Locale?, comment: StaticString?, including: KeyPath<AttributeScopes, S.Type>)
Creates an attributed string by looking up a localized string from the app’s bundle, including an attribute scope that a key path identifies.
struct AttributedString.FormattingOptions
Options that affect the handling of attributes.