Sidebox 1.0.3

Sidebox 1.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2015
SPMSupports SPM

Maintained by Nonchalant.




Sidebox 1.0.3

Sidebox

OverView

Sidebox has a scrollView on the right side of the view that is called Sidebox

Sidebox enables user to

  • temporary storage
  • quick comparison in a single view

Animation

Requirements

iOS: 8.0
cocoapods: 0.36.0

Installation

Sidebox is available through CocoaPods. To install it, simply add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod "Sidebox"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Introduction Sidebox to your project is very simple as below:

import UIKit
import Sidebox

class ViewController: SBViewController {
    ...
}

And developer should set SBView (User can controll by drag gesture) as below:

let view = SBView(frame: CGRectMake(x, y, width, height))
view.delegate = self
view.setIcon(UIImage)
view.setDict([String: AnyObject])
self.view.addSubview(view)

Delegate methods are as below:

// called when SBView is user hold
override func editModeStart(view: SBView) {
    ...
}

// called when SBView is user release
override func editModeEnd(view: SBView) {
    ...
}

// called when SBIconView in sidebox is tapped
override func iconTapped(data: SBDataObject) {
    ...
}

Author

Takeshi Ihara, [email protected]
Keisuke Toyoshima, [email protected]

License

Copyright 2015 RECRUIT LIFESTYLE CO., LTD.

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.