mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 16:53:29 +01:00
[CHANGE] Replace system image name strings with SFSymbols
This commit is contained in:
committed by
Joe Mattiello
parent
bcd54067d3
commit
5697c4c063
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user