This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var sliderValue: Double = 0.0 | |
@State private var selectedIndex: Int = -1 | |
@State private var remainder: Double = 0.0 | |
var body: some View { | |
VStack { | |
HStack { | |
ForEach(0..<5) { index in | |
ZStack { | |
Image(systemName: "star.fill") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var selectedIndex: Int = -1 | |
var body: some View { | |
VStack { | |
HStack { | |
ForEach(0..<5) { index in | |
Image(systemName: "star.fill") | |
.transition(.opacity) | |
.foregroundColor(index <= selectedIndex ? .yellow : .gray) | |
.onTapGesture { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"city": "augustów", | |
"roasteries": [ | |
"palarnia kawy la kafo" | |
] | |
}, | |
{ | |
"city": "białystok", | |
"roasteries": [ |