MapstedMenu
public class MapstedMenu
This class is a Menu class which is responsible for building the customized tab bar for the App Tempalte
-
Declaration
Swift
public static func builder() -> MapstedMenu
-
This method can be used to add any of the prebuild menu types as a tab bar item.
Declaration
Swift
public func addItem(menuType: MapstedMenuItemType, icon: UIImage? = nil, name: String? = nil) -> MapstedMenu
Parameters
menuType
This parameter is of type
MapstedMenuItemType
. It is an enum which supports in-build menu item types except for Custom.icon
This paramter takes a customized image in case you want to provide your own image as a tab bar image for the given pre-build tab
name
This paramter takes a customized name in case you want to provide your own name as a tab bar title for the given pre-build tab
Return Value
An object of MapstedMenu
-
This method can be used to add any of the custom view with icon and image to the tab bar item.
Declaration
Swift
public func addCustomItem(icon: UIImage, name: String, providerView: UIViewController) -> MapstedMenu
Parameters
icon
This paramter takes a tab bar icon for the custom tab bar item.
name
This paramter takes a tab bar title for the custom tab bar item.
providerView
This paramter takes a UIViewController object to show in the tab bar.
Return Value
Returns: An object of MapstedMenu
-
Declaration
Swift
public func build() -> MapstedMenu