usbong / UsbongKit

A framework for reading and displaying contents of Usbong Trees
www.usbong.ph
Apache License 2.0
2 stars 1 forks source link

UsbongKit

License GitHub Release

UsbongKit is a framework that contains the main components for Usbong.

To-do

Running the Example App

Installation

You can integrate UsbongKit in your project in 3 different ways:

1. Carthage (Recommended)

  1. Add github "usbong/UsbongKit" in your Cartfile
  2. Run carthage update --platform iOS in your project directory
  3. Follow Carthage instructions to add frameworks in your project

2. Project

  1. Drag-and-drop UsbongKit.xcodeproj as sub-project
  2. Run carthage update --platform iOS in UsbongKit folder to fetch dependencies
  3. Link UsbongKit.framework in your project

3. Embed Framework

  1. Run carthage update --platform iOS in UsbongKit folder to fetch dependencies
  2. Build UsbongKit framework
  3. Embed UsbongKit.framework in your project

View utree

To view a utree file, import the framework, import UsbongKit, then add this code in your app:


// parentViewController is the controller which will present the Usbong tree viewer
// treeURL is the URL for the compressed .utree
Usbong.presentViewer(onViewController: parentViewController, withUtreeURL: treeURL)

Extend UsbongKit

The documentation for extending UsbongKit can be found here.

License

Copyright 2016 Usbong Social Systems, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.