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 {
AnimatableAsyncImageView(urlPath: "url") { image in // Your Sticky View
image
.resizable()
.scaledToFill()
}.modifier(StickyTopViewModifier(height: 40.0.responsiveH))
// Your Views
}
}
}
}