fixed formatting
Some checks are pending
Build and Release IPA / Build IPA and Mac Catalyst (push) Waiting to run

This commit is contained in:
cranci1 2025-01-02 16:35:03 +01:00
parent 37429def51
commit a63a02e4de
8 changed files with 14 additions and 16 deletions

View file

@ -46,4 +46,3 @@ struct SoraApp: App {
}
}
}

View file

@ -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)

View file

@ -75,4 +75,3 @@ class NormalPlayer: AVPlayerViewController {
}
}
}

View file

@ -6,8 +6,8 @@
//
import SwiftUI
import Kingfisher
import SwiftSoup
import Kingfisher
struct SearchResultsView: View {
let module: ModuleStruct?

View file

@ -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"))
)
}

View file

@ -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 {

View file

@ -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() {