Add labels to posts

This commit is contained in:
Christoph Hagen
2025-01-26 20:32:44 +01:00
parent 06b4c1ed76
commit 42fa08b43d
15 changed files with 273 additions and 30 deletions

View File

@ -0,0 +1,19 @@
import SwiftUI
import SVGView
struct PageIconView: View {
@Environment(\.colorScheme)
private var colorScheme
let icon: PageIcon
var body: some View {
if colorScheme == .light {
SVGView(string: icon.svgString)
} else {
SVGView(string: icon.svgString)
.colorInvert()
}
}
}