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) -> UIContextualActionParameters
cellthe table cell to attach to
soundFontthe 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) -> UIContextualActionParameters
viewthe table cell to attach to
soundFontthe SoundFont instance that will be edited
indexPathlocation of the cell to be deleted
Return Value
new swipe action
View on GitHub
FontEditorActionGenerator Protocol Reference