Skip to content

devmehmetates/StickyAsyncImageSwiftUI

Repository files navigation

StickyAsyncImageSwiftUI

How to use

Follow all the steps for 3rd party Swift packages and add the package to your project. If you have no idea, have a look here 👉🏻 Click here.

Then add it to your project as follows.

// MARK: STEP 1
import StickyAsyncImageSwiftUI 

Recommended Usage

import StickyAsyncImageSwiftUI 

struct ExampleView: View {
    var body: some View {
        NavigationView {
                ScrollView {
                AsyncImage(url: .init(string: "url")) { image in
                    image.image?.resizable()
                        .scaledToFill()
                }.makeSticky(height: 200)
            }
        }
    }
}

Preview

Simulator Screen Recording - iPhone 13 - 2022-10-10 at 22 28 00

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages