comparison GeoQuiz/Helpers/AnswerButton.swift @ 7:d945e52b0704

implement dynamic map
author Dennis C. M. <dennis@denniscm.com>
date Tue, 04 Oct 2022 18:54:24 +0200
parents 1946bbfde4af
children e09959b4e4a8
comparison
equal deleted inserted replaced
6:1946bbfde4af 7:d945e52b0704
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 .foregroundColor(.white) 16 .foregroundStyle(.regularMaterial)
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 )