SoundFontsViewController

public final class SoundFontsViewController : UIViewController
extension SoundFontsViewController: UIDocumentPickerDelegate
extension SoundFontsViewController: ControllerConfiguration
extension SoundFontsViewController: FontsViewManager
extension SoundFontsViewController: FontEditorActionGenerator
extension SoundFontsViewController: SegueHandler
extension SoundFontsViewController: FontEditorDelegate

View controller for the SoundFont / Patches UITableView combination. Much of the UITableView management is handled by specific *Manager classes. This controller mainly serves to manage the active Patch state, plus the switching between normal Patch table view display and Patch search results display. Apart from the adopted protocols, there is no API for this class.

  • Declaration

    Swift

    public let swipeLeft: UISwipeGestureRecognizer
  • Declaration

    Swift

    public let swipeRight: UISwipeGestureRecognizer
  • Undocumented

    Declaration

    Swift

    public override func viewDidLoad()
  • Undocumented

    Declaration

    Swift

    @objc
    func moveDivider(_ gesture: UIPanGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    public override func viewWillAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    public override func viewDidAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator)
  • Undocumented

    Declaration

    Swift

    public func documentPicker(
      _ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]
    )

ControllerConfiguration Protocol

PatchesViewManager Protocol

FontEditorActionGenerator Protocol

  • Create right-swipe action to edit a SoundFont.

    Declaration

    Swift

    public func createEditSwipeAction(
      at: IndexPath, cell: TableCell,
      soundFont: LegacySoundFont
    ) -> UIContextualAction

    Parameters

    at

    the FontCell that will hold the swipe action

    with

    the SoundFont that will be edited by the swipe action

    Return Value

    new UIContextualAction that will perform the edit

  • Create left-swipe action to delete a SoundFont. When activated, the action will display a prompt to the user asking for confirmation about the SoundFont deletion.

    Declaration

    Swift

    public func createDeleteSwipeAction(
      at: IndexPath, cell: TableCell,
      soundFont: LegacySoundFont
    ) -> UIContextualAction

    Parameters

    at

    the FontCell that will hold the swipe action

    with

    the SoundFont that will be edited by the swipe action

    indexPath

    the IndexPath of the FontCell that would be removed by the action

    Return Value

    new UIContextualAction that will perform the edit

  • Segues that we support.

    See more

    Declaration

    Swift

    public enum SegueIdentifier : String
  • Undocumented

    Declaration

    Swift

    public override func prepare(for segue: UIStoryboardSegue, sender: Any?)

FontEditorDelegate Protocol