lrclib api option, many improvements and refactoring

This commit is contained in:
eevee
2025-03-12 21:54:10 +03:00
parent 8c443c8a9b
commit 08037dbb61
44 changed files with 505 additions and 332 deletions
@@ -0,0 +1,25 @@
import SwiftUI
struct DynamicIconModifier: ViewModifier {
var systemName: String
var color: Color
@Binding var condition: Bool
func body(content: Content) -> some View {
HStack {
if condition {
Image(systemName: systemName)
.font(.title2)
.foregroundColor(color)
}
content
}
}
}
extension View {
func icon(_ systemName: String, color: Color, when condition: Binding<Bool>) -> some View {
modifier(DynamicIconModifier(systemName: systemName, color: color, condition: condition))
}
}