shaps80 / SwiftUIBackports

A collection of SwiftUI backports for iOS, macOS, tvOS and watchOS
MIT License
960 stars 60 forks source link

Remove deprecation warnings for using contentConfiguration before iOS 16 since its used for UIHostingConfiguration #69

Closed stephenwoodford closed 9 months ago

stephenwoodford commented 9 months ago

Describe your changes

Since the only current use case for cell.backport.contentConfiguration is to enable the UIHostingConfigration backport, having iOS 14 deprecation warnings each time its used leads to a lot of unnecessary and unfixable warnings in a project targeting iOS 15 when using Backport.UIHostingConfiguration. Keeping the deprecation version the same as the UIHostingConfiguration one means that we'd only be warned when the project goes to iOS 17 and can remove all uses at once.

shaps80 commented 9 months ago

Makes sense, I usually try and keep the deprecations matching the actual releases, but I get your point and tend to agree 👍