---
title: "Slider Components | Explore SwiftUI"
description: "A control for selecting a value from a bounded linear range of values. Explore 6 SwiftUI slider components with visual code examples."
canonical_url: "https://exploreswiftui.com/library/slider"
meta:
  author: "Explore SwiftUI"
  "og:description": "A control for selecting a value from a bounded linear range of values. Explore 6 SwiftUI slider components with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_Slider%2BComponents%2Cdescription_Explore%2B6%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L3NsaWRlciI%2Cs_2LUlKlAw_A38qWde.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Slider Components | Explore SwiftUI"
  "twitter:description": "A control for selecting a value from a bounded linear range of values. Explore 6 SwiftUI slider components with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_Slider%2BComponents%2Cdescription_Explore%2B6%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L3NsaWRlciI%2Cs_2LUlKlAw_A38qWde.png"
  "twitter:title": "Slider Components | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **Slider Components**

A control for selecting a value from a bounded linear range of values.

6 components

![SliderTickContentForEach - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/133/variants/379?v=1790073478842&r=2&w=412&q=75&f=webp)

### **SliderTickContentForEach**

A type of slider content that creates content by iterating over a collection.

![Custom Slider Ticks - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/86/variants/375?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Custom Slider Ticks**

Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels and customizable ticks.

![Stepped Min Max Label Slider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/51/variants/396?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Stepped Min Max Label Slider**

Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels

![Stepped Slider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/50/variants/273?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Stepped Slider**

Creates a slider to select a value from a given range, subject to a step increment

![Slider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/49/variants/249?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Slider**

Creates a slider to select a value from a given range

![Slider Color - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/52/variants/335?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Slider Color**

Customizing the color of the slider

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/slider#webpage","@type":"WebPage","description":"A control for selecting a value from a bounded linear range of values. Explore 6 SwiftUI slider components with visual code examples.","name":"Slider Components","url":"https://exploreswiftui.com/library/slider","breadcrumb":{"@id":"https://exploreswiftui.com/library/slider#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/slider"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/slider#collectionpage","@type":"CollectionPage","description":"A control for selecting a value from a bounded linear range of values. Explore 6 SwiftUI slider components with visual code examples.","inLanguage":"en-US","name":"Slider Components","url":"https://exploreswiftui.com/library/slider","about":{"@type":"Thing","name":"SwiftUI"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"}},{"@id":"https://exploreswiftui.com/library/slider#/schema/item-list/1","@type":"ItemList","name":"Slider Components","itemListElement":[{"@type":"ListItem","position":1,"name":"SliderTickContentForEach","url":"https://exploreswiftui.com/library/slider/slidertickcontentforeach"},{"@type":"ListItem","position":2,"name":"Custom Slider Ticks","url":"https://exploreswiftui.com/library/slider/custom-slider-ticks"},{"@type":"ListItem","position":3,"name":"Stepped Min Max Label Slider","url":"https://exploreswiftui.com/library/slider/stepped-min-max-label-slider"},{"@type":"ListItem","position":4,"name":"Stepped Slider","url":"https://exploreswiftui.com/library/slider/stepped-slider"},{"@type":"ListItem","position":5,"name":"Slider","url":"https://exploreswiftui.com/library/slider/slider"},{"@type":"ListItem","position":6,"name":"Slider Color","url":"https://exploreswiftui.com/library/slider/slider-color"}]},{"@id":"https://exploreswiftui.com/library/slider#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Slider","item":"https://exploreswiftui.com/library/slider","position":2}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"}]}
```