Skip to content

Swift package that exposes fastlane's frameit frame images.

License

Notifications You must be signed in to change notification settings

ptrkstr/Frames

 
 

Repository files navigation

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.

About

Swift package that exposes fastlane's frameit frame images.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages

  • Swift 100.0%