Giter Club home page Giter Club logo

hfcardcollectionviewlayout's People

Contributors

bitomule avatar hfrahmann avatar jwshroyer 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  avatar

hfcardcollectionviewlayout's Issues

Swipe is almost impossible in embedded table

Hi,

It's almost impossible to get the swipe to edit on rows on the embedded table into your layout. The gesture is almost always stolen by the scroll view of the layout. Do you have any idea how to improve this ?

The bug is easy to reproduce by adding some data to the table and an action on swipe like this :
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]?
{
let anAction = UITableViewRowAction(style: .default, title: "An Action")
{
(action, indexPath) -> Void in
//
}
return [anAction]

How to enable multiple section in this library?

I know it is mentioned in the documentation that this library is managed only for one section of collectionview.
I need to implement this but for multiple sections of collection view. How can i acheive it?

How can I detect when a card is being flipped?

I am writing an app where the user can write notes on the back of the cards. I am using a database to store the notes, so I need to update the values in the database when the card gets flipped back (i.e. the user ends editing).

I tried to look for a delegate method called willFlipCard or something like that, but realised that there is no such method. I tried doing the update in willUnrevealCard but apparently by the time that is called, it is too late. The text view instance is already gone.

How can I do something just before the card gets flipped back?

CocoaPod Install issue

Xcode: 9
Pod: 1.2.1

~/Library/Developer/Xcode/DerivedData/MyProject-egbxiztdxsaigpdnlxvcguiokohq/
Build/Intermediates.noindex/Pods.build/
Debug-iphonesimulator/
HFCardCollectionViewLayout.build/module.modulemap:9:12: 
Header 'HFCardCollectionViewLayout-Swift.h' not found
framework module HFCardCollectionViewLayout {
  umbrella header "HFCardCollectionViewLayout-umbrella.h"

  export *
  module * { export * }
}

module HFCardCollectionViewLayout.Swift {
    header "HFCardCollectionViewLayout-Swift.h"
    requires objc
}

iOS 11 contentInset cards under Navigation Bar

Now with iOS 11 and the introduction of the safe area content insets, using the standard contentInset in the HFCardCollectionViewLayout will not work properly. Instead, the adjustedContentInset should be used to get the total adjustment including the safe area and any custom insets.

Collapse all card to top

Hello, I really like your example. In your example all cards collapse at bottom, can i do reverse of it means can i collapse all cards to top and selected card displayed in full screen after the y position of top collapse cards ?

Background updates management

Hi,

I'm looking to connect this to some realm db which update from background sometimes. Is there an api to update the layout without disturbing the user (no animations, same selection) ?

How can I know which side of a card is being shown?

In my app, I want to have a button on the background view that controls the flipping of cards. When you tap it once, the revealed card gets flipped. When you tap it again, the revealed card is flipped back. To implement this, I need a way of determine whether the revealed card is flipped or not, in order to write code like this:

if revealedCardIsFlipped {
    layout.flipRevealedCardBack()
} else {
    layout.flipRevealedCard(toView: someView)
}

As I mentioned in #17, if I could detect when the card is flipped, I could keep track of the revealed card's state using a variable myself. But since I can't, I don't know what to do.

Strange behaviour on delete

If i delete a card while it's flipped the card will disappear and another card will be considered as flipped and will be flipped back. Everything works as expected but we can see a flip animation on the top stacked card which feels weird.

Disabling/controlling shadows?

In my app, I'd like to have a card view that more closely resembles the Wallet app, where each "card" is more card-shaped and has info show up when selected, instead of each card holding all of the info and taking up a whole screen. To accomplish this, I tried setting the color of the cards to blank, but then their shadows are still visible. Is there a way to disable the shadows so that this doesn't occur?

Space at top for background view not observed when only one card

Hi,
Firstly thanks for the great library!
I've come across some inconsistent behaviour.
When a spaceAtTopForBackgroundView value is set with multiple cards and one is revealed it covers the top background space however when there is only one card it does not behave in the same manner i.e. it doesn't cover the background view top. Is this expected or is there anyway to make them behave the same?
Thanks

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.