├── .gitignore ├── .swift-version ├── BaseExtension.podspec ├── BaseExtension ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── BaseLogger.swift │ ├── BaseNavigationViewController.swift │ ├── BaseView.swift │ ├── BaseViewController.swift │ ├── Date+Extension.swift │ ├── DeviceType.swift │ ├── NSLayoutConstraint+Extension.swift │ ├── Reactive+Extension.swift │ ├── RxCollectionViewBindProtocol.swift │ ├── RxCollectionViewCustomReloadDataSource.swift │ ├── RxTableViewBindProtocol.swift │ ├── RxTableViewCustomAnimatedDataSource.swift │ ├── RxTableViewCustomReloadDataSource.swift │ ├── UIColor+Extension.swift │ ├── UIImage+Extension.swift │ ├── UIStoryboard+Extension.swift │ └── UIView+Extension.swift ├── Example ├── BaseExtension.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── BaseExtension-Example.xcscheme ├── BaseExtension.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── BaseExtension │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | Pods/ 34 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.2 -------------------------------------------------------------------------------- /BaseExtension.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint TLPhotoPicker.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'BaseExtension' 11 | s.version = '1.2.8' 12 | s.summary = 'base extension' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | TODO: Add long description of the pod here. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/tilltue/BaseExtension' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'wade.hawk' => 'junhyi.park@gmail.com' } 28 | s.source = { :git => 'https://github.com/tilltue/BaseExtension.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | s.swift_version = '4.2' 33 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' } 34 | 35 | s.source_files = 'BaseExtension/Classes/**/*' 36 | s.dependency "RxSwift" 37 | s.dependency "RxCocoa" 38 | s.dependency "RxDataSources" 39 | s.dependency "XCGLogger" 40 | 41 | # s.resource_bundles = { 'BaseExtension' => ['BaseExtension/Classes/*.xib'] } 42 | # s.resources = 'BaseExtension/BaseExtension.bundle' 43 | 44 | # s.public_header_files = 'Pod/Classes/**/*.h' 45 | # s.frameworks = 'UIKit', 'MapKit' 46 | # s.dependency 'AFNetworking', '~> 2.3' 47 | end 48 | 49 | -------------------------------------------------------------------------------- /BaseExtension/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tilltue/BaseExtension/4071ccb95a4405d16f1699b672e2434c8b0d69d0/BaseExtension/Assets/.gitkeep -------------------------------------------------------------------------------- /BaseExtension/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tilltue/BaseExtension/4071ccb95a4405d16f1699b672e2434c8b0d69d0/BaseExtension/Classes/.gitkeep -------------------------------------------------------------------------------- /BaseExtension/Classes/BaseLogger.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BaseLogger.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2017. 10. 9.. 6 | // 7 | 8 | import XCGLogger 9 | 10 | public let log = XCGLogger.default 11 | 12 | public struct BaseLogger { 13 | public static func setupLogger(level: XCGLogger.Level? = nil) { 14 | #if DEBUG 15 | log.setup(level: level ?? .verbose, showThreadName: true, showLevel: true, showFileNames: true, showLineNumbers: true) 16 | #else 17 | log.setup(level: level ?? .severe, showThreadName: true, showLevel: true, showFileNames: true, showLineNumbers: true) 18 | if let consoleLog = log.destination(withIdentifier: XCGLogger.Constants.baseConsoleDestinationIdentifier) as? ConsoleDestination { 19 | consoleLog.logQueue = XCGLogger.logQueue 20 | } 21 | #endif 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /BaseExtension/Classes/BaseNavigationViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BaseNavigationViewController.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2016. 12. 7.. 6 | // Copyright © 2016년 wade.hawk. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class BaseNavigationViewController: UINavigationController { 12 | @IBInspectable var clearNavStyle: Bool = false 13 | @IBInspectable var statusBarStyle: Bool = true 14 | @IBInspectable var navTintColor: UIColor = UIColor.white 15 | 16 | override open var preferredStatusBarStyle: UIStatusBarStyle { 17 | return self.statusBarStyle ? .lightContent : .default 18 | } 19 | override open func viewDidLoad() { 20 | super.viewDidLoad() 21 | self.navigationBar.barTintColor = self.navTintColor 22 | if self.navTintColor.isEqual(UIColor.white) { 23 | self.navigationBar.tintColor = UIColor.white 24 | } 25 | if self.clearNavStyle { 26 | hideNavigationBar() 27 | } 28 | } 29 | fileprivate func hideNavigationBar() { 30 | self.navigationBar.setBackgroundImage(UIImage(), for: .default) 31 | self.navigationBar.shadowImage = UIImage() 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /BaseExtension/Classes/BaseView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BaseView.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2018. 1. 21.. 6 | // 7 | 8 | import UIKit 9 | import RxSwift 10 | 11 | open class BaseUICollectionViewCell: UICollectionViewCell { 12 | public var disposeBag = DisposeBag() 13 | deinit { 14 | log.verbose(type(of: self)) 15 | } 16 | } 17 | open class BaseUITableViewCell: UITableViewCell { 18 | public var disposeBag = DisposeBag() 19 | public weak var insideEvent: PublishSubject? = nil 20 | 21 | deinit { 22 | log.verbose(type(of: self)) 23 | } 24 | } 25 | open class BaseUICollectionReusableView: UICollectionReusableView { 26 | public var disposeBag = DisposeBag() 27 | deinit { 28 | log.verbose(type(of: self)) 29 | } 30 | } 31 | 32 | open class BaseUIView: UIView { 33 | public var disposeBag = DisposeBag() 34 | deinit { 35 | log.verbose(type(of: self)) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /BaseExtension/Classes/BaseViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BaseViewController.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2017. 10. 9.. 6 | // 7 | 8 | import Foundation 9 | import RxSwift 10 | import RxCocoa 11 | 12 | protocol BaseViewControllerType: class { 13 | var disposeBag: DisposeBag { get } 14 | var viewControllerState: ViewControllerState { get set } 15 | var statusBarStyle: UIStatusBarStyle { get } 16 | } 17 | 18 | open class BaseViewController: UIViewController, BaseViewControllerType { 19 | open var disposeBag = DisposeBag() 20 | open var compositeDisposable = CompositeDisposable() 21 | open var viewControllerState: ViewControllerState = .notloaded 22 | open var statusBarStyle: UIStatusBarStyle { get { return .default } } 23 | deinit { 24 | self.compositeDisposable.dispose() 25 | log.verbose(type(of: self)) 26 | } 27 | override open func viewDidLoad() { 28 | super.viewDidLoad() 29 | self.viewControllerState = .hidden 30 | self.rx.viewEvent.subscribe(onNext: { [weak self] state in 31 | self?.viewControllerState = state 32 | }).disposed(by: disposeBag) 33 | } 34 | override open func viewWillDisappear(_ animated: Bool) { 35 | super.viewWillDisappear(animated) 36 | self.view.endEditing(true) 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /BaseExtension/Classes/Date+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Date+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2018. 3. 2.. 6 | // 7 | 8 | import Foundation 9 | 10 | extension Date { 11 | public func dateString(dateFormat: String = "yyyy-MM-dd") -> String { 12 | let formatter = DateFormatter() 13 | formatter.dateFormat = dateFormat 14 | return formatter.string(from: self) 15 | } 16 | public static func dateAt(string: String, dateFormat: String = "yyyy-MM-dd") -> Date? { 17 | let formatter = DateFormatter() 18 | formatter.dateFormat = dateFormat 19 | return formatter.date(from: string) 20 | } 21 | public func toLocalTime() -> Date { 22 | let timezone: TimeZone = TimeZone.autoupdatingCurrent 23 | let seconds: TimeInterval = TimeInterval(timezone.secondsFromGMT(for: self)) 24 | return Date(timeInterval: seconds, since: self) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /BaseExtension/Classes/DeviceType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Device.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2018. 5. 22.. 6 | // 7 | 8 | import Foundation 9 | 10 | public struct ScreenSize 11 | { 12 | public static let SCREEN_WIDTH = UIScreen.main.bounds.size.width 13 | public static let SCREEN_HEIGHT = UIScreen.main.bounds.size.height 14 | public static let SCREEN_MAX_LENGTH = max(ScreenSize.SCREEN_WIDTH, ScreenSize.SCREEN_HEIGHT) 15 | public static let SCREEN_MIN_LENGTH = min(ScreenSize.SCREEN_WIDTH, ScreenSize.SCREEN_HEIGHT) 16 | } 17 | 18 | public struct DeviceType 19 | { 20 | public static let isiPhone4OrLess = UIDevice.current.userInterfaceIdiom == .phone && ScreenSize.SCREEN_MAX_LENGTH < 568.0 21 | public static let isiPhone5 = UIDevice.current.userInterfaceIdiom == .phone && ScreenSize.SCREEN_MAX_LENGTH == 568.0 22 | public static let isiPhone6 = UIDevice.current.userInterfaceIdiom == .phone && ScreenSize.SCREEN_MAX_LENGTH == 667.0 23 | public static let isiPhone6p = UIDevice.current.userInterfaceIdiom == .phone && ScreenSize.SCREEN_MAX_LENGTH == 736.0 24 | public static let isiPad = UIDevice.current.userInterfaceIdiom == .pad && ScreenSize.SCREEN_MAX_LENGTH == 1024.0 25 | public static let isiPadPro = UIDevice.current.userInterfaceIdiom == .pad && ScreenSize.SCREEN_MAX_LENGTH == 1366.0 26 | } 27 | -------------------------------------------------------------------------------- /BaseExtension/Classes/NSLayoutConstraint+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSLayoutConstraint+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2018. 5. 1.. 6 | // 7 | 8 | import Foundation 9 | 10 | extension NSLayoutConstraint { 11 | @IBInspectable public var preciseConstant: Int { 12 | get { 13 | return Int(constant * UIScreen.main.scale) 14 | } 15 | set { 16 | constant = CGFloat(newValue) / UIScreen.main.scale 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /BaseExtension/Classes/Reactive+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Reactive+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2017. 10. 9.. 6 | // 7 | 8 | import Foundation 9 | import RxSwift 10 | import RxCocoa 11 | 12 | // MARK: - CompositeDisposable 13 | extension CompositeDisposable { 14 | public func add(disposables: [Disposable]) { 15 | for disposable in disposables { 16 | _ = self.insert(disposable) 17 | } 18 | } 19 | } 20 | 21 | // MARK: - UIViewController 22 | public enum ViewControllerState { 23 | case notloaded, hidden, hiding, showing, shown 24 | } 25 | 26 | extension Reactive where Base: UIViewController { 27 | public var viewWillAppear: Observable<[Any]> { 28 | return sentMessage(#selector(UIViewController.viewWillAppear(_:))) 29 | } 30 | public var viewDidAppear: Observable<[Any]> { 31 | return sentMessage(#selector(UIViewController.viewDidAppear(_:))) 32 | } 33 | public var viewDidDisappear: Observable<[Any]> { 34 | return sentMessage(#selector(UIViewController.viewDidDisappear(_:))) 35 | } 36 | public var viewWillDisappear: Observable<[Any]> { 37 | return sentMessage(#selector(UIViewController.viewWillDisappear(_:))) 38 | } 39 | public var viewDidLayoutSubviews: Observable<[Any]> { 40 | return sentMessage(#selector(UIViewController.viewDidLayoutSubviews)) 41 | } 42 | public var viewEvent: Observable { 43 | let willAppear = viewWillAppear.map{ _ -> ViewControllerState in return .showing } 44 | let didAppear = viewDidAppear.map{ _ -> ViewControllerState in return .shown } 45 | let willDisappear = viewWillDisappear.map{ _ -> ViewControllerState in return .hiding } 46 | let didDisappear = viewDidDisappear.map{ _ -> ViewControllerState in return .hidden } 47 | return Observable.of(willAppear,didAppear,willDisappear,didDisappear).merge() 48 | } 49 | } 50 | 51 | // MARK: - UIView 52 | extension Reactive where Base: UIView { 53 | public var layoutSubviews: Observable<[Any]> { 54 | return sentMessage(#selector(UIView.layoutSubviews)) 55 | } 56 | } 57 | 58 | // MARK: - UIButton 59 | extension Reactive where Base: UIButton { 60 | public var throttleTap: Observable { 61 | return self.tap.throttle(0.2, scheduler: MainScheduler.instance) 62 | } 63 | } 64 | 65 | // MARK: - UIBarButtonItem 66 | extension Reactive where Base: UIBarButtonItem { 67 | public var throttleTap: Observable { 68 | return self.tap.throttle(0.2, scheduler: MainScheduler.instance) 69 | } 70 | } 71 | 72 | public enum KeyboardNotification { 73 | case willShow 74 | case didShow 75 | case willChangeFrame 76 | case willHide 77 | case didHide 78 | var name: NSNotification.Name { 79 | switch self { 80 | case .willShow: 81 | return UIResponder.keyboardWillShowNotification 82 | case .didShow: 83 | return UIResponder.keyboardDidShowNotification 84 | case .willChangeFrame: 85 | return UIResponder.keyboardWillChangeFrameNotification 86 | case .willHide: 87 | return UIResponder.keyboardWillHideNotification 88 | case .didHide: 89 | return UIResponder.keyboardDidHideNotification 90 | } 91 | } 92 | } 93 | 94 | // MARK: - NotificationCenter 95 | extension Reactive where Base: NotificationCenter { 96 | public func keyboard(_ notification: KeyboardNotification) -> Observable<(begin: (CGRect,TimeInterval), end: (CGRect,TimeInterval))> { 97 | return self.notification(notification.name) 98 | .flatMap { event -> Observable<(begin: (CGRect,TimeInterval), end: (CGRect,TimeInterval))> in 99 | guard let userInfo = event.userInfo as? [String: AnyObject] else { return Observable.empty() } 100 | guard let begin = userInfo[UIResponder.keyboardFrameBeginUserInfoKey]?.cgRectValue, let end = userInfo[UIResponder.keyboardFrameEndUserInfoKey]?.cgRectValue, let duration = userInfo[UIResponder.keyboardAnimationDurationUserInfoKey] as? TimeInterval else { return Observable.empty() } 101 | if begin.origin == end.origin { return Observable.empty() } 102 | return Observable.just((begin: (begin, duration), end: (end, duration))) 103 | } 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /BaseExtension/Classes/RxCollectionViewBindProtocol.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxCollectionViewBindProtocol.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 17/11/2018. 6 | // 7 | 8 | import Foundation 9 | import RxSwift 10 | import RxCocoa 11 | import RxDataSources 12 | 13 | public protocol RxCellViewModel: IdentifiableType, Equatable { 14 | var cellIdentifier: String { get } 15 | } 16 | 17 | public struct RxDataSourceBindProperty { 18 | public var cellNibSet = [String]() 19 | public var bindViewModels = BehaviorRelay<[AnimatableSectionModel]>(value: []) 20 | public var selectedCell = PublishSubject<(IndexPath,ModelType)>() 21 | public var deletedCell = PublishSubject<(IndexPath,ModelType)>() 22 | public var reloaded = PublishSubject() 23 | public var insideCellEvent = PublishSubject() 24 | public init() { 25 | 26 | } 27 | } 28 | 29 | public protocol RxCollectionViewBindProtocol: class { 30 | associatedtype ModelType: RxCellViewModel 31 | var bindProperty: RxDataSourceBindProperty { get set } 32 | var disposeBag: DisposeBag { get set } 33 | func createDataSource(collectionView: UICollectionView) -> RxCollectionViewCustomReloadDataSource 34 | } 35 | 36 | extension RxCollectionViewBindProtocol { 37 | 38 | public typealias SectionModelType = AnimatableSectionModel 39 | 40 | public func bindDataSource(collectionView: UICollectionView) { 41 | register(collectionView: collectionView, nibNameSet: self.bindProperty.cellNibSet) 42 | let dataSource = createDataSource(collectionView: collectionView) 43 | dataSource.reloadedEvent = { [weak self] in 44 | guard let property = self?.bindProperty else { return } 45 | property.reloaded.on(.next(())) 46 | } 47 | self.bindProperty.bindViewModels.asObservable().bind(to: collectionView.rx.items(dataSource: dataSource)).disposed(by: disposeBag) 48 | collectionView.rx.itemSelected.subscribe(onNext: { [weak self] indexPath in 49 | guard let property = self?.bindProperty else { return } 50 | guard let sectionModel = (property.bindViewModels.value.filter{ $0.model == "section\(indexPath.section)" }.first) else { return } 51 | property.selectedCell.on(.next((indexPath, sectionModel.items[indexPath.row]))) 52 | }).disposed(by: disposeBag) 53 | } 54 | 55 | private func cellViewModel(at indexPath: IndexPath) -> ModelType? { 56 | let bindViewModels = self.bindProperty.bindViewModels.value 57 | guard indexPath.section < bindViewModels.count else { return nil } 58 | guard indexPath.row < bindViewModels[indexPath.section].items.count else { return nil } 59 | return bindViewModels[indexPath.section].items[indexPath.row] 60 | } 61 | 62 | private func register(collectionView: UICollectionView, nibNameSet: [String]) { 63 | for nibName in nibNameSet { 64 | let nib = UINib(nibName: nibName, bundle: nil) 65 | collectionView.register(nib, forCellWithReuseIdentifier: nibName) 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /BaseExtension/Classes/RxCollectionViewCustomReloadDataSource.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxCollectionViewCustomReloadDataSource.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 17/11/2018. 6 | // 7 | 8 | import Foundation 9 | import RxDataSources 10 | import RxSwift 11 | import RxCocoa 12 | 13 | open class RxCollectionViewCustomReloadDataSource: RxCollectionViewSectionedReloadDataSource { 14 | 15 | public var reloadEvent: ((Element,Int,Int,S.Item?, S.Item?) -> Void)? = nil 16 | public var reloadedEvent: (() -> Void)? = nil 17 | 18 | override open func collectionView(_ collectionView: UICollectionView, observedEvent: Event<[S]>) { 19 | Binder(self) { [weak self] dataSource, element in 20 | let oldCount = dataSource.sectionModels.first?.items.count ?? 0 21 | let oldFirstItem: S.Item? = dataSource.sectionModels.first?.items.first 22 | dataSource.setSections(element) 23 | let count = dataSource.sectionModels.first?.items.count ?? 0 24 | let newFirstItem: S.Item? = dataSource.sectionModels.first?.items.first 25 | collectionView.reloadData() 26 | self?.reloadEvent?(element, oldCount, count, oldFirstItem, newFirstItem) 27 | self?.reloadedEvent?() 28 | }.on(observedEvent) 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /BaseExtension/Classes/RxTableViewBindProtocol.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTableViewBindProtocol.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2017. 12. 9.. 6 | // 7 | 8 | import Foundation 9 | import RxSwift 10 | import RxCocoa 11 | import RxDataSources 12 | 13 | public protocol RxTableCellViewModel: IdentifiableType, Equatable { 14 | var cellIdentifier: String { get } 15 | var canEdit: Bool { get set } 16 | } 17 | 18 | extension RxTableCellViewModel { 19 | var canEdit: Bool { 20 | get { return false } 21 | set { } 22 | } 23 | } 24 | 25 | public struct RxTableViewBindProperty { 26 | public var cellNibSet = [String]() 27 | public var bindViewModels = BehaviorRelay<[AnimatableSectionModel]>(value: []) 28 | public var selectedCell = PublishSubject<(IndexPath,ModelType)>() 29 | public var deletedCell = PublishSubject<(IndexPath,ModelType)>() 30 | public var reloaded = PublishSubject() 31 | public var insideCellEvent = PublishSubject() 32 | public init() { 33 | 34 | } 35 | } 36 | 37 | public protocol RxTableViewBindProtocol: class { 38 | associatedtype ModelType: RxTableCellViewModel 39 | var bindProperty: RxTableViewBindProperty { get set } 40 | var disposeBag: DisposeBag { get set } 41 | func bindDataSource(tableView: UITableView) 42 | func createDataSource(tableView: UITableView) -> RxTableViewCustomReloadDataSource 43 | func createAnimatedDataSource(tableView: UITableView) -> RxTableViewCustomAnimatedDataSource 44 | } 45 | 46 | extension RxTableViewBindProtocol { 47 | 48 | public typealias SectionModelType = AnimatableSectionModel 49 | 50 | public func bindDataSource(tableView: UITableView) { 51 | register(tableView: tableView, nibNameSet: self.bindProperty.cellNibSet) 52 | let dataSource = createDataSource(tableView: tableView) 53 | dataSource.canEditRowAtIndexPath = { [weak self] (ds, IndexPath) -> Bool in 54 | guard let bindViewModels = self?.bindProperty.bindViewModels else { return false } 55 | return bindViewModels.value[IndexPath.section].items[IndexPath.row].canEdit 56 | } 57 | dataSource.reloadedEvent = { [weak self] in 58 | guard let property = self?.bindProperty else { return } 59 | property.reloaded.on(.next(())) 60 | } 61 | self.bindProperty.bindViewModels.asObservable().bind(to: tableView.rx.items(dataSource: dataSource)).disposed(by: disposeBag) 62 | bindEvent(tableView: tableView) 63 | } 64 | 65 | public func createDataSource(tableView: UITableView) -> RxTableViewCustomReloadDataSource { 66 | let dataSource = RxTableViewCustomReloadDataSource(configureCell: { ds, tv, ip, cellViewModel -> UITableViewCell in 67 | return UITableViewCell() 68 | }) 69 | return dataSource 70 | } 71 | 72 | public func createAnimatedDataSource(tableView: UITableView) -> RxTableViewCustomAnimatedDataSource { 73 | let dataSource = RxTableViewCustomAnimatedDataSource(configureCell: { ds, tv, ip, cellViewModel -> UITableViewCell in 74 | return UITableViewCell() 75 | }) 76 | return dataSource 77 | } 78 | 79 | public func bindAnimatedDataSource(tableView: UITableView) { 80 | register(tableView: tableView, nibNameSet: self.bindProperty.cellNibSet) 81 | let dataSource = createAnimatedDataSource(tableView: tableView) 82 | dataSource.canEditRowAtIndexPath = { [weak self] (ds, IndexPath) -> Bool in 83 | guard let bindViewModels = self?.bindProperty.bindViewModels else { return false } 84 | return bindViewModels.value[IndexPath.section].items[IndexPath.row].canEdit 85 | } 86 | dataSource.reloadedEvent = { [weak self] in 87 | guard let property = self?.bindProperty else { return } 88 | property.reloaded.on(.next(())) 89 | } 90 | self.bindProperty.bindViewModels.asObservable().bind(to: tableView.rx.items(dataSource: dataSource)).disposed(by: disposeBag) 91 | bindEvent(tableView: tableView) 92 | } 93 | 94 | private func bindEvent(tableView: UITableView) { 95 | tableView.rx.itemSelected.subscribe(onNext: { [weak self] indexPath in 96 | guard let property = self?.bindProperty else { return } 97 | guard let sectionModel = (property.bindViewModels.value.filter{ $0.model == "section\(indexPath.section)" }.first) else { return } 98 | property.selectedCell.on(.next((indexPath, sectionModel.items[indexPath.row]))) 99 | }).disposed(by: disposeBag) 100 | tableView.rx.itemDeleted.subscribe(onNext: { [weak self] indexPath in 101 | guard let property = self?.bindProperty else { return } 102 | guard let sectionModel = (property.bindViewModels.value.filter{ $0.model == "section\(indexPath.section)" }.first) else { return } 103 | property.deletedCell.on(.next((indexPath, sectionModel.items[indexPath.row]))) 104 | }).disposed(by: disposeBag) 105 | } 106 | 107 | private func cellViewModel(at indexPath: IndexPath) -> ModelType? { 108 | let bindViewModels = self.bindProperty.bindViewModels.value 109 | guard indexPath.section < bindViewModels.count else { return nil } 110 | guard indexPath.row < bindViewModels[indexPath.section].items.count else { return nil } 111 | return bindViewModels[indexPath.section].items[indexPath.row] 112 | } 113 | 114 | private func register(tableView: UITableView, nibNameSet: [String]) { 115 | for nibName in nibNameSet { 116 | let nib = UINib(nibName: nibName, bundle: nil) 117 | tableView.register(nib, forCellReuseIdentifier: nibName) 118 | } 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /BaseExtension/Classes/RxTableViewCustomAnimatedDataSource.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTableViewCustomAnimatedDataSource.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 09/12/2018. 6 | // 7 | 8 | import Foundation 9 | import UIKit 10 | import RxSwift 11 | import RxCocoa 12 | import RxDataSources 13 | import Differentiator 14 | 15 | open class RxTableViewCustomAnimatedDataSource 16 | : TableViewSectionedDataSource 17 | , RxTableViewDataSourceType { 18 | public typealias Element = [S] 19 | public typealias DecideViewTransition = (TableViewSectionedDataSource, UITableView, [Changeset]) -> ViewTransition 20 | 21 | /// Animation configuration for data source 22 | public var animationConfiguration: AnimationConfiguration 23 | 24 | /// Calculates view transition depending on type of changes 25 | public var decideViewTransition: DecideViewTransition 26 | 27 | public var reloadedEvent: (() -> Void)? = nil 28 | 29 | public init( 30 | animationConfiguration: AnimationConfiguration = AnimationConfiguration(), 31 | decideViewTransition: @escaping DecideViewTransition = { _, _, _ in .animated }, 32 | configureCell: @escaping ConfigureCell, 33 | titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, 34 | titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, 35 | canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, 36 | canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false }, 37 | sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil }, 38 | sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index } 39 | ) { 40 | self.animationConfiguration = animationConfiguration 41 | self.decideViewTransition = decideViewTransition 42 | super.init( 43 | configureCell: configureCell, 44 | titleForHeaderInSection: titleForHeaderInSection, 45 | titleForFooterInSection: titleForFooterInSection, 46 | canEditRowAtIndexPath: canEditRowAtIndexPath, 47 | canMoveRowAtIndexPath: canMoveRowAtIndexPath, 48 | sectionIndexTitles: sectionIndexTitles, 49 | sectionForSectionIndexTitle: sectionForSectionIndexTitle 50 | ) 51 | } 52 | 53 | var dataSet = false 54 | 55 | open func tableView(_ tableView: UITableView, observedEvent: Event) { 56 | Binder(self) { dataSource, newSections in 57 | if !self.dataSet { 58 | self.dataSet = true 59 | dataSource.setSections(newSections) 60 | tableView.reloadData() 61 | self.reloadedEvent?() 62 | } 63 | else { 64 | DispatchQueue.main.async { 65 | // if view is not in view hierarchy, performing batch updates will crash the app 66 | if tableView.window == nil { 67 | dataSource.setSections(newSections) 68 | tableView.reloadData() 69 | self.reloadedEvent?() 70 | return 71 | } 72 | let oldSections = dataSource.sectionModels 73 | do { 74 | let differences = try Diff.differencesForSectionedView(initialSections: oldSections, finalSections: newSections) 75 | 76 | switch self.decideViewTransition(self, tableView, differences) { 77 | case .animated: 78 | for difference in differences { 79 | dataSource.setSections(difference.finalSections) 80 | 81 | tableView.performBatchUpdates(difference, animationConfiguration: self.animationConfiguration) 82 | } 83 | case .reload: 84 | self.setSections(newSections) 85 | tableView.reloadData() 86 | self.reloadedEvent?() 87 | return 88 | } 89 | } 90 | catch { 91 | self.setSections(newSections) 92 | tableView.reloadData() 93 | self.reloadedEvent?() 94 | } 95 | } 96 | } 97 | }.on(observedEvent) 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /BaseExtension/Classes/RxTableViewCustomReloadDataSource.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTableViewCustomReloadDataSource.swift 3 | // AwesomeBlogs 4 | // 5 | // Created by wade.hawk on 2017. 8. 21.. 6 | // Copyright © 2017년 wade.hawk. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxDataSources 11 | import RxSwift 12 | import RxCocoa 13 | 14 | open class RxTableViewCustomReloadDataSource: RxTableViewSectionedReloadDataSource { 15 | 16 | public var reloadEvent: ((Element,Int,Int,S.Item?, S.Item?) -> Void)? = nil 17 | public var reloadedEvent: (() -> Void)? = nil 18 | 19 | override open func tableView(_ tableView: UITableView, observedEvent: Event) { 20 | Binder(self) { [weak self] dataSource, element in 21 | let oldCount = dataSource.sectionModels.first?.items.count ?? 0 22 | let oldFirstItem: S.Item? = dataSource.sectionModels.first?.items.first 23 | dataSource.setSections(element) 24 | let count = dataSource.sectionModels.first?.items.count ?? 0 25 | let newFirstItem: S.Item? = dataSource.sectionModels.first?.items.first 26 | tableView.reloadData() 27 | self?.reloadEvent?(element,oldCount,count,oldFirstItem, newFirstItem) 28 | self?.reloadedEvent?() 29 | }.on(observedEvent) 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /BaseExtension/Classes/UIColor+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2018. 2. 5.. 6 | // 7 | 8 | import UIKit 9 | 10 | extension UIColor { 11 | convenience public init(hex: Int, alpha: CGFloat = 1) { 12 | let components = ( 13 | R: CGFloat((hex >> 16) & 0xff) / 255, 14 | G: CGFloat((hex >> 08) & 0xff) / 255, 15 | B: CGFloat((hex >> 00) & 0xff) / 255 16 | ) 17 | self.init(red: components.R, green: components.G, blue: components.B, alpha:alpha) 18 | } 19 | 20 | convenience public init(hexString: String) { 21 | var cString:String = hexString.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).uppercased() 22 | if (cString.hasPrefix("#")) { 23 | cString = (cString as NSString).substring(to:1) 24 | let rString = (cString as NSString).substring(to:2) 25 | let gString = ((cString as NSString).substring(from: 2) as NSString).substring(to:2) 26 | let bString = ((cString as NSString).substring(from: 4) as NSString).substring(to:2) 27 | 28 | var r:CUnsignedInt = 0, g:CUnsignedInt = 0, b:CUnsignedInt = 0 29 | Scanner(string: rString).scanHexInt32(&r) 30 | Scanner(string: gString).scanHexInt32(&g) 31 | Scanner(string: bString).scanHexInt32(&b) 32 | self.init(red: CGFloat(r) / 255.0, green: CGFloat(g) / 255.0, blue: CGFloat(b) / 255.0, alpha: CGFloat(1)) 33 | }else{ 34 | log.debug("invalid UIColor Hex String") 35 | self.init(red: CGFloat(255) / 255.0, green: CGFloat(255) / 255.0, blue: CGFloat(255) / 255.0, alpha: CGFloat(1)) 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /BaseExtension/Classes/UIImage+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2016. 11. 16.. 6 | // Copyright © 2016년 wade.hawk. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIImage { 12 | public func ipMask(color:UIColor) -> UIImage { 13 | var result: UIImage? 14 | let rect = CGRect(x:0, y:0, width:size.width, height:size.height) 15 | UIGraphicsBeginImageContextWithOptions(rect.size, false, scale) 16 | if let c = UIGraphicsGetCurrentContext() { 17 | self.draw(in: rect) 18 | c.setFillColor(color.cgColor) 19 | c.setBlendMode(.sourceAtop) 20 | c.fill(rect) 21 | result = UIGraphicsGetImageFromCurrentImageContext() 22 | } 23 | UIGraphicsEndImageContext() 24 | return result ?? self 25 | } 26 | 27 | public func resize(size: CGSize, scale: CGFloat? = nil) -> UIImage { 28 | UIGraphicsBeginImageContextWithOptions(size, false, scale ?? self.scale) 29 | self.draw(in: CGRect(x:0, y:0, width:size.width, height:size.height)) 30 | let result = UIGraphicsGetImageFromCurrentImageContext() 31 | UIGraphicsEndImageContext() 32 | return result ?? self 33 | } 34 | 35 | public func crop(withRect: CGRect) -> UIImage { 36 | UIGraphicsBeginImageContextWithOptions(withRect.size, false, self.scale) 37 | self.draw(at: CGPoint(x: -withRect.origin.x, y: -withRect.origin.y)) 38 | let result = UIGraphicsGetImageFromCurrentImageContext() 39 | UIGraphicsEndImageContext() 40 | return result ?? self 41 | } 42 | 43 | //MARK: - Class func 44 | class public func mergeImage(images: [UIImage]) -> UIImage? { 45 | guard let base = images.first else { return nil } 46 | let size = base.size 47 | UIGraphicsBeginImageContextWithOptions(size, false, base.scale) 48 | for image in images { 49 | image.draw(in: CGRect(x: 0, y: 0, width: size.width, height: size.height)) 50 | } 51 | let result = UIGraphicsGetImageFromCurrentImageContext() 52 | UIGraphicsEndImageContext() 53 | return result 54 | } 55 | 56 | class public func image(withColor: UIColor, size: CGSize) -> UIImage { 57 | let rect = CGRect(x: 0, y: 0, width: size.width, height: size.height) 58 | UIGraphicsBeginImageContextWithOptions(size, false, 0) 59 | withColor.setFill() 60 | UIRectFill(rect) 61 | let image: UIImage = UIGraphicsGetImageFromCurrentImageContext()! 62 | UIGraphicsEndImageContext() 63 | return image 64 | } 65 | } 66 | 67 | -------------------------------------------------------------------------------- /BaseExtension/Classes/UIStoryboard+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIStoryboard+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2017. 10. 17.. 6 | // 7 | 8 | import Foundation 9 | extension UIStoryboard { 10 | public class func VC(name: String, bundle: Bundle? = nil, withIdentifier: String) -> UIViewController { 11 | let board = UIStoryboard(name: name, bundle: bundle) 12 | return board.instantiateViewController(withIdentifier: withIdentifier) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BaseExtension/Classes/UIView+Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Extension.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 2016. 11. 16.. 6 | // Copyright © 2016년 wade.hawk. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | // MARK: - Frame extension 12 | extension UIView { 13 | public var x: CGFloat { 14 | get { 15 | return self.frame.origin.x 16 | } 17 | set { 18 | var frame = self.frame 19 | frame.origin.x = newValue 20 | self.frame = frame 21 | } 22 | } 23 | public var y: CGFloat { 24 | get { 25 | return self.frame.origin.y 26 | } 27 | set { 28 | var frame = self.frame 29 | frame.origin.y = newValue 30 | self.frame = frame 31 | } 32 | } 33 | public var width: CGFloat { 34 | get { 35 | return self.frame.size.width 36 | } 37 | set { 38 | var frame = self.frame 39 | frame.size.width = newValue 40 | self.frame = frame 41 | } 42 | } 43 | public var height: CGFloat { 44 | get { 45 | return self.frame.size.height 46 | } 47 | set { 48 | var frame = self.frame 49 | frame.size.height = newValue 50 | self.frame = frame 51 | } 52 | } 53 | public var origin: CGPoint { 54 | get { 55 | return self.frame.origin 56 | } 57 | set { 58 | var frame = self.frame 59 | frame.origin.x = newValue.x 60 | frame.origin.y = newValue.y 61 | self.frame = frame 62 | } 63 | } 64 | public var size: CGSize { 65 | get { 66 | return self.frame.size 67 | } 68 | set { 69 | var frame = self.frame 70 | frame.size.width = newValue.width 71 | frame.size.height = newValue.height 72 | self.frame = frame 73 | } 74 | } 75 | public var rect: CGRect { 76 | get { 77 | return self.frame 78 | } 79 | set { 80 | self.frame = newValue 81 | } 82 | } 83 | public var centerX: CGFloat { 84 | get { 85 | return self.center.x 86 | } 87 | set { 88 | self.center = CGPoint(x: newValue, y: self.center.y) 89 | } 90 | } 91 | public var centerY: CGFloat { 92 | get { 93 | return self.center.x 94 | } 95 | set { 96 | self.center = CGPoint(x: self.center.x, y: newValue) 97 | } 98 | } 99 | } 100 | 101 | // MARK: - View @IBInspectable 102 | extension UIView { 103 | @IBInspectable public var cornerRadius: CGFloat { 104 | get { return layer.cornerRadius } 105 | set { layer.cornerRadius = newValue} 106 | } 107 | @IBInspectable public var borderColor: UIColor { 108 | get { return UIColor(cgColor:layer.borderColor!) } 109 | set { layer.borderColor = newValue.cgColor } 110 | } 111 | @IBInspectable public var borderWidth: CGFloat { 112 | get { return layer.borderWidth } 113 | set { 114 | if newValue == 1 { 115 | layer.borderWidth = 1 / UIScreen.main.scale 116 | }else { 117 | layer.borderWidth = newValue 118 | } 119 | } 120 | } 121 | } 122 | 123 | // MARK: - View extension 124 | extension UIView { 125 | public class func load(fromNibNamed: String, bundle : Bundle? = nil, withOwner: Any? = nil) -> UIView? { 126 | return UINib(nibName: fromNibNamed, bundle: bundle).instantiate(withOwner: withOwner, options: nil)[0] as? UIView 127 | } 128 | public func removeAllSubView() { 129 | for subview in self.subviews { 130 | subview.removeFromSuperview() 131 | } 132 | } 133 | public func flip(completion: ((Bool) -> Swift.Void)? = nil) { 134 | UIView.transition(with: self, duration: 0.2, options: .transitionFlipFromRight, animations: { 135 | self.transform = CGAffineTransform(rotationAngle: 0) 136 | }, completion: completion) 137 | } 138 | public func flip(back: UIImage?, completion: (() -> Swift.Void)? = nil){ 139 | let backView = UIImageView(frame: self.frame) 140 | backView.origin = CGPoint.zero 141 | backView.image = back 142 | self.addSubview(backView) 143 | UIView.transition(with: backView, duration: 0.2, options: .transitionFlipFromRight, animations: { 144 | self.isHidden = false 145 | }, completion: { _ in 146 | backView.removeFromSuperview() 147 | }) 148 | UIView.transition(with: self, duration: 0.2, options: .transitionFlipFromRight, animations:nil, completion: { _ in 149 | self.isHidden = false 150 | completion?() 151 | }) 152 | } 153 | public func takeSnapshotOfView() -> UIImage? { 154 | UIGraphicsBeginImageContext(CGSize(width: self.width, height: self.height)) 155 | self.drawHierarchy(in: CGRect(x: 0, y: 0, width: self.width, height: self.height), afterScreenUpdates: true) 156 | let image = UIGraphicsGetImageFromCurrentImageContext() 157 | UIGraphicsEndImageContext() 158 | return image 159 | } 160 | // func fadeHidden() { 161 | // UIView.animate(withDuration: 0.5, animations: { 162 | // self.alpha = 0 163 | // }) { _ in 164 | // self.alpha = 1 165 | // self.isHidden = true 166 | // } 167 | // } 168 | // func delayUserInterfaceEnable(_ duration: Double = 0.1) { 169 | // self.isUserInteractionEnabled = false 170 | // delay(delay: duration, closure: { [weak self] _ in 171 | // self?.isUserInteractionEnabled = true 172 | // }) 173 | // } 174 | } 175 | 176 | extension UIView { 177 | public func snapshot() -> UIImage { 178 | UIGraphicsBeginImageContextWithOptions(bounds.size, false, UIScreen.main.scale) 179 | drawHierarchy(in: bounds, afterScreenUpdates: true) 180 | let result = UIGraphicsGetImageFromCurrentImageContext() 181 | UIGraphicsEndImageContext() 182 | return result! 183 | } 184 | } 185 | 186 | public protocol Shakeable { } 187 | 188 | extension Shakeable where Self: UIView { 189 | public func shakeAnimation(){ 190 | func makeShakeAnimation() -> CAAnimation { 191 | let shake = CAKeyframeAnimation(keyPath: "transform.translation") 192 | shake.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.linear) 193 | shake.duration = 0.5 194 | shake.values = [-13,13,-13,13,-8,8-3,3,0] 195 | return shake 196 | } 197 | let shake = makeShakeAnimation() 198 | self.layer.add(shake, forKey: "shake") 199 | } 200 | } 201 | 202 | -------------------------------------------------------------------------------- /Example/BaseExtension.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 107D66E93F3B1D6445AA9A8A /* Pods_BaseExtension_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 640FB15E2A902E54A2467410 /* Pods_BaseExtension_Tests.framework */; }; 11 | 2D0AE4629AAF8A521BD08ACF /* Pods_BaseExtension_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BA1B5C85552170BE51CECC4 /* Pods_BaseExtension_Example.framework */; }; 12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 13 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 14 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 15 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 16 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 17 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = BaseExtension; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 0EBE900BB56C17CFF0D3E647 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 32 | 4BA1B5C85552170BE51CECC4 /* Pods_BaseExtension_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BaseExtension_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 607FACD01AFB9204008FA782 /* BaseExtension_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BaseExtension_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 607FACE51AFB9204008FA782 /* BaseExtension_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BaseExtension_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 43 | 640FB15E2A902E54A2467410 /* Pods_BaseExtension_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BaseExtension_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 9B8E8D021451C97ECC04B17A /* Pods-BaseExtension_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BaseExtension_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-BaseExtension_Tests/Pods-BaseExtension_Tests.release.xcconfig"; sourceTree = ""; }; 45 | A58ADA53A1A1E270C57C3980 /* Pods-BaseExtension_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BaseExtension_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-BaseExtension_Example/Pods-BaseExtension_Example.release.xcconfig"; sourceTree = ""; }; 46 | ADB59BE94260CB50B4653D65 /* Pods-BaseExtension_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BaseExtension_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-BaseExtension_Tests/Pods-BaseExtension_Tests.debug.xcconfig"; sourceTree = ""; }; 47 | D1B1C2EBE437D077F3922BFD /* BaseExtension.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = BaseExtension.podspec; path = ../BaseExtension.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 48 | DD8F671195389A863B8A3824 /* Pods-BaseExtension_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BaseExtension_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-BaseExtension_Example/Pods-BaseExtension_Example.debug.xcconfig"; sourceTree = ""; }; 49 | DF38CF4BB27B8A4E93BF76D8 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 2D0AE4629AAF8A521BD08ACF /* Pods_BaseExtension_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 107D66E93F3B1D6445AA9A8A /* Pods_BaseExtension_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for BaseExtension */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | 8577652E98921BA3E9792D56 /* Pods */, 80 | 98EC674672F8D19FA4DED452 /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* BaseExtension_Example.app */, 88 | 607FACE51AFB9204008FA782 /* BaseExtension_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for BaseExtension */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 98 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for BaseExtension"; 104 | path = BaseExtension; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | D1B1C2EBE437D077F3922BFD /* BaseExtension.podspec */, 136 | DF38CF4BB27B8A4E93BF76D8 /* README.md */, 137 | 0EBE900BB56C17CFF0D3E647 /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | 8577652E98921BA3E9792D56 /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | DD8F671195389A863B8A3824 /* Pods-BaseExtension_Example.debug.xcconfig */, 146 | A58ADA53A1A1E270C57C3980 /* Pods-BaseExtension_Example.release.xcconfig */, 147 | ADB59BE94260CB50B4653D65 /* Pods-BaseExtension_Tests.debug.xcconfig */, 148 | 9B8E8D021451C97ECC04B17A /* Pods-BaseExtension_Tests.release.xcconfig */, 149 | ); 150 | name = Pods; 151 | sourceTree = ""; 152 | }; 153 | 98EC674672F8D19FA4DED452 /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 4BA1B5C85552170BE51CECC4 /* Pods_BaseExtension_Example.framework */, 157 | 640FB15E2A902E54A2467410 /* Pods_BaseExtension_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* BaseExtension_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "BaseExtension_Example" */; 168 | buildPhases = ( 169 | 82DA739F00FE50BB3463EEDB /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | B5206F7C0CDED39814F93AA6 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = BaseExtension_Example; 180 | productName = BaseExtension; 181 | productReference = 607FACD01AFB9204008FA782 /* BaseExtension_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* BaseExtension_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "BaseExtension_Tests" */; 187 | buildPhases = ( 188 | C3858D359521BE82465791A8 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = BaseExtension_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* BaseExtension_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | LastSwiftMigration = 0900; 216 | }; 217 | 607FACE41AFB9204008FA782 = { 218 | CreatedOnToolsVersion = 6.3.1; 219 | LastSwiftMigration = 0900; 220 | TestTargetID = 607FACCF1AFB9204008FA782; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "BaseExtension" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | en, 230 | Base, 231 | ); 232 | mainGroup = 607FACC71AFB9204008FA782; 233 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 234 | projectDirPath = ""; 235 | projectRoot = ""; 236 | targets = ( 237 | 607FACCF1AFB9204008FA782 /* BaseExtension_Example */, 238 | 607FACE41AFB9204008FA782 /* BaseExtension_Tests */, 239 | ); 240 | }; 241 | /* End PBXProject section */ 242 | 243 | /* Begin PBXResourcesBuildPhase section */ 244 | 607FACCE1AFB9204008FA782 /* Resources */ = { 245 | isa = PBXResourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 249 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 250 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 607FACE31AFB9204008FA782 /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXShellScriptBuildPhase section */ 264 | 82DA739F00FE50BB3463EEDB /* [CP] Check Pods Manifest.lock */ = { 265 | isa = PBXShellScriptBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | inputPaths = ( 270 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 271 | "${PODS_ROOT}/Manifest.lock", 272 | ); 273 | name = "[CP] Check Pods Manifest.lock"; 274 | outputPaths = ( 275 | "$(DERIVED_FILE_DIR)/Pods-BaseExtension_Example-checkManifestLockResult.txt", 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | B5206F7C0CDED39814F93AA6 /* [CP] Embed Pods Frameworks */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | "${SRCROOT}/Pods/Target Support Files/Pods-BaseExtension_Example/Pods-BaseExtension_Example-frameworks.sh", 289 | "${BUILT_PRODUCTS_DIR}/BaseExtension/BaseExtension.framework", 290 | "${BUILT_PRODUCTS_DIR}/Differentiator/Differentiator.framework", 291 | "${BUILT_PRODUCTS_DIR}/ObjcExceptionBridging/ObjcExceptionBridging.framework", 292 | "${BUILT_PRODUCTS_DIR}/RxAtomic/RxAtomic.framework", 293 | "${BUILT_PRODUCTS_DIR}/RxCocoa/RxCocoa.framework", 294 | "${BUILT_PRODUCTS_DIR}/RxDataSources/RxDataSources.framework", 295 | "${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework", 296 | "${BUILT_PRODUCTS_DIR}/XCGLogger/XCGLogger.framework", 297 | ); 298 | name = "[CP] Embed Pods Frameworks"; 299 | outputPaths = ( 300 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BaseExtension.framework", 301 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Differentiator.framework", 302 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ObjcExceptionBridging.framework", 303 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxAtomic.framework", 304 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxCocoa.framework", 305 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxDataSources.framework", 306 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework", 307 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/XCGLogger.framework", 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | shellPath = /bin/sh; 311 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-BaseExtension_Example/Pods-BaseExtension_Example-frameworks.sh\"\n"; 312 | showEnvVarsInLog = 0; 313 | }; 314 | C3858D359521BE82465791A8 /* [CP] Check Pods Manifest.lock */ = { 315 | isa = PBXShellScriptBuildPhase; 316 | buildActionMask = 2147483647; 317 | files = ( 318 | ); 319 | inputPaths = ( 320 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 321 | "${PODS_ROOT}/Manifest.lock", 322 | ); 323 | name = "[CP] Check Pods Manifest.lock"; 324 | outputPaths = ( 325 | "$(DERIVED_FILE_DIR)/Pods-BaseExtension_Tests-checkManifestLockResult.txt", 326 | ); 327 | runOnlyForDeploymentPostprocessing = 0; 328 | shellPath = /bin/sh; 329 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 330 | showEnvVarsInLog = 0; 331 | }; 332 | /* End PBXShellScriptBuildPhase section */ 333 | 334 | /* Begin PBXSourcesBuildPhase section */ 335 | 607FACCC1AFB9204008FA782 /* Sources */ = { 336 | isa = PBXSourcesBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 340 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | }; 344 | 607FACE11AFB9204008FA782 /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | /* End PBXSourcesBuildPhase section */ 353 | 354 | /* Begin PBXTargetDependency section */ 355 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 356 | isa = PBXTargetDependency; 357 | target = 607FACCF1AFB9204008FA782 /* BaseExtension_Example */; 358 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 359 | }; 360 | /* End PBXTargetDependency section */ 361 | 362 | /* Begin PBXVariantGroup section */ 363 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 364 | isa = PBXVariantGroup; 365 | children = ( 366 | 607FACDA1AFB9204008FA782 /* Base */, 367 | ); 368 | name = Main.storyboard; 369 | sourceTree = ""; 370 | }; 371 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 372 | isa = PBXVariantGroup; 373 | children = ( 374 | 607FACDF1AFB9204008FA782 /* Base */, 375 | ); 376 | name = LaunchScreen.xib; 377 | sourceTree = ""; 378 | }; 379 | /* End PBXVariantGroup section */ 380 | 381 | /* Begin XCBuildConfiguration section */ 382 | 607FACED1AFB9204008FA782 /* Debug */ = { 383 | isa = XCBuildConfiguration; 384 | buildSettings = { 385 | ALWAYS_SEARCH_USER_PATHS = NO; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_COMMA = YES; 393 | CLANG_WARN_CONSTANT_CONVERSION = YES; 394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 395 | CLANG_WARN_EMPTY_BODY = YES; 396 | CLANG_WARN_ENUM_CONVERSION = YES; 397 | CLANG_WARN_INFINITE_RECURSION = YES; 398 | CLANG_WARN_INT_CONVERSION = YES; 399 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 400 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 402 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 403 | CLANG_WARN_STRICT_PROTOTYPES = YES; 404 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 405 | CLANG_WARN_UNREACHABLE_CODE = YES; 406 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 407 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 408 | COPY_PHASE_STRIP = NO; 409 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 410 | ENABLE_STRICT_OBJC_MSGSEND = YES; 411 | ENABLE_TESTABILITY = YES; 412 | GCC_C_LANGUAGE_STANDARD = gnu99; 413 | GCC_DYNAMIC_NO_PIC = NO; 414 | GCC_NO_COMMON_BLOCKS = YES; 415 | GCC_OPTIMIZATION_LEVEL = 0; 416 | GCC_PREPROCESSOR_DEFINITIONS = ( 417 | "DEBUG=1", 418 | "$(inherited)", 419 | ); 420 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 421 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 422 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 423 | GCC_WARN_UNDECLARED_SELECTOR = YES; 424 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 425 | GCC_WARN_UNUSED_FUNCTION = YES; 426 | GCC_WARN_UNUSED_VARIABLE = YES; 427 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 428 | MTL_ENABLE_DEBUG_INFO = YES; 429 | ONLY_ACTIVE_ARCH = YES; 430 | SDKROOT = iphoneos; 431 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 432 | SWIFT_VERSION = 4.2; 433 | }; 434 | name = Debug; 435 | }; 436 | 607FACEE1AFB9204008FA782 /* Release */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ALWAYS_SEARCH_USER_PATHS = NO; 440 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 441 | CLANG_CXX_LIBRARY = "libc++"; 442 | CLANG_ENABLE_MODULES = YES; 443 | CLANG_ENABLE_OBJC_ARC = YES; 444 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 445 | CLANG_WARN_BOOL_CONVERSION = YES; 446 | CLANG_WARN_COMMA = YES; 447 | CLANG_WARN_CONSTANT_CONVERSION = YES; 448 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 449 | CLANG_WARN_EMPTY_BODY = YES; 450 | CLANG_WARN_ENUM_CONVERSION = YES; 451 | CLANG_WARN_INFINITE_RECURSION = YES; 452 | CLANG_WARN_INT_CONVERSION = YES; 453 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 454 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 455 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 456 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 457 | CLANG_WARN_STRICT_PROTOTYPES = YES; 458 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 459 | CLANG_WARN_UNREACHABLE_CODE = YES; 460 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 461 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 462 | COPY_PHASE_STRIP = NO; 463 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 464 | ENABLE_NS_ASSERTIONS = NO; 465 | ENABLE_STRICT_OBJC_MSGSEND = YES; 466 | GCC_C_LANGUAGE_STANDARD = gnu99; 467 | GCC_NO_COMMON_BLOCKS = YES; 468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 472 | GCC_WARN_UNUSED_FUNCTION = YES; 473 | GCC_WARN_UNUSED_VARIABLE = YES; 474 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 475 | MTL_ENABLE_DEBUG_INFO = NO; 476 | SDKROOT = iphoneos; 477 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 478 | SWIFT_VERSION = 4.2; 479 | VALIDATE_PRODUCT = YES; 480 | }; 481 | name = Release; 482 | }; 483 | 607FACF01AFB9204008FA782 /* Debug */ = { 484 | isa = XCBuildConfiguration; 485 | baseConfigurationReference = DD8F671195389A863B8A3824 /* Pods-BaseExtension_Example.debug.xcconfig */; 486 | buildSettings = { 487 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 488 | INFOPLIST_FILE = BaseExtension/Info.plist; 489 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 490 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 491 | MODULE_NAME = ExampleApp; 492 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 495 | SWIFT_VERSION = 4.2; 496 | }; 497 | name = Debug; 498 | }; 499 | 607FACF11AFB9204008FA782 /* Release */ = { 500 | isa = XCBuildConfiguration; 501 | baseConfigurationReference = A58ADA53A1A1E270C57C3980 /* Pods-BaseExtension_Example.release.xcconfig */; 502 | buildSettings = { 503 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 504 | INFOPLIST_FILE = BaseExtension/Info.plist; 505 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 507 | MODULE_NAME = ExampleApp; 508 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 511 | SWIFT_VERSION = 4.2; 512 | }; 513 | name = Release; 514 | }; 515 | 607FACF31AFB9204008FA782 /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | baseConfigurationReference = ADB59BE94260CB50B4653D65 /* Pods-BaseExtension_Tests.debug.xcconfig */; 518 | buildSettings = { 519 | FRAMEWORK_SEARCH_PATHS = ( 520 | "$(SDKROOT)/Developer/Library/Frameworks", 521 | "$(inherited)", 522 | ); 523 | GCC_PREPROCESSOR_DEFINITIONS = ( 524 | "DEBUG=1", 525 | "$(inherited)", 526 | ); 527 | INFOPLIST_FILE = Tests/Info.plist; 528 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 529 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 532 | SWIFT_VERSION = 4.2; 533 | }; 534 | name = Debug; 535 | }; 536 | 607FACF41AFB9204008FA782 /* Release */ = { 537 | isa = XCBuildConfiguration; 538 | baseConfigurationReference = 9B8E8D021451C97ECC04B17A /* Pods-BaseExtension_Tests.release.xcconfig */; 539 | buildSettings = { 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(SDKROOT)/Developer/Library/Frameworks", 542 | "$(inherited)", 543 | ); 544 | INFOPLIST_FILE = Tests/Info.plist; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 546 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 547 | PRODUCT_NAME = "$(TARGET_NAME)"; 548 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 549 | SWIFT_VERSION = 4.2; 550 | }; 551 | name = Release; 552 | }; 553 | /* End XCBuildConfiguration section */ 554 | 555 | /* Begin XCConfigurationList section */ 556 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "BaseExtension" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 607FACED1AFB9204008FA782 /* Debug */, 560 | 607FACEE1AFB9204008FA782 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "BaseExtension_Example" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 607FACF01AFB9204008FA782 /* Debug */, 569 | 607FACF11AFB9204008FA782 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "BaseExtension_Tests" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACF31AFB9204008FA782 /* Debug */, 578 | 607FACF41AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | /* End XCConfigurationList section */ 584 | }; 585 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 586 | } 587 | -------------------------------------------------------------------------------- /Example/BaseExtension.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/BaseExtension.xcodeproj/xcshareddata/xcschemes/BaseExtension-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/BaseExtension.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/BaseExtension.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/BaseExtension/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 10/09/2017. 6 | // Copyright (c) 2017 wade.hawk. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/BaseExtension/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/BaseExtension/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Example/BaseExtension/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/BaseExtension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/BaseExtension/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // BaseExtension 4 | // 5 | // Created by wade.hawk on 10/09/2017. 6 | // Copyright (c) 2017 wade.hawk. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import BaseExtension 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | // Do any additional setup after loading the view, typically from a nib. 17 | let test = Date() 18 | print(test.dateString()) 19 | } 20 | 21 | override func didReceiveMemoryWarning() { 22 | super.didReceiveMemoryWarning() 23 | // Dispose of any resources that can be recreated. 24 | 25 | } 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'BaseExtension_Example' do 4 | pod 'BaseExtension', :path => '../' 5 | pod 'RxSwift' 6 | pod 'RxCocoa' 7 | target 'BaseExtension_Tests' do 8 | inherit! :search_paths 9 | end 10 | end 11 | 12 | post_install do |installer| 13 | installer.pods_project.targets.each do |target| 14 | target.build_configurations.each do |config| 15 | config.build_settings['SWIFT_VERSION'] = '4.0' 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BaseExtension (1.2.5): 3 | - RxCocoa 4 | - RxDataSources 5 | - RxSwift 6 | - XCGLogger 7 | - Differentiator (3.1.0) 8 | - ObjcExceptionBridging (1.0.1): 9 | - ObjcExceptionBridging/ObjcExceptionBridging (= 1.0.1) 10 | - ObjcExceptionBridging/ObjcExceptionBridging (1.0.1) 11 | - RxAtomic (4.4.0) 12 | - RxCocoa (4.4.0): 13 | - RxSwift (~> 4.0) 14 | - RxDataSources (3.1.0): 15 | - Differentiator (~> 3.0) 16 | - RxCocoa (~> 4.0) 17 | - RxSwift (~> 4.0) 18 | - RxSwift (4.4.0): 19 | - RxAtomic (~> 4.4) 20 | - XCGLogger (6.1.0): 21 | - XCGLogger/Core (= 6.1.0) 22 | - XCGLogger/Core (6.1.0): 23 | - ObjcExceptionBridging 24 | 25 | DEPENDENCIES: 26 | - BaseExtension (from `../`) 27 | - RxCocoa 28 | - RxSwift 29 | 30 | SPEC REPOS: 31 | https://github.com/cocoapods/specs.git: 32 | - Differentiator 33 | - ObjcExceptionBridging 34 | - RxAtomic 35 | - RxCocoa 36 | - RxDataSources 37 | - RxSwift 38 | - XCGLogger 39 | 40 | EXTERNAL SOURCES: 41 | BaseExtension: 42 | :path: "../" 43 | 44 | SPEC CHECKSUMS: 45 | BaseExtension: 0d00b8da5b47fa8d75deeb0f1824b5d9e66bc094 46 | Differentiator: be49ca3408f0ecfc761e4c7763d20c62be01b9ad 47 | ObjcExceptionBridging: c30e00eb3700467e695faeea30e26e18bd445001 48 | RxAtomic: eacf60db868c96bfd63320e28619fe29c179656f 49 | RxCocoa: df63ebf7b9a70d6b4eeea407ed5dd4efc8979749 50 | RxDataSources: a843bad90c29817f5923ec8163f4af2de084ceb3 51 | RxSwift: 5976ecd04fc2fefd648827c23de5e11157faa973 52 | XCGLogger: 7f7f43f15dfe3a305fa1342b7dc29af656289abd 53 | 54 | PODFILE CHECKSUM: a956841d634f7a6c4470641762e8131167917f8b 55 | 56 | COCOAPODS: 1.5.3 57 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | // https://github.com/Quick/Quick 2 | // 3 | //import Quick 4 | //import Nimble 5 | //import BaseExtension 6 | // 7 | //class TableOfContentsSpec: QuickSpec { 8 | // override func spec() { 9 | // describe("these will fail") { 10 | // 11 | // it("can do maths") { 12 | // expect(1) == 2 13 | // } 14 | // 15 | // it("can read") { 16 | // expect("number") == "string" 17 | // } 18 | // 19 | // it("will eventually fail") { 20 | // expect("time").toEventually( equal("done") ) 21 | // } 22 | // 23 | // context("these will pass") { 24 | // 25 | // it("can do maths") { 26 | // expect(23) == 23 27 | // } 28 | // 29 | // it("can read") { 30 | // expect("🐮") == "🐮" 31 | // } 32 | // 33 | // it("will eventually pass") { 34 | // var time = "passing" 35 | // 36 | // DispatchQueue.main.async { 37 | // time = "done" 38 | // } 39 | // 40 | // waitUntil { done in 41 | // Thread.sleep(forTimeInterval: 0.5) 42 | // expect(time) == "done" 43 | // 44 | // done() 45 | // } 46 | // } 47 | // } 48 | // } 49 | // } 50 | //} 51 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 wade.hawk 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BaseExtension 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/BaseExtension.svg?style=flat)](http://cocoapods.org/pods/BaseExtension) 4 | [![License](https://img.shields.io/cocoapods/l/BaseExtension.svg?style=flat)](http://cocoapods.org/pods/BaseExtension) 5 | [![Platform](https://img.shields.io/cocoapods/p/BaseExtension.svg?style=flat)](http://cocoapods.org/pods/BaseExtension) 6 | ![Swift](https://img.shields.io/badge/%20in-swift%204.0-orange.svg) 7 | 8 | ## Example 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Requirements 13 | 14 | ## Installation 15 | 16 | BaseExtension is available through [CocoaPods](http://cocoapods.org). To install 17 | it, simply add the following line to your Podfile: 18 | 19 | ```ruby 20 | pod 'BaseExtension' 21 | ``` 22 | 23 | ## Author 24 | 25 | wade.hawk, wade.hawk@kakaocorp.com 26 | 27 | ## License 28 | 29 | BaseExtension is available under the MIT license. See the LICENSE file for more info. 30 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------