Git Product home page Git Product logo

Comments (6)

seongki1 avatar seongki1 commented on August 25, 2024 1

Thank you so much for the quickest fix.
It works now, like a charm!
You are So GeniusπŸ˜‰
Have a nice weekend!

from cards.

mteera avatar mteera commented on August 25, 2024

I have the same issue when it comes to tableViews as well :(

from cards.

PaoloCuscela avatar PaoloCuscela commented on August 25, 2024

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() ***
        }
    }

CardDemo.zip

from cards.

seongki1 avatar seongki1 commented on August 25, 2024

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.
screen shot 2018-02-11 at 12 33 14 am
screen shot 2018-02-11 at 12 32 22 am

The former is normal, and the latter has the issue.
Thanks a lot.

from cards.

PaoloCuscela avatar PaoloCuscela commented on August 25, 2024

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()

CardDemo 2.zip

from cards.

SahilDhawan avatar SahilDhawan commented on August 25, 2024

Card Detail View Controller not working while using FSPagerView (https://github.com/WenchaoD/FSPagerView)

from cards.

Related Issues (20)

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.