ptrkstr/frames
Frames
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
// etcMethod
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/FramesWhere 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.
Package Metadata
Repository: ptrkstr/frames
Default branch: master
README: README.md