2021-10-25 08:15:02 -07:00
|
|
|
//
|
|
|
|
// BlueChip.swift
|
|
|
|
// secant-testnet
|
|
|
|
//
|
|
|
|
// Created by Francisco Gindre on 10/25/21.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct BlueChip: View {
|
|
|
|
var word: String
|
|
|
|
var body: some View {
|
|
|
|
Text(word)
|
|
|
|
.font(FontFamily.Rubik.regular.textStyle(.body))
|
|
|
|
.frame(
|
|
|
|
minWidth: 0,
|
|
|
|
maxWidth: 120,
|
|
|
|
minHeight: 30,
|
|
|
|
idealHeight: 40
|
|
|
|
)
|
2021-10-27 12:29:23 -07:00
|
|
|
.foregroundColor(Asset.Colors.Text.activeButtonText.color)
|
2021-10-25 08:15:02 -07:00
|
|
|
.padding(.horizontal, 4)
|
|
|
|
.padding(.vertical, 4)
|
2021-10-27 12:29:23 -07:00
|
|
|
.background(Asset.Colors.Buttons.activeButton.color)
|
2021-10-25 08:15:02 -07:00
|
|
|
.cornerRadius(6)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct BlueChip_Previews: PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
BlueChip(word: "negative")
|
|
|
|
.applyScreenBackground()
|
|
|
|
}
|
|
|
|
}
|