GitHunt
PR

programmarchy/CardComponents

Card components for iOS with shadows and rounded corners

Card Components

Render card components for iOS with shadows and rounded corners.

CardView

Render rounded corners and shadows with a single UIView.

CompositeCardView

Also need to clip content inside a card?

Use a composite card view to render unclipped shadows in a container card view, and render rounded corners in a content view that clips inner content.

PartialCardView

Only need to render the top, bottom, or side edges of a card?

Use a partial card view with drawing modes to render top, center, bottom, or all effects.

PartialCardImage

Similar to PartialCardView, instead of rendering effects dynamically with CALayer, the effects can be rendered into a static, resizable UIImage. This can speed up rendering, and affords the flexibility of rendering cards into a UIImageView.

CardTableViewController

Render grouped UITableView sections using PartialCardImage under the hood to draw cell background views.

Languages

Swift100.0%

Contributors

MIT License
Created February 27, 2019
Updated February 21, 2020