Yesterday, I stopped so that I could spend time with my family. I’m going to pick up from the draw an arc spot.
Section 2: Draw Arc
Purpose: Learn about drawing in the application
The tutorial gives me a really good example for a computed property.
private var degreesPerSpeaker: Double {
360.0 / Double(totalSpeakers)
}
Section 3: Draw the Ring
Purpose: Display the various segments for the speakers.
The following statement just looks wrong.
if speaker.isCompleted,
let index = speakers.firstIndex(where: { $0.id == speaker.id }) {
}
Are you really saving something by omitting the {
and }
?