NepaliCalendarSystemToggleViewController

fun NepaliCalendarSystemToggleViewController(initialCalendarSystem: CalendarSystem, language: NepaliDatePickerLang, onHeightChange: (Float) -> Unit, onCalendarSystemChange: (CalendarSystem) -> Unit): UIViewController(source)

Hosts the standalone B.S. / A.D. switch for a Swift caller.

The pickers draw this themselves when options.showCalendarSystemToggle is on, so reach for the factory only when the switch belongs in your own chrome (a navigation bar, a settings row) and you drive the picker's calendar from there.

Parameters

initialCalendarSystem

the calendar shown as selected when the switch first appears.

language

language the segment labels and their accessibility descriptions are written in.

onHeightChange

receives the content height in points, so the caller can size its frame.

onCalendarSystemChange

invoked with the tapped calendar. Fires only on an actual change.