---
title: "Hard ScrollEdgeEffect | Explore SwiftUI"
description: "A scroll edge effect with a hard cutoff and dividing line. Learn how to use Hard ScrollEdgeEffect in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect"
meta:
  author: "Explore SwiftUI"
  "og:description": "A scroll edge effect with a hard cutoff and dividing line. Learn how to use Hard ScrollEdgeEffect in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Hard%2BScrollEdgeEffect%2Cdescription_A%2Bscroll%2Bedge%2Beffect%2Bwith%2Ba%2Bhard%2Bcutoff%2Band%2Bdividing%2Bline%2Ccategory_ScrollView%2Cimage_~L2FwaS9pbWFnZXMvODMvdmFyaWFudHMvMzIwP3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz0xMjgwJnE9ODUmZj1qcGVn%2CimageMode_crop%2CimagePosition_top%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm90dG9tOiAwOyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNzRweDs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyJdfQ%2Cp_Ii9saWJyYXJ5L3Njcm9sbHZpZXcvaGFyZC1zY3JvbGxlZGdlZWZmZWN0Ig%2Cs_yxkfYGc5XOCK9-Xr.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Hard ScrollEdgeEffect | Explore SwiftUI"
  "twitter:description": "A scroll edge effect with a hard cutoff and dividing line. Learn how to use Hard ScrollEdgeEffect in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Hard%2BScrollEdgeEffect%2Cdescription_A%2Bscroll%2Bedge%2Beffect%2Bwith%2Ba%2Bhard%2Bcutoff%2Band%2Bdividing%2Bline%2Ccategory_ScrollView%2Cimage_~L2FwaS9pbWFnZXMvODMvdmFyaWFudHMvMzIwP3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz0xMjgwJnE9ODUmZj1qcGVn%2CimageMode_crop%2CimagePosition_top%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm90dG9tOiAwOyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNzRweDs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyJdfQ%2Cp_Ii9saWJyYXJ5L3Njcm9sbHZpZXcvaGFyZC1zY3JvbGxlZGdlZWZmZWN0Ig%2Cs_yxkfYGc5XOCK9-Xr.png"
  "twitter:title": "Hard ScrollEdgeEffect | Explore SwiftUI"
---

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

**Interactive previews**[ iPhone](https://exploreswiftui.com/iphone?element=83)

# **Hard ScrollEdgeEffect**

A scroll edge effect with a hard cutoff and dividing line

![Hard ScrollEdgeEffect - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/83/variants/320?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 26.0+ iPadOS 26.0+ macOS 26.0+ watchOS 26.0+ tvOS 26.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/scrolledgeeffectstyle/hard)

```
NavigationStack {
  List {
    ForEach(0 ..< 100, id: \.self) {
      Text("Item \($0)")
    }
  }
  .toolbar {
    Button("foo", action: action)
  }
  .scrollEdgeEffectStyle(.hard, for: .all)
}
```

### **Found an issue or have a suggestion?**

Created: June 10, 2025Updated: December 27, 2025

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

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

### **Menu Divider**

A Menu with a Divider

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

### **LinearCapacityGaugeStyle**

A gauge style that displays a bar that fills from leading to trailing edges as the gauge’s current value increases

![Increased Header Prominence - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/108/variants/331?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Increased Header Prominence**

Sets the header prominence to increased for this view.

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

### **GraphicalDatePickerStyle**

A date picker style that displays an interactive calendar or clock

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

### **PasteButton**

A system button that reads items from the pasteboard and delivers it to a closure.

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

### **Custom Value Label Picker**

Creates a picker that generates its label from a localized string key and accepts a custom current value label.

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

### **Toggle**

Creates a toggle with title, image, systemImage, and custom label.

![List Item Tint - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/116/variants/285?v=1790073478842&r=2&w=412&q=75&f=webp)

### **List Item Tint**

Sets a fixed tint color for content in a list.

```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/scrollview/hard-scrolledgeeffect#webpage","@type":"WebPage","dateModified":"2025-12-27T10:04:55.337Z","datePublished":"2025-06-10T05:58:26.404Z","description":"A scroll edge effect with a hard cutoff and dividing line. Learn how to use Hard ScrollEdgeEffect in SwiftUI with visual code examples.","name":"Hard ScrollEdgeEffect","url":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect","breadcrumb":{"@id":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect"]}],"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/scrollview/hard-scrolledgeeffect#article","dateModified":"2025-12-27T10:04:55.337Z","datePublished":"2025-06-10T05:58:26.404Z","description":"A scroll edge effect with a hard cutoff and dividing line. Learn how to use Hard ScrollEdgeEffect in SwiftUI with visual code examples.","headline":"Hard ScrollEdgeEffect","inLanguage":"en-US","name":"Hard ScrollEdgeEffect","thumbnailUrl":"https://exploreswiftui.com/api/images/83/variants/320?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/swiftui/scrolledgeeffectstyle/hard","codeSampleType":"full example","description":"A scroll edge effect with a hard cutoff and dividing line. Learn how to use Hard ScrollEdgeEffect in SwiftUI with visual code examples.","name":"Hard ScrollEdgeEffect SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"NavigationStack {\n  List {\n    ForEach(0 ..\u003C 100, id: \\.self) {\n      Text(\"Item \\($0)\")\n    }\n  }\n  .toolbar {\n    Button(\"foo\", action: action)\n  }\n  .scrollEdgeEffectStyle(.hard, for: .all)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"ScrollView"},{"@type":"Thing","name":"Hard ScrollEdgeEffect"}]},{"@id":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"ScrollView","item":"https://exploreswiftui.com/library/scrollview","position":2},{"@type":"ListItem","name":"Hard ScrollEdgeEffect","item":"https://exploreswiftui.com/library/scrollview/hard-scrolledgeeffect","position":3}]},{"@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"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/83/variants/320?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/83/variants/320?v=1790073478842&r=2"}]}
```