summaryrefslogtreecommitdiff
path: root/Sora
diff options
context:
space:
mode:
Diffstat (limited to 'Sora')
-rw-r--r--Sora/Data/Settings/SettingsManager.swift4
-rw-r--r--Sora/SoraApp.swift8
2 files changed, 9 insertions, 3 deletions
diff --git a/Sora/Data/Settings/SettingsManager.swift b/Sora/Data/Settings/SettingsManager.swift
index f37aa84..5e7588d 100644
--- a/Sora/Data/Settings/SettingsManager.swift
+++ b/Sora/Data/Settings/SettingsManager.swift
@@ -144,7 +144,9 @@ class SettingsManager: ObservableObject {
func addBookmark(provider: BooruProvider, tags: [String]) {
var currentBookmarks = bookmarks
- currentBookmarks.append(SettingsBookmark(provider: provider, tags: tags.map { $0.lowercased() }))
+ currentBookmarks.append(
+ SettingsBookmark(provider: provider, tags: tags.map { $0.lowercased() })
+ )
bookmarks = currentBookmarks
}
diff --git a/Sora/SoraApp.swift b/Sora/SoraApp.swift
index 45a9ee1..cea526f 100644
--- a/Sora/SoraApp.swift
+++ b/Sora/SoraApp.swift
@@ -1,8 +1,12 @@
import SwiftUI
-func debugPrint(_ items: Any...) {
+func debugPrint(
+ _ items: Any...,
+ separator: String = " ",
+ terminator: String = "\n"
+) {
#if DEBUG
- Swift.print(items, terminator: "\n")
+ Swift.print(items, separator: separator, terminator: terminator)
#endif
}