Frames

develop

Swift package that exposes fastlane's frameit frame images.
ptrkstr/Frames

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.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 26 2024 18:23:49 GMT-0900 (Hawaii-Aleutian Daylight Time)