diff --git a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift index b5ce7e0..ac1adf6 100644 --- a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift @@ -1084,7 +1084,6 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele skipOutroButton.backgroundColor = UIColor(red: 51/255.0, green: 51/255.0, blue: 51/255.0, alpha: 0.8) - if #available(iOS 15.0, *) { var config = UIButton.Configuration.filled() config.contentInsets = NSDirectionalEdgeInsets(top: 6, leading: 10, bottom: 6, trailing: 10) diff --git a/Sora/Views/MediaInfoView/MediaInfoView.swift b/Sora/Views/MediaInfoView/MediaInfoView.swift index 209b0a5..271e649 100644 --- a/Sora/Views/MediaInfoView/MediaInfoView.swift +++ b/Sora/Views/MediaInfoView/MediaInfoView.swift @@ -56,7 +56,7 @@ struct MediaInfoView: View { @State private var showStreamLoadingView: Bool = false @State private var currentStreamTitle: String = "" - @State private var activeFetchID: UUID? = nil + @State private var activeFetchID: UUID? @Environment(\.dismiss) private var dismiss @State private var orientationChanged: Bool = false @@ -548,8 +548,8 @@ struct MediaInfoView: View { } private func finishedAndUnfinishedIndices() -> (finished: Int?, unfinished: Int?) { - var finishedIndex: Int? = nil - var firstUnfinishedIndex: Int? = nil + var finishedIndex: Int? + var firstUnfinishedIndex: Int? for (index, ep) in episodeLinks.enumerated() { let keyLast = "lastPlayedTime_\(ep.href)" diff --git a/Sulfur.xcodeproj/project.pbxproj b/Sulfur.xcodeproj/project.pbxproj index 29c9c05..9bade6c 100644 --- a/Sulfur.xcodeproj/project.pbxproj +++ b/Sulfur.xcodeproj/project.pbxproj @@ -232,7 +232,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n"; + shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint lint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n"; }; 12DAC1832DBE3C1C00B31A65 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; @@ -249,7 +249,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n"; + shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint lint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n"; }; /* End PBXShellScriptBuildPhase section */