Sha256: d7577079adcc6a5ae501adef2e13bea5e477e886b7c5c3a20afd72ca8548256c

Contents?: true

Size: 734 Bytes

Versions: 1

Compression:

Stored size: 734 Bytes

Contents

require_relative '../swiftui_template_generator' 

module Redbreast
  module TemplateGenerator
    module Image
      # Used for creating images in swift.
      class SwiftUI < TemplateGenerator::SwiftUI
        include ERB::Util

        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('Image', app_name) %>
            <%= generate_file_swift(names: asset_names, variable: 'static var %s: Image { Image("%s", bundle: %s) }', bundle: bundle) %>
            }
          TEMPLATE
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redbreast-1.2.4 lib/redbreast/template_generators/images/swiftui_images_template_generator.rb