estimatedRowHeight is not optional

This commit is contained in:
Max Sokolov 2016-01-20 19:51:06 +03:00
parent ca851b6a9f
commit 9b420278a9
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ internal enum ActionHandler<I, C> {
case actionBlock((data: ActionData<I, C>) -> Void)
case actionReturnBlock((data: ActionData<I, C>) -> AnyObject?)
func invoke(data: ActionData<I, C>) -> AnyObject? {
func invoke(data: ActionData<I, C>) -> ReturnValue {
switch (self) {
case .actionBlock(let closure):
@ -129,11 +129,11 @@ public class TableRowBuilder<I, C where C: UITableViewCell> : RowBuilder {
*/
public class TableConfigurableRowBuilder<I, C: ConfigurableCell where C.Item == I, C: UITableViewCell> : TableRowBuilder<I, C> {
public init(item: I, estimatedRowHeight: CGFloat = UITableViewAutomaticDimension) {
public init(item: I, estimatedRowHeight: CGFloat) {
super.init(item: item, id: C.reusableIdentifier(), estimatedRowHeight: estimatedRowHeight)
}
public init(items: [I]? = nil, estimatedRowHeight: CGFloat = UITableViewAutomaticDimension) {
public init(items: [I]? = nil, estimatedRowHeight: CGFloat) {
super.init(items: items, id: C.reusableIdentifier(), estimatedRowHeight: estimatedRowHeight)
}

View File

@ -13,6 +13,6 @@ extension TableDirector {
public func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
invokeAction(.custom(""), cell: nil, indexPath: nil)
//invokeAction(.custom(""), cell: nil, indexPath: nil)
}
}