-
Notifications
You must be signed in to change notification settings - Fork 16
TopShelf example not working since tvOS 13.4 #4
Copy link
Copy link
Open
Description
In tvOS 13.4+ and 14.0 Beta, there are much stricter memory limits on top shelf extensions. The example seems to use a lot of memory and gets killed, but that can be fixed as so:
--- a/ReLaxExample/ReLaxTopShelfExample/ServiceProvider.swift
+++ b/ReLaxExample/ReLaxTopShelfExample/ServiceProvider.swift
@@ -8,7 +8,7 @@ class ServiceProvider: NSObject, TVTopShelfProvider {
private let posterImages: [ParallaxImage] = titles
.map { $0.lowercased().components(separatedBy: .whitespaces).joined() }
.map { movie in
- ["5", "4", "3", "2", "1"].map { return "\(movie)-\($0)" }
+ ["5"].map { return "\(movie)-\($0)" }
}
.compactMap {
$0.compactMap { UIImage(named: $0) }
However, it seems that now disk based urls cannot be used for images in the top shelf. The image is never rendered on screen:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
