[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 RatingStars: View {
@@ -15,7 +16,7 @@ struct RatingStars: View {
var body: some View {
HStack(spacing: 0) {
ForEach(0..<5) { i in
Image(systemName: i < rating ? "star.fill" : "star")
Image(systemSymbol: i < rating ? .starFill : .star)
.resizable()
.aspectRatio(contentMode: .fit)
}