Skip to content

Commit

Permalink
Let iOS pick icon style
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Aug 26, 2024
1 parent 9da33a1 commit ef0efed
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Fyreplace/Views/Navigation/Label+Destination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ import SwiftUI

extension Label where Title == Text, Icon == Image {
init(_ destination: Destination) {
#if os(macOS)
let iconSuffix = ""
#else
let iconSuffix = UIDevice.current.userInterfaceIdiom == .phone ? ".fill" : ""
#endif

self.init(destination.titleKey, systemImage: destination.icon + iconSuffix)
self.init(destination.titleKey, systemImage: destination.icon)
}
}

0 comments on commit ef0efed

Please sign in to comment.