All Projects → nerdsupremacist → Fancyscrollview

nerdsupremacist / Fancyscrollview

Licence: mit
A SwiftUI ScrollView Designed to imitate the App Store and Apple Music ScrollViews (with or without a Parallax Header)

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Fancyscrollview

Immersivedetailsample
A sample application show how to realize immersive parallax effect header like Google Play Store
Stars: ✭ 457 (+38.48%)
Mutual labels:  parallax, scrollview
React Native App Intro
react-native-app-intro is a react native component implementing a parallax effect welcome page using base on react-native-swiper , similar to the one found in Google's app like Sheet, Drive, Docs...
Stars: ✭ 3,169 (+860.3%)
Mutual labels:  parallax
scrollxp
Alpine.js-esque library for scrolling animations on websites
Stars: ✭ 50 (-84.85%)
Mutual labels:  parallax
Containercontroller
UI Component. This is a copy swipe-panel from app: Apple Maps, Stocks. Swift version
Stars: ✭ 273 (-17.27%)
Mutual labels:  scrollview
Perspective
🖼Parallax scrolling effect. And more.
Stars: ✭ 80 (-75.76%)
Mutual labels:  parallax
Stickyscrollview
Sticky header and footer for android ScrollView.
Stars: ✭ 284 (-13.94%)
Mutual labels:  scrollview
react-native-dual
ScrollView, FlatList, SectionList and ListView with dual background
Stars: ✭ 28 (-91.52%)
Mutual labels:  scrollview
Androidfastscroll
Fast scroll for Android RecyclerView and more
Stars: ✭ 316 (-4.24%)
Mutual labels:  scrollview
Knphotobrowser
📷 图片 || 视频 浏览器(本地和网络) , UIViewController + CollectionView , 完美适配 iPhone 以及 iPad ,屏幕旋转功能 , 适配SDWebImage 5.0
Stars: ✭ 296 (-10.3%)
Mutual labels:  scrollview
Parallax Effect
🤹🏻‍♂️ Parallax effect in javascript using face tracking. An immersive view in 3d with webcam.
Stars: ✭ 275 (-16.67%)
Mutual labels:  parallax
Parallax
Easy parallax View for Android simulating Apple TV App Icons
Stars: ✭ 271 (-17.88%)
Mutual labels:  parallax
vue3-spring
A spring-physics based animation library, and more
Stars: ✭ 30 (-90.91%)
Mutual labels:  parallax
Azexpandableiconlistview
An expandable/collapsible view component written in Swift.
Stars: ✭ 284 (-13.94%)
Mutual labels:  scrollview
HBHybridCollectionView
Instead for SwipeTableView when using collection view.
Stars: ✭ 14 (-95.76%)
Mutual labels:  scrollview
Locomotive Scroll
🛤 Detection of elements in viewport & smooth scrolling with parallax.
Stars: ✭ 4,231 (+1182.12%)
Mutual labels:  parallax
AutoScrollTextView
android 上下滚动播放与走马灯效果结合
Stars: ✭ 27 (-91.82%)
Mutual labels:  scrollview
Perspective
Powerful scrolling and motion parallax for iOS
Stars: ✭ 260 (-21.21%)
Mutual labels:  parallax
React Native Collapsing Toolbar
react-native wrapper for android CollapsingToolbarLayout
Stars: ✭ 280 (-15.15%)
Mutual labels:  parallax
React Native Input Scroll View
Perfect TextInput ScrollView
Stars: ✭ 323 (-2.12%)
Mutual labels:  scrollview
Tilt.js
A tiny 60+fps parallax tilt hover effect for jQuery.
Stars: ✭ 3,442 (+943.03%)
Mutual labels:  parallax

FancyScrollView

I spent a lot of time looking for a way to recreate the UI of the ScrollViews in Stock Apple Apps (i.e. App Store and Apple Music) inside of SwiftUI.

And here is the result! I call it FancyScrollView. It's a ScrollView with a few extra perks:

Fancy Blur when scrolling

Use a FancyScrollView instead of a normal ScrollView and it will add a nice blur in the safe area. Making your View look much cleaner while scrolling!

FancyScrollView {
	VStack {
		...
	}
}

Result:

Including a Header

I was really surprised by the fact I couldn't find a proper Package for adding a nice Parallax header to a ScrollView. So I included it here! And you can customize everything about it:

Scrolling Up Behavior:

You can specify one of two behaviors:

public enum ScrollUpHeaderBehavior {
    case parallax // Will zoom out all pretty ;)
    case sticky // Will stay at the top
}

Scrolling Down Behavior:

public enum ScrollDownHeaderBehavior {
    case offset // Will move the header with the content
    case sticky // Will stay at the top and the content will cover the header
}

Let's see them in action!

Here's every combination between scrolling behaviors

Parallax + Offset (Default):

This is the default and appears to be the most neutral and standard version of the ScrollView Header in the Market. Chances are, you want this one!

FancyScrollView(title: "The Weeknd",
                headerHeight: 350,
                scrollUpHeaderBehavior: .parallax,
                scrollDownHeaderBehavior: .offset,
                header: { Image(...).resizable().aspectRatio(.fill) }) {
	...
}

Result:

Parallax + Sticky:

This combination is designed to imitate the header from the Artist Detail View in Apple Music.

FancyScrollView(title: "The Weeknd",
                headerHeight: 350,
                scrollUpHeaderBehavior: .parallax,
                scrollDownHeaderBehavior: .sticky,
                header: { Image(...).resizable().aspectRatio(.fill) }) {
	...
}

Result:

Sticky + Offset:

This combination is designed to imitate the header from the "Today" showcases in the App Store.

FancyScrollView(title: "The Weeknd",
                headerHeight: 350,
                scrollUpHeaderBehavior: .sticky,
                scrollDownHeaderBehavior: .offset,
                header: { Image(...).resizable().aspectRatio(.fill) }) {
	...
}

Result:

Sticky + Sticky:

I'm not sure who's looking for this behavior, but it looks cool. So, you do you!

FancyScrollView(title: "The Weeknd",
                headerHeight: 350,
                scrollUpHeaderBehavior: .sticky,
                scrollDownHeaderBehavior: .sticky,
                header: { Image(...).resizable().aspectRatio(.fill) }) {
	...
}

Result:

Known Issues

  • The pop back navigation bar gesture is broken in these.
    • Sorry, but I couldn't find a proper way to get access to the Gesture Recognizer without the ScrollView being the first screen in a NavigationView
  • The back button always appears when you have a header (Only use it for details or modals)
    • I didn't find a way to know whether there's a screen to go back to
  • On light mode with a header the Status Bar doesn't look great. Didn't find a way to change it to white.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].