mirror of
https://github.com/yattee/yattee.git
synced 2026-11-02 18:07:19 +00:00
Fix video position jump when dismissing the portrait details panel
Two causes: the drag/dismiss animation targeted the content-area center (screenHeight/2) while the resting position once the panel flips hidden is fullScreenHeight/2 - top inset - the player window adds extra bottom safe area, so the two centers differ and the flip snapped the video by half that difference. And the hidden-state flip ran on a fixed 0.25s timer that cut the 0.3-response spring short, snapping the video the rest of the way. A shared hiddenVideoY is now the target everywhere (drag interpolation, dismiss animation, swipe-up reveal), and the flip runs in the spring's completion callback. Also mark DEBUG os_log output public: without it the console shows <private> for processes not launched by Xcode (e.g. USB syslog capture).
This commit is contained in:
@@ -199,15 +199,17 @@ final class LoggingService: Sendable {
|
||||
#if DEBUG
|
||||
if UserDefaults.standard.bool(forKey: "loggingEnabled") {
|
||||
let fullMessage = details.map { "\(message) - \($0)" } ?? message
|
||||
// .public: without it os_log masks the text as <private> when the
|
||||
// process isn't attached to Xcode (e.g. syslog capture over USB).
|
||||
switch level {
|
||||
case .debug:
|
||||
osLogger.debug("[\(category.rawValue)] \(fullMessage)")
|
||||
osLogger.debug("[\(category.rawValue, privacy: .public)] \(fullMessage, privacy: .public)")
|
||||
case .info:
|
||||
osLogger.info("[\(category.rawValue)] \(fullMessage)")
|
||||
osLogger.info("[\(category.rawValue, privacy: .public)] \(fullMessage, privacy: .public)")
|
||||
case .warning:
|
||||
osLogger.warning("[\(category.rawValue)] \(fullMessage)")
|
||||
osLogger.warning("[\(category.rawValue, privacy: .public)] \(fullMessage, privacy: .public)")
|
||||
case .error:
|
||||
osLogger.error("[\(category.rawValue)] \(fullMessage)")
|
||||
osLogger.error("[\(category.rawValue, privacy: .public)] \(fullMessage, privacy: .public)")
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user