Simplify Icon usage, add names

This commit is contained in:
Christoph Hagen
2025-01-26 20:59:38 +01:00
parent 42fa08b43d
commit 628f3ad520
12 changed files with 291 additions and 159 deletions

View File

@@ -3,10 +3,13 @@ extension Icon {
struct LeftRightArrow: ContentIcon {
static let name = "left-right-arrow"
static let id = "left-right-arrow"
static let content = """
<svg id='\(name)' viewBox='0 0 100 100'><polygon points='10 50 37 80 37 20 10 50' style='fill:currentColor'/><polygon points='90 50 64 20 64 80 90 50' style='fill:currentColor'/></svg>
static let attributes = "viewBox='0 0 100 100'"
static let content =
"""
<polygon points='10 50 37 80 37 20 10 50' style='fill:currentColor'/><polygon points='90 50 64 20 64 80 90 50' style='fill:currentColor'/>
"""
}
}