正在加载视频...

视频加载失败

With the new scrollPosition, scrollPhase, and scrollGeometry modifiers, we can now create a scrollable tab bar similar to the one found in Instagram’s Profile Layout. Note: The primary paging view is a horizontal scroll view, and each page view is an individual vertical scroll view.

13,867 次观看 • 1 年前 •via X (Twitter)

5 条评论

Aleksandr Chichkanov 的头像
Aleksandr Chichkanov1 年前

I am curious. Since you mention that the paging view is a horizontal scroll view, it means that the header area won’t be scrollable? This seems to be pretty important for apps like instagram, where the header can be pretty big

Aleksandr Chichkanov 的头像
Aleksandr Chichkanov1 年前

That’s amazing. However, I think the main problem of all the implementations of this behavior in SwiftUI is that tabs content is not “lazy”, usually it’s just a vstack. Which is rarely usable in a real app like instagram. Really excited to see what you came up with.

Adriano Ferreira 的头像
Adriano Ferreira1 年前

Can this be used to replicate Family app tab bar?

Cory Bunge 的头像
Cory Bunge1 年前

when is this video coming out?

Pramod Shukla 🚩 的头像
Pramod Shukla 🚩1 年前

Full video

相关视频