comparison GeoQuiz/Helpers/AnswerButton.swift @ 6:1946bbfde4af

reformat data structures
author Dennis C. M. <dennis@denniscm.com>
date Thu, 29 Sep 2022 12:00:17 +0200
parents 413e2d21333e
children d945e52b0704
comparison
equal deleted inserted replaced
5:f31a61462e7a 6:1946bbfde4af
11 let optionName: String 11 let optionName: String
12 let color: Color 12 let color: Color
13 13
14 var body: some View { 14 var body: some View {
15 RoundedRectangle(cornerRadius: 15) 15 RoundedRectangle(cornerRadius: 15)
16 .foregroundStyle(.regularMaterial) 16 .foregroundColor(.white)
17 .overlay( 17 .overlay(
18 Text(optionName) 18 Text(optionName)
19 .font(.title2.bold()) 19 .font(.title2.bold())
20 .foregroundColor(color) 20 .foregroundColor(color)
21 ) 21 )