Skip to content

TopShelf example not working since tvOS 13.4 #4

@tmm1

Description

@tmm1

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:

Screen Shot 2020-07-23 at 5 13 04 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions