VMF_BaseViewController
class VMF_BaseViewController : UIViewController
The base class for all our view controllers.
-
This will provide haptic/audio feedback, in general.
Declaration
Swift
var feedbackGenerator: UIImpactFeedbackGenerator?
-
This will provide haptic/audio feedback, in general.
Declaration
Swift
var notificationGenerator: UINotificationFeedbackGenerator?
-
This will provide subtle haptic/audio feedback for selections.
Declaration
Swift
var selectionGenerator: UISelectionFeedbackGenerator?
-
This converts a 1 == Sun format into a localized weekday index (1 … 7)
Declaration
Swift
func mapWeekday(_ inWeekdayIndex: Int) -> Int
Return Value
The 1-based weekday index for the local system.
-
This converts the selected localized weekday into the 1 == Sun format needed for the meeting data.
Declaration
Swift
func unMapWeekday(_ inWeekdayIndex: Int) -> Int
Return Value
The 1-based weekday index for 1 = Sunday
-
This returns a string, with the localized timezone name for the meeting. It is not set, if the timezone is ours.
Declaration
Swift
func getMeetingTimeZone(_ inMeeting: MeetingInstance) -> String
Parameters
inMeeting
The meeting instance.
Return Value
The timezone string.
-
Called when the view hierarchy is complete. We use this to prep our haptics.
Declaration
Swift
override func viewDidLoad()
-
Called after the view hierarchy layout is complete. We use this to enforce localized accessibility, and create the background gradient.
Declaration
Swift
override func viewDidLayoutSubviews()
-
Called just before the view is to appear.
Declaration
Swift
override func viewWillAppear(_ inIsAnimated: Bool)
Parameters
inIsAnimated
True, if the appearance is animated.
-
This travels around the whole view hierarchy, and resolves accessibility tokens.
Declaration
Swift
func accessorizer()
-
Triggers a subtle selection haptic.
Declaration
Swift
func selectionHaptic()
-
Triggers a “success” haptic.
Declaration
Swift
func successHaptic()
-
Triggers a “soft impact” haptic.
Declaration
Swift
func softImpactHaptic()
-
Triggers a “hard impact” haptic.
Declaration
Swift
func hardImpactHaptic()