mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
fixed formatting
Some checks are pending
Build and Release IPA / Build IPA and Mac Catalyst (push) Waiting to run
Some checks are pending
Build and Release IPA / Build IPA and Mac Catalyst (push) Waiting to run
This commit is contained in:
parent
37429def51
commit
a63a02e4de
8 changed files with 14 additions and 16 deletions
Binary file not shown.
|
|
@ -46,4 +46,3 @@ struct SoraApp: App {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,16 +55,16 @@ struct MusicProgressSlider<T: BinaryFloatingPoint>: View {
|
|||
.frame(width: bounds.size.width, height: bounds.size.height, alignment: .center)
|
||||
.contentShape(Rectangle())
|
||||
.gesture(DragGesture(minimumDistance: 0, coordinateSpace: .local)
|
||||
.updating($isActive) { _, state, _ in
|
||||
state = true
|
||||
}
|
||||
.onChanged { gesture in
|
||||
localTempProgress = T(gesture.translation.width / bounds.size.width)
|
||||
value = max(min(getPrgValue(), inRange.upperBound), inRange.lowerBound)
|
||||
}.onEnded { _ in
|
||||
localRealProgress = max(min(localRealProgress + localTempProgress, 1), 0)
|
||||
localTempProgress = 0
|
||||
})
|
||||
.updating($isActive) { _, state, _ in
|
||||
state = true
|
||||
}
|
||||
.onChanged { gesture in
|
||||
localTempProgress = T(gesture.translation.width / bounds.size.width)
|
||||
value = max(min(getPrgValue(), inRange.upperBound), inRange.lowerBound)
|
||||
}.onEnded { _ in
|
||||
localRealProgress = max(min(localRealProgress + localTempProgress, 1), 0)
|
||||
localTempProgress = 0
|
||||
})
|
||||
.onChange(of: isActive) { newValue in
|
||||
value = max(min(getPrgValue(), inRange.upperBound), inRange.lowerBound)
|
||||
onEditingChanged(newValue)
|
||||
|
|
|
|||
|
|
@ -75,4 +75,3 @@ class NormalPlayer: AVPlayerViewController {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import Kingfisher
|
||||
import SwiftSoup
|
||||
import Kingfisher
|
||||
|
||||
struct SearchResultsView: View {
|
||||
let module: ModuleStruct?
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ struct SearchView: View {
|
|||
.alert(isPresented: $showAlert) {
|
||||
Alert(
|
||||
title: Text("No module selected"),
|
||||
message: Text("Please select a module before searching or add it in settings."),
|
||||
message: Text("Please select a module before searching."),
|
||||
dismissButton: .default(Text("OK"))
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ struct SettingsView: View {
|
|||
@State private var selectedModule: ModuleStruct?
|
||||
@StateObject private var libraryManager = LibraryManager.shared
|
||||
@StateObject private var modulesManager = ModulesManager()
|
||||
|
||||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
Form {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class Logger {
|
|||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
|
||||
return logs.map { "[\(dateFormatter.string(from: $0.timestamp))] \($0.message)" }
|
||||
.joined(separator: "\n---\n")
|
||||
.joined(separator: "\n---\n")
|
||||
}
|
||||
|
||||
func clearLogs() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue