mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
The root view mirrors the coordinator's mini-player queue and playlist sheet flags into local state on change only, so a flag set before the view first appeared was never shown. Read the initial value too. Also remove the iOS Settings sheet driven by the .showSettings notification, which nothing posts.
25 lines
1.0 KiB
Swift
25 lines
1.0 KiB
Swift
//
|
|
// Notifications.swift
|
|
// Yattee
|
|
//
|
|
// App-wide notification names.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Notification.Name {
|
|
static let showOpenLinkSheet = Notification.Name("showOpenLinkSheet")
|
|
static let openDescriptionLink = Notification.Name("openDescriptionLink")
|
|
/// Posted when a URL shortener (bit.ly, etc.) has been resolved to an
|
|
/// ambiguous destination — the app isn't certain it can play it, so the
|
|
/// user is prompted whether to try opening it in Yattee or in the browser.
|
|
/// `object` is the resolved `URL`.
|
|
static let promptResolvedShortLink = Notification.Name("promptResolvedShortLink")
|
|
/// Posted when a tapped link is not confidently a video (no YouTube /
|
|
/// PeerTube / direct-media match) but could potentially be extracted via
|
|
/// the Yattee server / yt-dlp. User is prompted whether to try extracting
|
|
/// or open it in the system browser instead.
|
|
/// `object` is the candidate `URL`.
|
|
static let promptAmbiguousExternalLink = Notification.Name("promptAmbiguousExternalLink")
|
|
}
|