NewsBlur/clients/ios/Classes/TrainerWord.swift
David Sinclair 51684a7812 #1247 (Mac Catalyst edition)
- Rewrote the trainer view using SwiftUI, to be native instead of a web view.
- Added a Feed class and other data enhancements to support this.
2024-04-04 20:06:11 -05:00

28 lines
664 B
Swift

//
// TrainerWord.swift
// NewsBlur
//
// Created by David Sinclair on 2024-04-03.
// Copyright © 2024 NewsBlur. All rights reserved.
//
import SwiftUI
struct TrainerWord: View {
var word: String
var body: some View {
HStack {
Text(word)
.colored(Color(white: ThemeManager.shared.isSystemDark ? 0.8 : 0.1))
.padding([.top, .bottom], 1)
.padding([.leading, .trailing], 1)
.background(Color(white: ThemeManager.shared.isSystemDark ? 0.35 : 0.95))
.clipShape(RoundedRectangle(cornerRadius: 5))
}
}
}
#Preview {
TrainerWord(word: "Example")
}