All Projects → devxoul → Carte

devxoul / Carte

Licence: mit
🍴 Open source license notice view generator for Swift

Programming Languages

ruby
36898 projects - #4 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to Carte

Fossology
FOSSology is an open source license compliance software system and toolkit. As a toolkit you can run license, copyright and export control scans from the command line. As a system, a database and web ui are provided to give you a compliance workflow. License, copyright and export scanners are tools used in the workflow.
Stars: ✭ 440 (+163.47%)
Mutual labels:  oss, license
spdx-license-ids
a list of SPDX license identifiers
Stars: ✭ 29 (-82.63%)
Mutual labels:  oss, license
Maintainer
👨‍💻 🐳 Generate personal daily reports or summary, AUTHORS, CONTRIBUTING, CHANGELOG and so on for GitHub user or repository.
Stars: ✭ 152 (-8.98%)
Mutual labels:  generator
Licenses
OpenSource License Explains
Stars: ✭ 165 (-1.2%)
Mutual labels:  license
Netease Cloud Music Community
参照网易云音乐云村做的一个小程序社区,后端技术栈为Java,SpringBoot,MySQL,Redis,前端技术栈为uni-app。欢迎吐槽。
Stars: ✭ 157 (-5.99%)
Mutual labels:  oss
Faviator
A simple easy favicon generator.
Stars: ✭ 155 (-7.19%)
Mutual labels:  generator
Vuetify Form Base
Schema-based Form Generator - Vue.js 2.0 Component based on Vuetify 2.0
Stars: ✭ 157 (-5.99%)
Mutual labels:  generator
Fastapi Code Generator
This code generator creates FastAPI app from an openapi file.
Stars: ✭ 150 (-10.18%)
Mutual labels:  generator
Sbt Header
sbt-header is an sbt plugin for creating file headers, e.g. copyright headers
Stars: ✭ 166 (-0.6%)
Mutual labels:  license
Oss In Browser
Play with OSS, right in browser!
Stars: ✭ 158 (-5.39%)
Mutual labels:  oss
Iam Floyd
AWS IAM policy statement generator with fluent interface
Stars: ✭ 165 (-1.2%)
Mutual labels:  generator
Vuegg
🐣 vue GUI generator
Stars: ✭ 2,056 (+1131.14%)
Mutual labels:  generator
Palettes
A tool for creating nice, percerptually correct and colorblind-safe color palettes.
Stars: ✭ 155 (-7.19%)
Mutual labels:  generator
Dgw
dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata
Stars: ✭ 161 (-3.59%)
Mutual labels:  generator
Grmtools
Rust grammar tool libraries and binaries
Stars: ✭ 153 (-8.38%)
Mutual labels:  generator
Query Translator
Query Translator is a search query translator with AST representation
Stars: ✭ 165 (-1.2%)
Mutual labels:  generator
Swiftcolorgen
A tool that generate code for Swift projects, designed to improve the maintainability of UIColors
Stars: ✭ 152 (-8.98%)
Mutual labels:  generator
Licenseplist
A license list generator of all your dependencies for iOS applications
Stars: ✭ 1,996 (+1095.21%)
Mutual labels:  license
Uptoc
A static file deployment tool that supports multiple platforms./ 一个支持多家云厂商的静态文件部署工具
Stars: ✭ 159 (-4.79%)
Mutual labels:  oss
Glow
mpv Config File Generator for Windows
Stars: ✭ 167 (+0%)
Mutual labels:  generator

La Carte

Swift CocoaPods Build Status Codecov

An open source license notice view generator for Swift.

Screenshot

carte

⬆ Those view controllers are automatically generated ✨

Features

  • 🚗 Automatic: Carte automatically generates OSS notice from CocoaPods.
  • ☕️ Easy Integration: Install Carte and push CarteViewController. It's all done.
  • 🎨 Customizable: Adding custom items, customizing CarteViewController. See Customizing section.

Installation

Carte only supports CocoaPods at this time.

pod 'Carte'

⚠️ IMPORTANT: Don't forget to add the post install hook to your Podfile. Add this script to the end of your Podfile:

post_install do |installer|
  pods_dir = File.dirname(installer.pods_project.path)
  at_exit { `ruby #{pods_dir}/Carte/Sources/Carte/carte.rb configure` }
end

Usage

Carte provides CarteViewController. You can use it as a normal view controller. Push, present or do whatever you want.

let carteViewController = CarteViewController()

If you want to create your own UI, use Carte.items to get CarteItems.

class Carte {
  static var items: [CarteItem]
}

Customizing

Custom Items

CarteViewController has a property named items which is an array of CarteItem. All of the licenses are stored in the items. You can add new items, remove existings, or sort items by manipulating items array.

This is an example of adding a new CarteItem and sorting items.

var item = CarteItem(name: "Carte")
item.licenseText = "The MIT License (MIT) ...Very long text..."

let carteViewController = CarteViewController()
carteViewController.items.append(item)
carteViewController.items.sort { $0.name < $1.name }

Customizing View Controllers

CarteDetailViewController is presented when user selects a table view cell. CarteViewController provides a handler for customizing it.

Definition:

var configureDetailViewController: (CarteDetailViewController -> Void)?

Example:

let carteViewController = CarteViewController()
carteViewController.configureDetailViewController = { detailViewController in
  detailViewController.navigationItem.leftBarButtonItem = ...
  print(detailViewController.carteItem.name)
}

License

Carte is under MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].