SwiftUI 3.0: How to use "Pull To Refresh"?

Опубликовано: 29 Июнь 2026
на канале: Drag0ndust
80
3

In this video I'll show you how to use the new "refreshable" modifier to load data asynchronously from an url on pull to refresh.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▼ Timstamps ▼
00:00 1 | Intro
00:04 2 | View Preparation
01:02 3 | Binding for the "Completed" state
01:53 4 | Pull To Refresh Code
03:07 5 | Result
03:18 6 | Outro

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

📷 Instagram:   / drag0ndust  
🐦 Twitter:   / drag0ndust  
🚀 Github: https://github.com/drag0ndust
🖖 Patreon:   / drag0ndust  

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

📱Stuffatory: https://apps.apple.com/app/stuffatory...