Your First iOS & SwiftUI App: Polishing the App, Episode 20: Challenge: Draw the Rings | raywenderlich.com

Try changing the color of the rings from black to a nice gradient.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/28797859-your-first-ios-swiftui-app-polishing-the-app/lessons/20

For those who are getting

No exact matches in call to initializer

use:

        ForEach((1...5), id: \.self) {
            let size = CGFloat($0 * 100)
            Circle().stroke(lineWidth: 20)
                .fill(Color("BullsEyeCirclesColor"))
                .frame(width: size, height: size)
            }