[CHANGE] Replace system image name strings with SFSymbols

This commit is contained in:
Fabian Thies
2022-12-23 15:21:16 +01:00
committed by Joe Mattiello
parent bcd54067d3
commit 5697c4c063
13 changed files with 95 additions and 52 deletions

View File

@@ -7,6 +7,7 @@
//
import SwiftUI
import SFSafeSymbols
struct RootView: View {
@@ -78,12 +79,12 @@ extension RootView {
static var defaultTab: RootView.Tab = .news
var displaySymbol: String {
var displaySymbol: SFSymbol {
switch self {
case .news: return "newspaper"
case .browse: return "app.dashed"
case .myApps: return "app.badge"
case .settings: return "gearshape"
case .news: return .newspaper
case .browse: return .booksVertical
case .myApps: return .appBadge
case .settings: return .gearshape
}
}
@@ -97,7 +98,7 @@ extension RootView {
}
var label: some View {
Label(self.displayName, systemImage: self.displaySymbol)
Label(self.displayName, systemSymbol: self.displaySymbol)
}
}
}