iOS 11 cards in Swift
iOS 11 cards in Swift
Add the CardKit.swift
file to your Xcode project.
CardView
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)
}