One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

AttributeScopes.SwiftUIAttributes

struct · iOS 15.0+ · SDK 27.1

struct SwiftUIAttributes

Attribute scopes defined by SwiftUI.

Members (13)

get · iOS 15.0+

foundation

TypeScript
get foundation(): _Foundation_AttributeScopes_FoundationAttributes
Swift declaration
let foundation: AttributeScopes.FoundationAttributes

A property for accessing attributes defined by the Foundation framework. - Note: Not all attributes defined in this scope have an effect when used in SwiftUI views. For a description of supported Foundation attribtutes and their effects, see ``Text/init(_:)-(AttributedString)``.

get · iOS 26.0+

lineHeight

TypeScript
get lineHeight(): _CoreText_AttributeScopes_CoreTextAttributes_LineHeightAttribute
Swift declaration
let lineHeight: AttributeScopes.CoreTextAttributes.LineHeightAttribute

The line height definition of a paragraph.

get · iOS 15.0+

accessibility

TypeScript
get accessibility(): _Accessibility_AttributeScopes_AccessibilityAttributes
Swift declaration
let accessibility: AttributeScopes.AccessibilityAttributes

A property for accessing attributes defined by the Accessibility framework.

get · iOS 15.0+

baselineOffset

TypeScript
get baselineOffset(): AttributeScopes_SwiftUIAttributes_BaselineOffsetAttribute
Swift declaration
let baselineOffset: AttributeScopes.SwiftUIAttributes.BaselineOffsetAttribute

A property for accessing a baseline offset attribute.

get · iOS 15.0+

underlineStyle

TypeScript
get underlineStyle(): AttributeScopes_SwiftUIAttributes_UnderlineStyleAttribute
Swift declaration
let underlineStyle: AttributeScopes.SwiftUIAttributes.UnderlineStyleAttribute

A property for accessing an underline style attribute.

get · iOS 15.0+

backgroundColor

TypeScript
get backgroundColor(): AttributeScopes_SwiftUIAttributes_BackgroundColorAttribute
Swift declaration
let backgroundColor: AttributeScopes.SwiftUIAttributes.BackgroundColorAttribute

A property for accessing a background color attribute.

get · iOS 15.0+

foregroundColor

TypeScript
get foregroundColor(): AttributeScopes_SwiftUIAttributes_ForegroundColorAttribute
Swift declaration
let foregroundColor: AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute

A property for accessing a foreground color attribute.

get · iOS 18.0+

adaptiveImageGlyph

TypeScript
get adaptiveImageGlyph(): AttributeScopes_SwiftUIAttributes_AdaptiveImageGlyphAttribute
Swift declaration
let adaptiveImageGlyph: AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute
get · iOS 15.0+

strikethroughStyle

TypeScript
get strikethroughStyle(): AttributeScopes_SwiftUIAttributes_StrikethroughStyleAttribute
Swift declaration
let strikethroughStyle: AttributeScopes.SwiftUIAttributes.StrikethroughStyleAttribute

A property for accessing a strikethrough style attribute.

get · iOS 15.0+

font

TypeScript
get font(): AttributeScopes_SwiftUIAttributes_FontAttribute
Swift declaration
let font: AttributeScopes.SwiftUIAttributes.FontAttribute

A property for accessing a font attribute.

get · iOS 15.0+

kern

TypeScript
get kern(): AttributeScopes_SwiftUIAttributes_KerningAttribute
Swift declaration
let kern: AttributeScopes.SwiftUIAttributes.KerningAttribute

A property for accessing a kerning attribute.

get · iOS 15.0+

tracking

TypeScript
get tracking(): AttributeScopes_SwiftUIAttributes_TrackingAttribute
Swift declaration
let tracking: AttributeScopes.SwiftUIAttributes.TrackingAttribute

A property for accessing a tracking attribute.

get · iOS 26.0+

alignment

TypeScript
get alignment(): _CoreText_AttributeScopes_CoreTextAttributes_TextAlignmentAttribute
Swift declaration
let alignment: AttributeScopes.CoreTextAttributes.TextAlignmentAttribute

The horizontal alignment of a paragraph.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →