SRGSSR / playsrg-apple

The Play SRG applications for iOS and tvOS
https://srgssr.github.io/playsrg-apple/
MIT License
44 stars 3 forks source link

iOS and tvOS 15 support #180

Closed defagos closed 3 years ago

defagos commented 3 years ago

Here is the list of the issues found with the current betas:

Also see https://github.com/SRGSSR/srgmediaplayer-apple/issues/104 and https://github.com/SRGSSR/srgletterbox-apple/issues/249 (āœ…: Fixed)

We should also use new APIs available since iOS and tvOS 15:

defagos commented 3 years ago

We should also check whether cell prefetching does not collide with our (small) usage of visible cells.

defagos commented 3 years ago

Compilation issues with SPM are a documented change and we probably have to do something, as said in the Xcode 13 beta release notes:

Linking Swift packages from application extension targets or watchOS applications no longer emits unresolvable warnings about linking to libraries not safe for use in application extensions. This means that code referencing APIs annotated as unavailable for use in app extensions must now themselves be annotated as unavailable for use in application extensions, in order to allow that code to be used in both apps and app extensions. (66928265)

Airship delivered version 14.6.0 to fix this issue.

defagos commented 3 years ago

Work started on feature/ios15-tvos15-xcode13. The project now compiles with beta 5. šŸŽ‰

defagos commented 3 years ago

The navigation bar issue is likely due to the use of tricks. I remember Marco Arment talking about such issues with Overcast on iOS 15. Fortunately migration to the iOS 13 API fixes the issue, and we already did it on a feature branch (#151). I'll cherry-pick this implementation on the branch associated with the present issue.

defagos commented 3 years ago

We did everything we could, reported remaining issues to Apple, and identified other behaviors as part of OS changes which we must accept.

hansemannn commented 2 years ago

Hi @defagos, sorry to slide into this issue! But may you still know how you fixed the "Attempted to scroll the collection view to an out-of-bounds item" error? It seems to happen randomly in one of my test projects and the cell structure looks fine. Thanks in advance!

defagos commented 2 years ago

Hi @hansemannn. Sure, I do remember. We use a small Objective-C method wrapper to trap the exception that may be thrown by the scrolling method.