Mercurial > public > geoquiz
comparison GeoQuiz/Helpers/AnswerButton.swift @ 8:e09959b4e4a8
fix bugs
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 06 Oct 2022 11:14:34 +0200 |
parents | d945e52b0704 |
children |
comparison
equal
deleted
inserted
replaced
7:d945e52b0704 | 8:e09959b4e4a8 |
---|---|
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 .foregroundStyle(.ultraThickMaterial) |
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 ) |