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 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)
}
}
}
}