PresetsTableViewManager
final class PresetsTableViewManager : NSObject
extension PresetsTableViewManager: UITableViewDataSource
extension PresetsTableViewManager: UITableViewDelegate
extension PresetsTableViewManager: UISearchBarDelegate
Data source and delegate for the Patches UITableView. This is one of the most complicated managers and it should be broken up into smaller components. There are three four areas of functionality:
- table view drawing and selecting
- row visibility editing
- searching
- row swiping
-
init(viewController:activePatchManager: selectedSoundFontManager: soundFonts: favorites: keyboard: infoBar: ) Construct a new patches table view manager.
Declaration
Swift
init(viewController: PresetsTableViewController, activePatchManager: ActivePatchManager, selectedSoundFontManager: SelectedSoundFontManager, soundFonts: SoundFonts, favorites: Favorites, keyboard: Keyboard?, infoBar: InfoBar)Parameters
viewControllerthe view controller that holds this manager
activePatchManagerthe active preset manager
selectedSoundFontManagerthe selected sound font manager
soundFontsthe sound fonts collection manager
favoritesthe favorites collection manager
keyboardthe optional keyboard view manager
infoBarthe info bar manager
-
Undocumented
Declaration
Swift
func numberOfSections(in tableView: UITableView) -> Int -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell -
Undocumented
Declaration
Swift
func sectionIndexTitles(for tableView: UITableView) -> [String]? -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String?
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) -
Notification from searchBar that the text value changed. NOTE: this is not invoked when programmatically set.
Declaration
Swift
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String)Parameters
searchBarthe UISearchBar where the change took place
searchTextthe current search term
-
Undocumented
Declaration
Swift
func performChanges(soundFont: LegacySoundFont) -> [IndexPath] -
Undocumented
Declaration
Swift
public func hideSearchBar(animated: Bool) -
Undocumented
Declaration
Swift
func selectActive(animated: Bool)
View on GitHub
PresetsTableViewManager Class Reference