You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
606 B

//
// ImageResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 11-01-16.
// From: https://github.com/mac-cain13/R.swift.Library
// License: MIT License
//
import Foundation
public protocol ImageResourceType {
/// Bundle this image is in
var bundle: Bundle { get }
/// Name of the image
var name: String { get }
}
public struct ImageResource: ImageResourceType {
/// Bundle this image is in
public let bundle: Bundle
/// Name of the image
public let name: String
public init(bundle: Bundle, name: String) {
self.bundle = bundle
self.name = name
}
}