https://github.com/simplisticated/swiftylawyer
Software licenses made in Swift
https://github.com/simplisticated/swiftylawyer
license swift
Last synced: 9 months ago
JSON representation
Software licenses made in Swift
- Host: GitHub
- URL: https://github.com/simplisticated/swiftylawyer
- Owner: simplisticated
- License: apache-2.0
- Created: 2018-06-23T21:39:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T21:09:28.000Z (over 7 years ago)
- Last Synced: 2025-03-16T22:36:06.002Z (about 1 year ago)
- Topics: license, swift
- Language: Swift
- Size: 3.81 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## At a Glance
`SwiftyLawyer` is a tool for generating license text.
## How To Get Started
- Copy content of `Source` folder to your project.
or
- Use `SwiftyLawyer` cocoapod
## Requirements
* iOS 9 and later
* Xcode 9 and later
* Swift 4
## Usage
First of all, we have to retrieve `Credentials`:
```swift
let credentials = Credentials(
holder: "John Appleseed",
year: 2018
)
```
Then, we can get a text of the preferrable license:
```swift
License.mit.text(with: credentials)
License.apache.text(with: credentials)
// etc.
```
License text will include holder name and other information from `Credentials`.
Currently supported licenses are:
- MIT
- Apache v2.0
## License
`Degree` is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.