NSTableView
class NSTableView : NSControl, NSUserInterfaceValidations, NSTextViewDelegate, NSDraggingSource, NSAccessibilityTable
-
Animates rows which changed between oldData and newData.
Declaration
Swift
public func animateRowChanges<T: Collection>( oldData: T, newData: T, deletionAnimation: NSTableView.AnimationOptions = [], insertionAnimation: NSTableView.AnimationOptions = [], indexPathTransform: (IndexPath) -> IndexPath = { $0 } ) where T.Element: Equatable
Parameters
oldData
Data which reflects the previous state of
NSTableView
newData
Data which reflects the current state of
NSTableView
deletionAnimation
Animation type for deletions
insertionAnimation
Animation type for insertions
indexPathTransform
Closure which transforms zero-based
IndexPath
to desiredIndexPath
-
Animates rows which changed between oldData and newData.
Declaration
Swift
public func animateRowChanges<T: Collection>( oldData: T, newData: T, isEqual: EqualityChecker<T>, deletionAnimation: NSTableView.AnimationOptions = [], insertionAnimation: NSTableView.AnimationOptions = [], indexPathTransform: (IndexPath) -> IndexPath = { $0 } )
Parameters
oldData
Data which reflects the previous state of
NSTableView
newData
Data which reflects the current state of
NSTableView
isEqual
A function comparing two elements of
T
deletionAnimation
Animation type for deletions
insertionAnimation
Animation type for insertions
indexPathTransform
Closure which transforms zero-based
IndexPath
to desiredIndexPath
-
Undocumented
Declaration
Swift
public func apply( _ diff: ExtendedDiff, deletionAnimation: NSTableView.AnimationOptions = [], insertionAnimation: NSTableView.AnimationOptions = [], indexPathTransform: (IndexPath) -> IndexPath = { $0 } )