FontEditorActionGenerator
public protocol FontEditorActionGenerator
Generates swipe actions that act on SoundFont instances.
-
Obtain a swipe action that will edit a SoundFont instance.
Declaration
Swift
func createEditSwipeAction(at: IndexPath, cell: TableCell, soundFont: LegacySoundFont) -> UIContextualAction
Parameters
cell
the table cell to attach to
soundFont
the SoundFont instance that will be edited
Return Value
new swipe action
-
Obtain a swipe action that will delete a SoundFont instance.
Declaration
Swift
func createDeleteSwipeAction(at: IndexPath, cell: TableCell, soundFont: LegacySoundFont) -> UIContextualAction
Parameters
view
the table cell to attach to
soundFont
the SoundFont instance that will be edited
indexPath
location of the cell to be deleted
Return Value
new swipe action