dmytro-anokhin / url-image

AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.
MIT License
1.1k stars 96 forks source link

Lower required iOS target #113

Closed cedric-elca closed 3 years ago

cedric-elca commented 3 years ago

Is your feature request related to a problem? Please describe. URLImage 2.0 has a minimum deployment target of iOS 13.0. There are back-compatible UIKit projects with SwiftUI components. With the minimum deployment target set to 13.0, URLImage 2.0 cannot be used in those projects. I have to switch back to 0.1.19 unfortunately.

Describe the solution you'd like Would it be possible to lower the the minimum deployment target? For example, iOS 11.

dmytro-anokhin commented 3 years ago

Hey, this is as low as I can go:

platforms: [
        .iOS(.v10),
        .tvOS(.v10),
        .macOS(.v10_12),
        .watchOS(.v3)
    ]

I hope there are no apps that have to continue supporting lower platforms. See lower_platforms branch. *Hope I manage to push it, GitHub is very slow for me today 😞

cedric-elca commented 3 years ago

Thank you very much. I really appreciate that. Hope it can be merged to master in the future.

dmytro-anokhin commented 3 years ago

You can point SPM to 2.1.7 for this change

cedric-elca commented 3 years ago

Thank you.