Compare commits

...
2 changed files with 10 additions and 10 deletions

No files matched your search

+9 -9
View File
@@ -149,20 +149,20 @@ final class Ui {
} }
/// Leaves the lock as it is: freeing it let iOS turn the window while audio kept the app alive. /// Leaves the lock as it is: freeing it let iOS turn the window while audio kept the app alive.
/// Folded with something playing, Now Playing goes up now so the app (and the snapshot iOS func backgrounded() { away = true }
/// shows on return) comes back on it instead of the library.
func backgrounded() {
away = true
showPlayingFolded()
}
private var away = false private var away = false
/// Folded with something playing, the app comes back on Now Playing.
private func showPlayingFolded() { private func showPlayingFolded() {
guard folded, !nowPlayingOpen, AppGraph.shared.playback.current != nil else { return } guard folded, !nowPlayingOpen, AppGraph.shared.playback.current != nil else { return }
var t = Transaction() // Back from the background folded with something playing: Now Playing slides up as if
t.disablesAnimations = true // swiped open, once the app's own opening animation has landed.
withTransaction(t) { nowPlayingOpen = true } Task { @MainActor in
try? await Task.sleep(for: .milliseconds(180))
guard self.folded, !self.nowPlayingOpen, AppGraph.shared.playback.current != nil else { return }
self.nowPlayingOpen = true
}
} }
private func lockOrientation() { private func lockOrientation() {
+1 -1
View File
@@ -9,7 +9,7 @@ settings:
# iOS needs a plain number for the bundle version; the label is what the app and releases show. # iOS needs a plain number for the bundle version; the label is what the app and releases show.
MARKETING_VERSION: "0.10.1" MARKETING_VERSION: "0.10.1"
VERSION_LABEL: "0.10.1" VERSION_LABEL: "0.10.1"
CURRENT_PROJECT_VERSION: "55" CURRENT_PROJECT_VERSION: "56"
# Dev builds override these (build-ipa.sh dev) so they install next to the release app. # Dev builds override these (build-ipa.sh dev) so they install next to the release app.
APP_ID: org.cdnutter.stemify APP_ID: org.cdnutter.stemify
APP_NAME: Stemify APP_NAME: Stemify