TabBar


super: UITabBarController (on iOS)

A container window that manages a radio-style selection interface where one item is selected at a time. The selection determines which child window to display.

Events

  • Load() This event is called when the object becames available in the current runtime system.

  • WillShow() Use this event to be notified when navigation is about to be added to a view hierarchy.

  • DidShow() Use this event to be notified when navigation was added to a view hierarchy.

  • WillHide() Use this event to be notified when navigation is about to be removed from a view hierarchy.

  • DidHide() Use this event to be notified when navigation was removed from a view hierarchy.

  • Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).

Properties

  • var bounds: Rect The bounds rectangle, which describes the view’s location and size in its own coordinate system.

  • var frame: Rect The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.

  • var statusBarVisibility: StatusBarVisibility A value indicating whether the status bar should be visible.

  • var statusBarStyle: StatusBarStyle The style of the status bar.

  • var tabBarTranslucent: Bool Description not yet ready.

  • var windows: List Array of windows currently managed by the TabBar.

  • var selectedWindow: Window or NavigationBar Returns the currently selected Window or Navigation.

  • var selectedIndex: Int The index of the Window associated with the currently selected tab item.

  • var barTintColor: Color The tint color to apply to the bar.

  • var tintColor: Color The tint color to apply to the selected item.

  • var unselectedItemTintColor: Color The tint color to apply to unselected tabs.

  • var objectName: String The name of the object.

Methods

  • func open(completion: Closure = null) Open window in currently displayed window or navigation using the destination object default behaviour.

  • func openIn(window: Window or NavigationBar, completion: Closure = null)

    TargetWindow.openIn(ContainerWindow);
    Open callee object (TargetWindow) inside parameter object (ContainerWindow) using its default behaviour. Note that TargetWindow and/or ContainerWindow can be a Window or a Navigation.
  • func openWindow(window: Window or NavigationBar, completion: Closure = null) If the Window is already contained in the TabBar window list, the TabBar set it as the selected Window. Otherwise, the TabBar add the new Window to its windows and set it as the selected Window.

  • func openModal(TransitionStyle: TransitionStyle, completion: Closure = null) Open window modally usign the specified transition style.

  • func close(animated: Bool = true) Close window if modally opened.

Enums

StatusBarVisibility

  • .Default
  • .Hidden
  • .Visible

StatusBarStyle

  • .DarkContent
  • .Default
  • .LightContent

TransitionStyle

  • .Cards
  • .CoverVertical
  • .CrossDissolve
  • .Crossfade
  • .Cube
  • .Default
  • .Explode
  • .Flip
  • .FlipHorizontal
  • .Fold
  • .NatGeo
  • .NotAnimated
  • .PartialCurl
  • .Portal
  • .Turn