You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
426 B
22 lines
426 B
2 years ago
|
//
|
||
|
// ThingView.swift
|
||
|
// JustOneThing
|
||
|
//
|
||
|
// Created by Alan Francis on 06/07/2023.
|
||
|
//
|
||
|
|
||
|
import SwiftUI
|
||
|
|
||
|
struct ThingView : View {
|
||
|
let thing: Thing
|
||
|
@Environment(\.colorScheme) private var colorScheme
|
||
|
|
||
|
var body: some View {
|
||
|
Text(thing.text)
|
||
|
.fitSystemFont(lineLimit: 4)
|
||
|
.multilineTextAlignment(.center)
|
||
|
.foregroundColor(.randomForegroundColor(colorScheme))
|
||
|
}
|
||
|
}
|
||
|
|