
Skeleton Loader
Beautiful skeleton loading screens with shimmer animation. Includes pre-built components for cards, lists, grids, profiles, and comments. Features a modifier to easily add skeleton loading to any view. Perfect for improving perceived performance.
- skeleton
- loading
- animation
snippet.swift482 lines
10 files • Scroll to see all →
public struct SkeletonStyle { let baseColor: Color let highlightColor: Color let cornerRadius: CGFloat let animationDuration: Double public init( baseColor: Color = Color(.systemGray5), highlightColor: Color = Color(.systemGray4), cornerRadius: CGFloat = 8, animationDuration: Double = 1.5 ) { self.baseColor = baseColor self.highlightColor = highlightColor self.cornerRadius = cornerRadius self.animationDuration = animationDuration } public static let `default` = SkeletonStyle() public static let rounded = SkeletonStyle(cornerRadius: 12) public static let circular = SkeletonStyle(cornerRadius: 999)}Viewing: SkeletonStyle.swift•1 of 10