diff --git a/Sora/Utils/TabBar/TabBar.swift b/Sora/Utils/TabBar/TabBar.swift index 0124083..a646e58 100644 --- a/Sora/Utils/TabBar/TabBar.swift +++ b/Sora/Utils/TabBar/TabBar.swift @@ -77,9 +77,9 @@ struct TabBar: View { } }) { Image(systemName: "xmark") - .font(.system(size: 30)) + .font(.system(size: 20)) .foregroundStyle(.gray) - .frame(width: 24, height: 24) + .frame(width: 20, height: 20) .matchedGeometryEffect(id: "xmark", in: animation) .padding(16) .background( @@ -133,7 +133,7 @@ struct TabBar: View { searchQuery = "" }) { Image(systemName: "xmark.circle.fill") - .font(.footnote) + .font(.system(size: 16)) .foregroundStyle(.gray) .opacity(0.7) } diff --git a/Sora/Views/MediaInfoView/MediaInfoView.swift b/Sora/Views/MediaInfoView/MediaInfoView.swift index 7269dfe..e159a6c 100644 --- a/Sora/Views/MediaInfoView/MediaInfoView.swift +++ b/Sora/Views/MediaInfoView/MediaInfoView.swift @@ -171,6 +171,13 @@ struct MediaInfoView: View { AnalyticsManager.shared.sendEvent(event: "search", additionalData: ["title": title]) } tabBarController.hideTabBar() + + if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene, + let window = windowScene.windows.first, + let navigationController = window.rootViewController?.children.first as? UINavigationController { + navigationController.interactivePopGestureRecognizer?.isEnabled = true + navigationController.interactivePopGestureRecognizer?.delegate = nil + } } .onDisappear(){ tabBarController.showTabBar() @@ -287,11 +294,11 @@ struct MediaInfoView: View { if !airdate.isEmpty && airdate != "N/A" && airdate != "No Data" { HStack(spacing: 4) { Image(systemName: "calendar") - .foregroundColor(.secondary) + .foregroundColor(.accentColor) Text(airdate) .font(.system(size: 14)) - .foregroundColor(.secondary) + .foregroundColor(.accentColor) } } @@ -363,9 +370,9 @@ struct MediaInfoView: View { let lastPlayedTime = UserDefaults.standard.double(forKey: "lastPlayedTime_\(ep.href)") let totalTime = UserDefaults.standard.double(forKey: "totalTime_\(ep.href)") let progress = totalTime > 0 ? lastPlayedTime / totalTime : 0 - return progress <= 0.9 ? "Mark as watched" : "Reset progress" + return progress <= 0.9 ? "Mark watched" : "Reset progress" } - return "Mark as watched" + return "Mark watched" }()) .font(.system(size: 14, weight: .medium)) .foregroundColor(.primary) @@ -419,7 +426,6 @@ struct MediaInfoView: View { .fixedSize(horizontal: false, vertical: true) .frame(maxWidth: .infinity, alignment: .leading) .padding(.top, 4) - .padding(.leading, 2.8) Text("The module provided only a single episode, this is most likely a movie, so we decided to make separate screens for these cases.") .font(.caption) .foregroundColor(.gray)