PaoloCuscela / Cards

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

Add Subviews to Card View Not Possible on Xib File #65

Closed muhasturk closed 5 years ago

muhasturk commented 6 years ago

I would like to create custom Card View that includes some other child views inside itself. When I run project the result does not look like what I want. Subviews are not visible.

Subviews inside Card View

Subviews Over Card View

Subviews over Card View looks ok, however it comes with tap gesture recognizer problem vs.

How can I properly make custom nib Card file?

PaoloCuscela commented 6 years ago

I don’t think you can do it by storyboard. To make a custom Card layot the best approach would be creating a Card’ subclass and laying out your subviews in the layout(CGRect) method