mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Add a ScaledMetric
This commit is contained in:
@@ -25,6 +25,7 @@ struct PollListItem: View {
|
||||
@Environment(\.theme) private var theme
|
||||
|
||||
private let pollData: PollListData
|
||||
@ScaledMetric private var imageSize = 16
|
||||
|
||||
init(pollData: PollListData) {
|
||||
self.pollData = pollData
|
||||
@@ -39,7 +40,7 @@ struct PollListItem: View {
|
||||
HStack(alignment: .firstTextBaseline, spacing: 8) {
|
||||
Image(uiImage: Asset.Images.pollHistory.image)
|
||||
.resizable()
|
||||
.frame(width: 16, height: 16)
|
||||
.frame(width: imageSize, height: imageSize)
|
||||
|
||||
Text(pollData.question)
|
||||
.foregroundColor(theme.colors.primaryContent)
|
||||
|
||||
Reference in New Issue
Block a user