@@ -80,11 +80,11 @@ public class TableDirector: NSObject, UITableViewDelegate, UITableViewDataSource
8080 self . tableView? . rowHeight = h
8181 self . tableView? . estimatedRowHeight = h
8282 case . autoLayout( let estimate) :
83- self . tableView? . rowHeight = UITableView . automaticDimension
83+ self . tableView? . rowHeight = UITableViewAutomaticDimension
8484 self . tableView? . estimatedRowHeight = estimate
8585 case . default:
86- self . tableView? . rowHeight = UITableView . automaticDimension
87- self . tableView? . estimatedRowHeight = UITableView . automaticDimension
86+ self . tableView? . rowHeight = UITableViewAutomaticDimension
87+ self . tableView? . estimatedRowHeight = UITableViewAutomaticDimension
8888 }
8989 }
9090 }
@@ -428,15 +428,15 @@ public extension TableDirector {
428428 public func tableView( _ tableView: UITableView , heightForHeaderInSection section: Int ) -> CGFloat {
429429 let item = ( self . sections [ section] . headerView as? AbstractTableHeaderFooterItem )
430430 guard let height = item? . dispatch ( . height, type: . header, view: nil , section: section, table: tableView) as? CGFloat else {
431- return ( self . headerHeight ?? UITableView . automaticDimension )
431+ return ( self . headerHeight ?? UITableViewAutomaticDimension )
432432 }
433433 return height
434434 }
435435
436436 public func tableView( _ tableView: UITableView , heightForFooterInSection section: Int ) -> CGFloat {
437437 let item = ( self . sections [ section] . footerView as? AbstractTableHeaderFooterItem )
438438 guard let height = item? . dispatch ( . height, type: . footer, view: nil , section: section, table: tableView) as? CGFloat else {
439- return ( self . footerHeight ?? UITableView . automaticDimension )
439+ return ( self . footerHeight ?? UITableViewAutomaticDimension )
440440 }
441441 return height
442442 }
@@ -445,7 +445,7 @@ public extension TableDirector {
445445 let item = ( self . sections [ section] . headerView as? AbstractTableHeaderFooterItem )
446446 guard let estHeight = item? . dispatch ( . estimatedHeight, type: . header, view: nil , section: section, table: tableView) as? CGFloat else {
447447 guard let height = item? . dispatch ( . height, type: . header, view: nil , section: section, table: tableView) as? CGFloat else {
448- return ( self . headerHeight ?? UITableView . automaticDimension )
448+ return ( self . headerHeight ?? UITableViewAutomaticDimension )
449449 }
450450 return height
451451 }
@@ -456,7 +456,7 @@ public extension TableDirector {
456456 let item = ( self . sections [ section] . footerView as? AbstractTableHeaderFooterItem )
457457 guard let height = item? . dispatch ( . estimatedHeight, type: . footer, view: nil , section: section, table: tableView) as? CGFloat else {
458458 guard let height = item? . dispatch ( . height, type: . footer, view: nil , section: section, table: tableView) as? CGFloat else {
459- return ( self . footerHeight ?? UITableView . automaticDimension )
459+ return ( self . footerHeight ?? UITableViewAutomaticDimension )
460460 }
461461 return height
462462 }
@@ -491,7 +491,7 @@ public extension TableDirector {
491491
492492 // Inserting or Deleting Table Rows
493493
494- public func tableView( _ tableView: UITableView , commit editingStyle: UITableViewCell . EditingStyle , forRowAt indexPath: IndexPath ) {
494+ public func tableView( _ tableView: UITableView , commit editingStyle: UITableViewCellEditingStyle , forRowAt indexPath: IndexPath ) {
495495 let ( model, adapter) = self . context ( forItemAt: indexPath)
496496 adapter. dispatch ( . commitEdit, context: InternalContext ( model, indexPath, nil , tableView, param1: editingStyle) )
497497 }
@@ -521,17 +521,17 @@ public extension TableDirector {
521521 switch self . rowHeight {
522522 case . default:
523523 let ( model, adapter) = self . context ( forItemAt: indexPath)
524- return ( adapter. dispatch ( . rowHeight, context: InternalContext ( model, indexPath, nil , tableView) ) as? CGFloat ) ?? UITableView . automaticDimension
524+ return ( adapter. dispatch ( . rowHeight, context: InternalContext ( model, indexPath, nil , tableView) ) as? CGFloat ) ?? UITableViewAutomaticDimension
525525 case . autoLayout( _) :
526- return UITableView . automaticDimension
526+ return UITableViewAutomaticDimension
527527 default :
528528 return self . tableView!. rowHeight
529529 }
530530 }
531531
532532 public func tableView( _ tableView: UITableView , estimatedHeightForRowAt indexPath: IndexPath ) -> CGFloat {
533533 let ( model, adapter) = self . context ( forItemAt: indexPath)
534- return ( ( adapter. dispatch ( . rowHeightEstimated, context: InternalContext ( model, indexPath, nil , tableView) ) as? CGFloat ) ?? UITableView . automaticDimension )
534+ return ( ( adapter. dispatch ( . rowHeightEstimated, context: InternalContext ( model, indexPath, nil , tableView) ) as? CGFloat ) ?? UITableViewAutomaticDimension )
535535 }
536536
537537 public func tableView( _ tableView: UITableView , indentationLevelForRowAt indexPath: IndexPath ) -> Int {
@@ -597,9 +597,9 @@ public extension TableDirector {
597597 adapter. dispatch ( . didEndEdit, context: InternalContext ( model, indexPath!, nil , tableView) )
598598 }
599599
600- public func tableView( _ tableView: UITableView , editingStyleForRowAt indexPath: IndexPath ) -> UITableViewCell . EditingStyle {
600+ public func tableView( _ tableView: UITableView , editingStyleForRowAt indexPath: IndexPath ) -> UITableViewCellEditingStyle {
601601 let ( model, adapter) = self . context ( forItemAt: indexPath)
602- return ( ( adapter. dispatch ( . editStyle, context: InternalContext ( model, indexPath, nil , tableView) ) as? UITableViewCell . EditingStyle ) ?? . none)
602+ return ( ( adapter. dispatch ( . editStyle, context: InternalContext ( model, indexPath, nil , tableView) ) as? UITableViewCellEditingStyle ) ?? . none)
603603 }
604604
605605 public func tableView( _ tableView: UITableView , titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath ) -> String ? {
0 commit comments