swiftui: remove trailing whitespace

This commit is contained in:
singularity 2024-01-04 15:51:42 +08:00
parent eb001f2fc7
commit 5cd52ddcd2
2 changed files with 3 additions and 4 deletions

View file

@ -103,7 +103,7 @@ struct ContentView: View {
ContentView.cleanupModelCaches()
llamaState.cacheCleared = true
}
LoadCustomButton(llamaState: llamaState)
}
.padding(.top, 4)

View file

@ -4,11 +4,11 @@ import UniformTypeIdentifiers
struct LoadCustomButton: View {
@ObservedObject private var llamaState: LlamaState
@State private var showFileImporter = false
init(llamaState: LlamaState) {
self.llamaState = llamaState
}
var body: some View {
VStack {
Button(action: {
@ -16,7 +16,6 @@ struct LoadCustomButton: View {
}) {
Text("Load Custom Model")
}
}
.fileImporter(
isPresented: $showFileImporter,