https://github.com/noppefoxwolf/workflowkit
Library for use shortcut files in Swift.
https://github.com/noppefoxwolf/workflowkit
Last synced: 12 months ago
JSON representation
Library for use shortcut files in Swift.
- Host: GitHub
- URL: https://github.com/noppefoxwolf/workflowkit
- Owner: noppefoxwolf
- License: mit
- Created: 2018-09-25T05:04:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-25T22:25:29.000Z (over 7 years ago)
- Last Synced: 2024-05-02T05:46:17.430Z (about 2 years ago)
- Language: Swift
- Homepage:
- Size: 181 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://travis-ci.org/noppefoxwolf/WorkflowKit)
[](https://cocoapods.org/pods/WorkflowKit)
[](https://cocoapods.org/pods/WorkflowKit)
[](https://cocoapods.org/pods/WorkflowKit)
## Usage
```swift
let url = Bundle(for: type(of: self)).url(forResource: "Flashlight Morse", withExtension: "shortcut")!
let shortcut = Shortcut(url: url)!
shortcut.workflow.actions.map({ $0.identifier })
```
```swift
let gradientLayer = GradientLayerFactory.make(from: workflow.icon.startColor)
```
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
WorkflowKit is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'WorkflowKit'
```
## Author
noppefoxwolf, noppelabs@gmail.com
## License
WorkflowKit is available under the MIT license. See the LICENSE file for more info.
## TODO
- [ ] support action params
- [ ] support icon data
- [ ] support enums