![swfit](https://camo.githubusercontent.com/38189bd108cadfceb620862f01a773ab94ad38532c44751fcce91e2d7cac58db/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776966742d342e322d6f72616e67652e737667)
- 심플한 메소드를 통해 탭 화면을 곧 바로 구성이 가능
- 스와이프 제스처를 이용하여 탭 간 이동이 가능
- Interface Builder에서도 삽입 가능
![4](https://raw.githubusercontent.com/junggate/JGTabBarView/master/ScreenSample/4.png)
![5](https://raw.githubusercontent.com/junggate/JGTabBarView/master/ScreenSample/jgtab.gif)
// create UIViewController (with JGTabBar protocol)
class TabViewController: UIViewController, JGTabBar
// XIB View variable
@IBOutlet weak var tabBarView: JGTabBarView!
override func viewDidLoad() {
super.viewDidLoad()
var views: [TabViewController] = []
(1...4).forEach { (index) in
let tabViewController = TabViewController(nibName: "TabViewController", bundle: nil)
// Tab Button Title.
tabViewController.tabTitle = "Button\(index)"
views.append(tabViewController)
}
// set tabs
tabBarView.tabs = views
}