Giter Site home page Giter Site logo

nerdsupremacist / fancyscrollview Goto Github PK

View Code? Open in Web Editor NEW
934.0 11.0 52.0 64.5 MB

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

License: MIT License

Swift 100.00%
swiftui scrollview parallax apple-music app-store

fancyscrollview's People

Contributors

devraj avatar nerdsupremacist avatar nuplay avatar palle-k avatar petrehoffmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fancyscrollview's Issues

Title style

Hello! Thanks for the great work!
Just one tiny issue: Could you have the title property be a text view instead of a string? So we can use custom font style.
Let me know

Swipe back to dismiss is broken (but there's a fix)

Hello. Thanks for making this handy library. I've noticed that on modern iOS versions the swipe back functionality is broken despite the fact that an old fix is in place. Luckily, I found a solution by implementing the following extension.

extension UINavigationController {
    override open func viewDidLoad() {
        super.viewDidLoad()
        interactivePopGestureRecognizer?.delegate = nil
    }
}

That's it! View+hideNavigationBarWithoutLosingSwipeBack.swift and View+hideNavigationBarWithoutLosingSwipeBack.swift are no longer required using this method.

If you wish I could open a pull request. Regardless I hope this may be useful to someone in the future.

Blur effect and animation

Hi, great work, really!!
Just two questions: I've been going through the code and wanted to ask how do you change the blur effect? I'm not talking about the ultraThinMaterial which is fine but I think the issue comes with the opacity, that makes the blur less effective.
Also it seems like the blur effect appears with a delay (for example if you scroll very fast at the start). How can I change that?
Thanks.

View doesn't adapt properly on change of display mode

If the display mode is changed the navigation view does not adapt properly.

This is consistent changing between light and dark mode.

When the mode changes the navigation reveals itself.

IMG_0160
IMG_0159
IMG_0158

I have forked the repository in the hope of providing a pull request.

Panning from left edge in navigation link destination does not navigate back

When FancyScrollView is used in a view that is reached through a NavigationLink, it is not possible to pan from the left screen edge to navigate back.

Minimal example:

import SwiftUI
import FancyScrollView

struct ContentView: View {
    var body: some View {
        NavigationView {
            NavigationLink("Foo", destination: ChildView())
        }
    }
}

struct ChildView: View {
    var body: some View {
        FancyScrollView {
            Text("Bar")
        }
    }
}

Steps to reproduce:

  1. Open the app
  2. Tap on "Foo" to navigate to the ChildView
  3. Place finger on left side of screen and swipe right to navigate back

Version information:
FancyScrollView 0.1.2
iOS 13.6 (17G5045c)

Possibility to add buttons to the navigation bar

Is it somehow possible to add custom buttons to the navigation bar, like one would normally do with the .navigationBarItems() method? I really love this library but this seems like something that could be very useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.