class Redbreast::TemplateGenerator::Color::SwiftUI
Used for creating colors in swift.
Public Instance Methods
template()
click to toggle source
# File lib/redbreast/template_generators/colors/swiftui_colors_template_generator.rb, line 9 def template <<~TEMPLATE import SwiftUI // THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND // swiftlint:disable file_length type_body_length line_length superfluous_disable_command <%= generate_extension('Color', app_name) %> <%= generate_file_swift(names: asset_names, variable: 'static var %s: Color { Color("%s", bundle: %s) }', bundle: bundle) %> } TEMPLATE end