Simplify Icon usage, add names
This commit is contained in:
@@ -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'/>
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user