VMF_DayTimeSelectionViewController
@MainActor
class VMF_DayTimeSelectionViewController : UIViewController, UIPopoverPresentationControllerDelegate
extension VMF_DayTimeSelectionViewController: UITextFieldDelegate
extension VMF_DayTimeSelectionViewController: UITableViewDataSource, UITableViewDelegate
Browses the available start times for a weekday and searches meeting names. Search filters the main table live; dismissing the popover keeps those results visible.
-
Preferred popover size while browsing weekday start times.
Declaration
Swift
@MainActor static let browsingSize: CGSize -
Preferred popover height while entering a meeting-name query.
Declaration
Swift
@MainActor private static let searchHeight: CGFloat -
Opaque light/dark background shared with the popover outline.
Declaration
Swift
@MainActor static let backgroundColor: UIColor -
Owns the meeting data and receives time selections and live search changes.
Declaration
Swift
@MainActor weak var mainController: VMF_MainViewController? -
Declaration
Swift
@MainActor private let backgroundDimmingView: UIView -
Declaration
Swift
@MainActor private let weekdaySelector: VMF_WeekdaySegmentedControl -
Declaration
Swift
@MainActor private let weekdayLabel: UILabel -
Declaration
Swift
@MainActor private let timeTableView: UITableView -
Declaration
Swift
@MainActor private let emptyLabel: UILabel -
Declaration
Swift
@MainActor private let nowButton: UIButton -
Declaration
Swift
@MainActor private let searchButton: UIButton -
Declaration
Swift
@MainActor private let searchTextField: UITextField -
Declaration
Swift
@MainActor private let searchContainer: UIScrollView -
Declaration
Swift
@MainActor private let showResultsButton: UIButton -
Declaration
Swift
@MainActor private var isShowingSearch: Bool -
Declaration
Swift
@MainActor private var selectedDayIndex: Int -
Declaration
Swift
@MainActor private var timeSlots: [Int] -
Declaration
Swift
@MainActor private var timeTitles: [Int : String] -
Declaration
Swift
@MainActor private var timeCounts: [Int : Int] -
Declaration
Swift
@MainActor private var selection: (dayIndex: Int, time: Int)? -
Declaration
Swift
@MainActor private var didScrollToSelection: Bool -
Builds the picker and search controls from the main screen’s current selection.
Declaration
Swift
@MainActor override func viewDidLoad() -
Mutes the presenting screen while UIKit keeps the popover above it.
Declaration
Swift
@MainActor override func viewWillAppear(_ inIsAnimated: Bool) -
Focuses the retained search field when the popover opens in search mode.
Declaration
Swift
@MainActor override func viewDidAppear(_ inIsAnimated: Bool) -
Releases the search keyboard and confirms dismissal with a sharp haptic while the scene is active.
Declaration
Swift
@MainActor override func viewWillDisappear(_ inIsAnimated: Bool) -
Clears the dimming layer after every dismissal path.
Declaration
Swift
@MainActor override func viewDidDisappear(_ inIsAnimated: Bool) -
Declaration
Swift
@MainActor private func setBackgroundDimmingVisible(_ inIsVisible: Bool) -
Fits visual weekday titles and scrolls to the selected time. Spoken names stay unabbreviated.
Declaration
Swift
@MainActor override func viewDidLayoutSubviews() -
Keeps the larger font legible on narrow screens in every supported locale.
Declaration
Swift
@MainActor private func updateWeekdayTitles() -
Uses the same sorted, distinct start times as the main meeting pages.
Declaration
Swift
@MainActor private func reloadTimes() -
Declaration
Swift
@objc @MainActor private func selectWeekday() -
Resets the day and time to the latest available start at or before now, keeping the picker open.
Declaration
Swift
@objc @MainActor private func selectPreviousTimeSlot() -
Declaration
Swift
@objc @MainActor private func selectNow() -
Declaration
Swift
@objc @MainActor private func selectSearch() -
Switches the popover’s controls without dismissing it or clearing the query.
Declaration
Swift
@MainActor private func setSearchMode(_ inIsSearching: Bool) -
Declaration
Swift
@objc @MainActor private func searchTextChanged() -
Declaration
Swift
@objc @MainActor private func showSearchResults() -
Preserves popover presentation in compact layouts.
Declaration
Swift
@MainActor func adaptivePresentationStyle(for inController: UIPresentationController) -> UIModalPresentationStyle -
Preserves the popover when the presentation environment’s traits change.
Declaration
Swift
@MainActor func adaptivePresentationStyle(for inController: UIPresentationController, traitCollection inTraitCollection: UITraitCollection) -> UIModalPresentationStyle -
Dismisses the picker for the standard accessibility escape gesture.
Declaration
Swift
@MainActor override func accessibilityPerformEscape() -> Bool
-
Keeps the live query results and dismisses the popover when Search is pressed.
Declaration
Swift
@MainActor func textFieldShouldReturn(_ inTextField: UITextField) -> Bool
-
Returns the number of distinct start times for the selected weekday.
Declaration
Swift
@MainActor func tableView(_ inTableView: UITableView, numberOfRowsInSection inSection: Int) -> Int -
Presents a local start time, meeting count, and accessible selection state.
Declaration
Swift
@MainActor func tableView(_ inTableView: UITableView, cellForRowAt inIndexPath: IndexPath) -> UITableViewCell -
Opens the chosen weekday/start time in the main screen and dismisses the picker.
Declaration
Swift
@MainActor func tableView(_ inTableView: UITableView, didSelectRowAt inIndexPath: IndexPath)
View on GitHub