Тёмный

iOS Swift Tutorial: Pull to Refresh with SwiftUI and UIViewRepresentable (2020) | Brian Advent 

Brian Advent
Подписаться 75 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@KK-pq6lu
@KK-pq6lu 4 года назад
Brian, great as always. This particular code would be perfect to make a corresponding video where you convert this code to use generics. I think with this particular use case, converting it would go along way to helping generics “sink in”
@teamspirit6400
@teamspirit6400 4 года назад
Thank you! Waiting for the live stream
@nursultanaskarbekuly4032
@nursultanaskarbekuly4032 3 года назад
crazy that we have to write so much code for a simple pull to refresh functionality
@AhmdIsmail
@AhmdIsmail 2 года назад
Well, in iOS 15 you can just use .refreshable(action:) List modifier but there's two things to consider: 1. your app should make use of async await so you can pass a closure with await statement to the action: parameter so the refresh control would know when to end refreshing. 2. this is not supported in iOS 14 and earlier and that's why I'm here watching this video 😁
@AlexCopter33
@AlexCopter33 2 года назад
​@@AhmdIsmail 3. and .refreshable can't be customized for voiceover users, you hear "rose" during refresh.
@GoeHybrid
@GoeHybrid 3 года назад
Shipping swiftui with scrollview, which doesn't have a pull to refresh functionality is like having a car without an engine. Apple being a hot garbage once again.
@goncalocgaspar
@goncalocgaspar 3 года назад
This only works if data is synchronized....
@IonWP
@IonWP 4 года назад
Hello. So amazing. Which MacBook you have ?
@bartjuhh12
@bartjuhh12 4 года назад
I have two questions: - It doesn't seem to work without the NavigationView inside the GeometryReader. Why is that? I already have a root NavigationView elsewhere. - Does this support programmatic refresh?
@thucpham2211
@thucpham2211 3 года назад
Do you mind explain how does it work with async data? Sorry the reason I ask is because I got an issue with Pull To Refresh in Large Title
@andykotov-dev
@andykotov-dev 3 года назад
and if I don't need the list as a data display, your frame won't work correctly
@TheHiHiker
@TheHiHiker 4 года назад
How do you launch the second UI ?
Далее
SwiftUI 2.0: MVVM - A Practical Approach
14:28
Просмотров 32 тыс.
Women’s Celebrations + Men’s 😮‍💨
00:20
Room Renovations | Android Conference Talks
11:33
Просмотров 14 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
The Complete Guide to NavigationView in SwiftUI
39:18
Просмотров 130 тыс.
Create an AR Game with RealityKit - Swift Tutorial
35:15
Women’s Celebrations + Men’s 😮‍💨
00:20