<!--
{
  "documentType" : "article",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View-style-modifiers",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Style modifiers"
}
-->

# Style modifiers

Apply built-in styles to different types of views.

## Overview

SwiftUI defines built-in styles for certain kinds of views, and chooses the
appropriate style for a particular presentation context. For example, a
[`Label`](/documentation/SwiftUI/Label) might appear as an icon, a string title, or both, depending on
factors like the platform, whether the view appears in a toolbar, and so on.

You can override the automatic style by using one of the style modifiers.
These modifiers typically propagate through container views, so you can
wrap an entire view hierarchy in a style modifier to affect all the views
of the given type within the hierarchy.
Some view types enable you to create custom styles, which you also
apply using style modifiers.

For more information about styling views, see [View styles](/documentation/SwiftUI/View-styles).

## Topics

### Liquid Glass

[`glassEffect(_:in:)`](/documentation/SwiftUI/View/glassEffect(_:in:))

Applies the Liquid Glass effect to a view.

[`glassEffectID(_:in:)`](/documentation/SwiftUI/View/glassEffectID(_:in:))

Associates an identity value to Liquid Glass effects defined within
this view.

[`glassEffectTransition(_:)`](/documentation/SwiftUI/View/glassEffectTransition(_:))

Associates a glass effect transition with any
glass effects defined within this view.

[`glassEffectUnion(id:namespace:)`](/documentation/SwiftUI/View/glassEffectUnion(id:namespace:))

Associates any Liquid Glass effects defined within this view
to a union with the provided identifier.

### Controls

[`func   buttonStyle ( _ :)`](/documentation/SwiftUI/View/buttonStyle(_:))

Sets the style for buttons within this view to a button style with a
custom appearance and standard interaction behavior.

[`buttonSizing(_:)`](/documentation/SwiftUI/View/buttonSizing(_:))

The preferred sizing behavior of buttons in the view hierarchy.

[`datePickerStyle(_:)`](/documentation/SwiftUI/View/datePickerStyle(_:))

Sets the style for date pickers within this view.

[`menuStyle(_:)`](/documentation/SwiftUI/View/menuStyle(_:))

Sets the style for menus within this view.

[`pickerStyle(_:)`](/documentation/SwiftUI/View/pickerStyle(_:))

Sets the style for pickers within this view.

[`toggleStyle(_:)`](/documentation/SwiftUI/View/toggleStyle(_:))

Sets the style for toggles in a view hierarchy.

### Indicators

[`gaugeStyle(_:)`](/documentation/SwiftUI/View/gaugeStyle(_:))

Sets the style for gauges within this view.

[`progressViewStyle(_:)`](/documentation/SwiftUI/View/progressViewStyle(_:))

Sets the style for progress views in this view.

### Text

[`labelStyle(_:)`](/documentation/SwiftUI/View/labelStyle(_:))

Sets the style for labels within this view.

[`labeledContentStyle(_:)`](/documentation/SwiftUI/View/labeledContentStyle(_:))

Sets a style for labeled content.

[`textFieldStyle(_:)`](/documentation/SwiftUI/View/textFieldStyle(_:))

Sets the style for text fields within this view.

[`textEditorStyle(_:)`](/documentation/SwiftUI/View/textEditorStyle(_:))

Sets the style for text editors within this view.

### Collections

[`listStyle(_:)`](/documentation/SwiftUI/View/listStyle(_:))

Sets the style for lists within this view.

[`tableStyle(_:)`](/documentation/SwiftUI/View/tableStyle(_:))

Sets the style for tables within this view.

[`disclosureGroupStyle(_:)`](/documentation/SwiftUI/View/disclosureGroupStyle(_:))

Sets the style for disclosure groups within this view.

### Presentation

[`navigationSplitViewStyle(_:)`](/documentation/SwiftUI/View/navigationSplitViewStyle(_:))

Sets the style for navigation split views within this view.

[`tabViewStyle(_:)`](/documentation/SwiftUI/View/tabViewStyle(_:))

Sets the style for the tab view within the current environment.

[`presentedWindowStyle(_:)`](/documentation/SwiftUI/View/presentedWindowStyle(_:))

Sets the style for windows created by interacting with this view.

[`presentedWindowToolbarStyle(_:)`](/documentation/SwiftUI/View/presentedWindowToolbarStyle(_:))

Sets the style for the toolbar in windows created by
interacting with this view.

### Groups

[`controlGroupStyle(_:)`](/documentation/SwiftUI/View/controlGroupStyle(_:))

Sets the style for control groups within this view.

[`formStyle(_:)`](/documentation/SwiftUI/View/formStyle(_:))

Sets the style for forms in a view hierarchy.

[`groupBoxStyle(_:)`](/documentation/SwiftUI/View/groupBoxStyle(_:))

Sets the style for group boxes within this view.

[`indexViewStyle(_:)`](/documentation/SwiftUI/View/indexViewStyle(_:))

Sets the style for the index view within the current environment.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)