Skip to content

carson-katri/CardKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardKit iOS 11 cards in Swift

Installation

Add the CardKit.swift file to your Xcode project.

Usage

Storyboard

  • Add a UIView

UIView

  • Change it to a CardView

CardView

  • Change any settings

Options

Options

You can also make a blurred CardView, however the shadow will not be applied. A CardView can also detect a tap:

// Set to .none for no blur
card.blur = .light
card.tapped = {
  self.dismiss(animated: true, completion: nil)
}