PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.21k stars 275 forks source link

detailView is private variable #15

Closed julius94 closed 7 years ago

julius94 commented 7 years ago

Hello,

According to getting started guide 2nd step, we should do this:

let detailVC = storyboard?.instantiateViewController(withIdentifier: "CardContent")
card.detailView = detailVC?.view

But the thing is, how do you assign value to a private variable of Card class?

Here is the declaration of "detailView" property in Card class:

fileprivate var detailView: UIView?
PaoloCuscela commented 7 years ago

In the new release (1.2.4) detailView is set by using the method

card.shouldPresent( _ : UIView, from _ : UIViewController)

I'll update the README, thanks.