class Redbreast::TemplateGenerator::Image::Swift

Used for creating images in swift.

Public Instance Methods

template() click to toggle source
# File lib/redbreast/template_generators/images/swift_images_template_generator.rb, line 10
        def template
          <<~TEMPLATE
            import UIKit

            // THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND
            // swiftlint:disable file_length type_body_length line_length superfluous_disable_command
            <%= generate_extension('UIImage', app_name) %>
            <%= generate_file_swift(names: asset_names, variable: 'static var %s: UIImage { return UIImage(named: "%s", in: %s, compatibleWith: nil)! }', bundle: bundle) %>
            }
          TEMPLATE
        end