ruddarr / app

A native iOS companion app for Radarr and Sonarr instances.
https://apps.apple.com/app/ruddarr/id6476240130
MIT License
116 stars 5 forks source link

iOS 18 #311

Open tillkruss opened 4 months ago

tillkruss commented 4 months ago
SiriTipView(intent: OpenFavorites(), isVisible: $displaySiriTip)

Use NSAppIconActionTintColorName and NSAppIconCompletingColorNames

Consider using OpenIntent for some?

https://developer.apple.com/documentation/appintents/integrating-your-app-with-siri-and-apple-intelligence

Search

extension Movie: AppEntity {
    static let defaultQuery = MovieEntityQuery()

    static var typeDisplayRepresentation = TypeDisplayRepresentation(name: "Movie")

    var displayRepresentation: DisplayRepresentation {
        DisplayRepresentation(title: "\(title) (\(year))")
    }
}

 @available(iOS 18.0, *)
 extension Movie: IndexedEntity { }

struct MovieEntityQuery: EntityQuery {
    func entities(for identifiers: [Movie.ID]) async throws -> [Movie] {
        return []
        // return trailManager.trails(with: identifiers).map { TrailEntity(trail: $0) }
    }
}