Comments (6)
Thank you so much for the quickest fix.
It works now, like a charm!
You are So Geniusπ
Have a nice weekend!
from cards.
I have the same issue when it comes to tableViews as well :(
from cards.
The problem was that the card did not layout when the title label text is set.
I'll fix that in the next update.
To solve this just call "layout()" after title is set:
/**
Text of the title label.
*/
@IBInspectable public var title: String = "The Art of the Impossible" {
didSet{
titleLbl.text = title
*** layout() ***
}
}
from cards.
Thank you so much for the reply.
But sadly, I think the problem does not seem to be solved yet.
The cards are okay, but the detailview does not show up correctly - not showing the label and the x button either.
The former is normal, and the latter has the issue.
Thanks a lot.
from cards.
The x button should be hidden when the scroll view is at the top, fixed that.
It took me a bit to find out, but the problem of the label was that the card in the cell was being reused and the DetailViewController(of the card's repo) was messing everything up.
Now a new detailVC is instantiated every time shouldPresent() is called
fileprivate var detailVC: DetailViewController!
public func shouldPresent( _ contentViewController: UIViewController?, from superVC: UIViewController?, fullscreen: Bool = false) {
if let content = contentViewController {
detailVC = DetailViewController()
detailVC.transitioningDelegate = self
self.superVC = superVC
detailVC.addChildViewController(content)
detailVC.detailView = content.view
detailVC.card = self
detailVC.delegate = self.delegate
detailVC.isFullscreen = fullscreen
}
}
For the button just do:
xButton.alpha = 0
in DetailViewController's viewDidLoad()
from cards.
Card Detail View Controller not working while using FSPagerView (https://github.com/WenchaoD/FSPagerView)
from cards.
Related Issues (20)
- Image on card HOT 1
- Updating the title when the view is loaded HOT 1
- change font in Card Group Sliding HOT 1
- Adding an image in CardArticle file gives an error HOT 1
- IB Designables: Error [Help :c]
- Is this library supports Swift 4.0 ? HOT 1
- Open detail view into collection view HOT 1
- iOS 13 Card Dismiss doesn't work HOT 1
- Black screen on dismiss action iOS 13 HOT 4
- [Question] Is it possible to change it to new SwiftUI?
- Shadow offset customization
- Dismiss cards cause black screen on iOS13 and Xcode 11.2 HOT 1
- New update turns the view black after closing the view HOT 3
- How to Support Dark Mode
- Crash! HOT 1
- Crash when player card is tapped for fullscreen effect
- Black Screen and Crash! HOT 1
- IOS14 XCODE BETA 4 : Return black screen after dismiss CardView HOT 5
- Card icon color changes to blue when card expands
- How to create multiple cards using code?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cards.