There are two ways of accessing an image. Each returns a Frame
which is a typealias for UIImage
/NSImage
.
let frames = Frames()
frames.appleMacbookPro13Silver
frames.appleMacbookPro13SpaceGray
frames.appleMacbookPro15Silver
// etc
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 {
}
Add the following to your project/package.swift:
https://github.com/ptrkstr/Frames
https://github.com/fastlane/frameit-frames
This repository forks frameit-frames. When that repository is updated, Fetch upstream
will be called to merge updates.
This repository doesn't manage images directly. Please see where the forked repository sources its images.
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.