SkeletonScreen

main

Skeleton Screen on iOS and iPadOS
huabin/SkeletonScreen

SkeletonScreen

Skeleton Screen on iOS and iPadOS

Demo

demo.mov

How to use

  • Open Xcode->File->Add Package Dependencies

  • Add Package via https://github.com/huabin/SkeletonScreen.git

  • Import && Coding

    E.g.

    import SwiftUI
    import SkeletonScreen
    
    struct ContentView: View {
        var body: some View {
            SkeletonScreen(skeletonColor: Color(red: 220/255, green: 220/255, blue: 220/255), skeletonHeight: 20)
              .padding()
        }
    }
    
    • skeletonColor: Optional, RGB, default .gray

    • skeletonHeight: Optional, default 60

License

MIT

Copyright (C) 2024-present, Bin Hua

Description

  • Swift Tools 5.10.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 22:05:59 GMT-0900 (Hawaii-Aleutian Daylight Time)