Replies: 1 comment 1 reply
-
AsyncImage is a type of SwiftUI and it is not related to this framework, Kingfisher. If you'd like to use Kingfisher to load an image from a certain URL and with the modified header, try the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
AsyncImage in Swift takes in URL as its parameter. With authentication, (jwt) token is required to be passed as header. For example:
Usage of AsyncImage in Swift is:
How can one attach headers into this URL so that AsyncImage can download the image from source without hitting Authentication error. If need to implement own solution for such AsyncImage call, what would be structure of that - which Swift constructs can be used - any sample reference? Could delegate be helpful in a way to attach headers automatically while making AsyncImage call.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions