VMF_EmbeddedTableController
class VMF_EmbeddedTableController : VMF_BaseViewController, VMF_EmbeddedTableControllerProtocol
extension VMF_EmbeddedTableController: UITableViewDataSource
extension VMF_EmbeddedTableController: UITableViewDelegate
This presents a simple view controller, with a table of meetings.
-
The storyboard ID, for instantiating this class
Declaration
Swift
static let storyboardID: String
-
The controller that “owns” this instance.
Declaration
Swift
weak var myController: VMF_MasterTableControllerProtocol?
-
If true (default), then we will not set up a refresh.
Declaration
Swift
var noRefresh: Bool { get set }
-
The time index for this table.
Declaration
Swift
var timeIndex: Int
-
The day index for this table.
Declaration
Swift
var dayIndex: Int
-
This handles the meeting collection for this.
Declaration
Swift
var meetings: [MeetingInstance] { get set }
-
This applies any filters to the list.
Declaration
Swift
var filteredMeetings: [MeetingInstance] { get }
-
The table that shows the meetings for the current time.
Declaration
Swift
@IBOutlet weak var valueTable: UITableView?
-
Called when the view hierarchy has loaded.
Declaration
Swift
override func viewDidLoad()
-
Called just before the view appears
Declaration
Swift
override func viewWillAppear(_ inIsAnimated: Bool)
Parameters
inIsAnimated
True, if the appearance is animated.
-
Called just after the view appeared
Declaration
Swift
override func viewDidAppear(_ inIsAnimated: Bool)
Parameters
inIsAnimated
True, if the appearance is animated.
-
Called just before the view segues to another one.
Declaration
Swift
override func prepare(for inSegue: UIStoryboardSegue, sender inData: Any?)
Parameters
for
The segue instance.
sender
Any associated data.
-
This checks to see if we need to open a linked meeting.
Declaration
Swift
func checkForUniversalLink()
-
Called when attendance changes for a meeting.
Declaration
Swift
func attendanceChanged(_ inMeeting: MeetingInstance)
Parameters
inMeeting
The meeting instance.
-
Called to show a meeting details page.
Declaration
Swift
func selectMeeting(_ inMeeting: MeetingInstance)
Parameters
inMeeting
The meeting instance.
-
The refresh has been triggered.
Declaration
Swift
@objc func refreshPulled(_: Any)
-
Declaration
Swift
func tableView(_: UITableView, numberOfRowsInSection: Int) -> Int
Parameters
numberOfRowsInSection
The 0-based section index.
Return Value
The number of meetings to display.
-
Declaration
Swift
func tableView(_ inTableView: UITableView, cellForRowAt inIndexPath: IndexPath) -> UITableViewCell
Parameters
inTableView
The table view
numberOfRowsInSection
The index path of the cell we want.
-
Called just before the selection. We use this to trigger a haptic, and bring in the meeting.
Declaration
Swift
func tableView(_: UITableView, willSelectRowAt inIndexPath: IndexPath) -> IndexPath?
Parameters
willSelectRowAt
The index path of the row
Return Value
The index path (always)