Giter Site home page Giter Site logo

weitieda / bottom-sheet Goto Github PK

View Code? Open in Web Editor NEW
803.0 6.0 54.0 4.13 MB

⬆️ A SwiftUI view component sliding in from bottom

License: MIT License

Swift 96.29% Ruby 3.71%
swift swiftui swiftpackage swiftpackagemanager animation ios sheet card drag

bottom-sheet's Introduction

I'm Tieda.

🎯 👨‍💻 📱 🖥

bottom-sheet's People

Contributors

4brunu avatar avgx avatar getogrand avatar jkimdev avatar joncottrell avatar marcusadriano avatar melle avatar weitieda 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

bottom-sheet's Issues

Pod spec dependency on this package

Hello. I am in the process of publishing a framework to cocoa pods. I have two dependencies, this package and kingfisher. I am able to add the dependency to kingfisher no problem in the podspec file. But this package seems to be have it specs hosted in a private repository. I am not able to use it as a dependency. I was wondering if anyone knew the url that the spec is hosted at or if anyone knew how i could handle this.

Thank you very much!

Keyboard overlaps bottomSheet

Thanks for creating this library

I am trying to use TextEditor inside .bottomSheet. UI works as expected
bottomSheet

However, as soon as I tap inside TextEditor, keyboard pops up and covers the bottom sheet
bottomSheet_keyboard

What can be done to readjust the bottom sheet?

When content is ScrollView, glitch behaviour

In full_content_draggable branch, instead of only the top bar is draggable, I've been able to make the complete content view draggable. But when content is ScrollView and scroll the content list, there's a random glitch. Haven't figured out yet.

If you have a solution, feel free to create PR.

Thanks :)

Can't dismiss bottomsheet

I found couple of issues,

  1. Bottom sheet not dismiss when tap on the NavigationBar.
  2. NavigationBarButton is active while present bottom sheet.

Unable to mimic .sheet usage for project.

Forgive me please, as this is my first attempt at an issue and I'm new to programming. I am trying to utilize your wonderful SPM project in my own application.

@State var presentedLocation: Location?
           
 .sheet(item: $presentedLocation) { place in
    SelectedBusinessSheet(selectedBusiness: place)
}

Above is how I would call this sheet and display the data. the presentedLocation is an identifiable struct that is used to create an array of data. This method displays the sheet as desired but it looks poorly and would look better in a BottomSheet.

I am unable to mimic this method however, as displayed below, I get the following errors.

.bottomSheet(isPresented: $presentedLocation, height: 700, content: { place in
   SelectedBusinessSheet(selectedBusiness: place)
})

  • Cannot convert value of type 'Binding<Location?>' to expected argument type 'Binding'
  • Contextual closure type '() -> SelectedBusinessSheet' expects 0 arguments, but 1 was used in closure body

I apologize if these are obvious errors that can be easily rectified. Any help is appreciated!

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.