RxSwift/RxCocoa/iOS/Proxies/RxCollectionViewDelegatePro...

42 lines
904 B
Swift

//
// RxCollectionViewDelegateProxy.swift
// RxCocoa
//
// Created by Krunoslav Zaher on 6/29/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
#if os(iOS) || os(tvOS)
import Foundation
import UIKit
#if !RX_NO_MODULE
import RxSwift
#endif
/**
For more information take a look at `DelegateProxyType`.
*/
public class RxCollectionViewDelegateProxy
: RxScrollViewDelegateProxy
, UICollectionViewDelegate
, UICollectionViewDelegateFlowLayout {
/**
Typed parent object.
*/
public weak private(set) var collectionView: UICollectionView?
/**
Initializes `RxCollectionViewDelegateProxy`
- parameter parentObject: Parent object for delegate proxy.
*/
public required init(parentObject: AnyObject) {
self.collectionView = (parentObject as! UICollectionView)
super.init(parentObject: parentObject)
}
}
#endif