Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.47 KB

README.md

File metadata and controls

68 lines (49 loc) · 2.47 KB

Frames


A Swift package that exposes fastlane's frameit frame images.

Usage

There are two ways of accessing an image. Each returns a Frame which is a typealias for UIImage/NSImage.

Properties

let frames = Frames()
frames.appleMacbookPro13Silver
frames.appleMacbookPro13SpaceGray
frames.appleMacbookPro15Silver
// etc

Method

Look inside the /latest folder for names. Error thrown if image for name doesn't exist

let frames = Frames()
do {
    try frame(named: "Apple Macbook Pro 13 Silver.png")
} catch {
	  
}

Installation

Add the following to your project/package.swift:

https://github.com/ptrkstr/Frames

Where do the images come from?

https://github.com/fastlane/frameit-frames

How will this stay up to date with new images?

This repository forks frameit-frames. When that repository is updated, Fetch upstream will be called to merge updates.

Can I request you add X image?

This repository doesn't manage images directly. Please see where the forked repository sources its images.

How do the properties get generated?

Run the unit test, copy the console output and paste into Frames+Properties.swift. A future improvement would be to have a function automatically paste the properties.