22 lines
727 B
Plaintext
22 lines
727 B
Plaintext
// Generated by ResgenSwift.{{ toolName }} {{ resgenVersion }}
|
|
{% if isSwiftUI %}
|
|
import SwiftUI
|
|
{% else %}
|
|
import UIKit
|
|
{% endif %}
|
|
extension {{ extensionClassname }} {
|
|
{% for color in colors %}
|
|
{% if isSwiftUI %}
|
|
/// Color {{ color.name }} is {{ color.light }} {{ color.light }} or {{ color.dark }} {{ color.dark }}"
|
|
{% if isStatic %}static {% endif %}var {{ color.name }}: Color {
|
|
Color("{{ color.name }}")
|
|
}
|
|
{% else %}
|
|
/// Color {{ color.name }} is {{ color.light }} {{ color.light }} or {{ color.dark }} {{ color.dark }}"
|
|
{% if isStatic %}static {% else %}@objc {% endif %}var {{ color.name }}: UIColor {
|
|
UIColor(named: "{{ color.name }}")!
|
|
}
|
|
{% endif %}
|
|
{% endfor %}
|
|
}
|