acevif / LicensePlistViewController

ViewController for LicensePlist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LicensePlistViewController

platforms GitHub license Language: Swift 5.0 Version Carthage compatible Swift Package Manager compatible

LicensePlistViewController is ViewController for LicensePlist.

Screen shot Screen shot
List Detail

Requirements

  • Swift 5.0
  • iOS 9.0 or later

If you use Swift 4.0, try to use 1.1.2

Installation

CocoaPods

Simply add the following line to your Podfile:

pod 'LicensePlistViewController'

Cartage

Simply add the following line to your Cartfile:

github "yhirano/LicensePlistViewController"

Swift Package Manager

Simply add the following line to your Package.swift:

dependencies: [
    .package(url: "https://github.com/yhirano/LicensePlistViewController.git", from: "2.2.0")
]

Alternatively, you can add the package directly via Xcode.

Usage

Install LicensePlist

Install LicensePlist.

Example Homebrew:

brew install mono0926/license-plist/license-plist

Use license-plist

Use license-plist.

Example command:

On the directory same as Cartfile or Pods, simply execute license-plist.

license-plist

com.mono0926.LicensePlist.Output directory will be generated.

Add reference

Add reference com.mono0926.LicensePlist.plist file and com.mono0926.LicensePlist directory to source tree. XCode screen shot

Under Target > Build Phases > Copy Bundle Resources script, add these files. XCode screen shot

Call LicensePlistViewController

let viewController = LicensePlistViewController()
self.navigationController?.pushViewController(viewController, animated: true)

Can change the style of the table if you needed.

Code Screen shot
LicensePlistViewController()
or
LicensePlistViewController(tableViewStyle: .grouped)
LicensePlistViewController(tableViewStyle: .insetGrouped)
(Only available in iOS 13.0 or newer)

References

About

ViewController for LicensePlist

License:MIT License


Languages

Language:Swift 96.1%Language:Ruby 3.9%