hfrahmann / hfcardcollectionviewlayout Goto Github PK
View Code? Open in Web Editor NEWThe HFCardCollectionViewLayout provides a card stack layout not quite similar like the apps Reminder and Wallet.
License: MIT License
The HFCardCollectionViewLayout provides a card stack layout not quite similar like the apps Reminder and Wallet.
License: MIT License
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 ?
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?
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) ?
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
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?
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.
Hi there, is it possible to make the various animation parameters public?
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]
I cant make reveal method on swift 4.1 im too noob to modify it can you help?
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?
Hi,
is it possible to fix the height of the cards?
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
}
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.