Thumbprint logo

Shadow Card

A control that's an empty box with a shadow

iOS (UIKit) is being deprecated

Thumbprint on iOS is transitioning from UIKit to SwiftUI, and this documentation is no longer being supported. Please refer to the SwiftUI documentation when available.

Summary

This control is a UIView with a default appearance and a highlighted appearance.

let shadowCard = ShadowCard()
shadowCard.isHighlighted = true

It's also possible to provide a custom shadow image.

let shadowCard = ShadowCard(shadowImage: UIImage(named: "funky-shadow"))