NUIRenderer
@objcMembers
public class NUIRenderer : NSObject
The master renderer class that provides a list of static functions for individual component rendering
-
Render
UIActivityIndicatorViewwith the defaultActivityIndicatorstyle classDeclaration
Swift
public static func renderActivityIndicator(activityIndicator: UIActivityIndicatorView)Parameters
activityIndicatorThe
UIActivityIndicatorViewbeing rendered. -
Render
UIActivityIndicatorViewwith an given style classDeclaration
Swift
public static func renderActivityIndicator(activityIndicator: UIActivityIndicatorView, withClass className: String)Parameters
activityIndicatorThe
UIActivityIndicatorViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIBarButtonItemwith the defaultBarButtonstyle classDeclaration
Swift
public static func renderBarButtonItem(item: UIBarButtonItem)Parameters
itemThe
UIBarButtonItembeing rendered. -
Render
UIBarButtonItemwith an given style classDeclaration
Swift
public static func renderBarButtonItem(item: UIBarButtonItem, withClass className: String)Parameters
itemThe
UIBarButtonItembeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIButtonwith the defaultButtonstyle classDeclaration
Swift
public static func renderButton(button: UIButton)Parameters
buttonThe
UIButtonbeing rendered. -
Render
UIButtonwith an given style classDeclaration
Swift
public static func renderButton(button: UIButton, withClass className: String)Parameters
buttonThe
UIButtonbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIControlwith the defaultControlstyle classDeclaration
Swift
public static func renderControl(control: UIControl)Parameters
controlThe
UIControlbeing rendered. -
Render
UIControlwith a given style classDeclaration
Swift
public static func renderControl(control: UIControl, withClass className: String)Parameters
controlThe
UIControlbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UILabelwith the defaultLabelstyle classDeclaration
Swift
public static func renderLabel(label: UILabel)Parameters
labelThe
UILabelbeing rendered. -
Render
UILabelwith a given style classDeclaration
Swift
public static func renderLabel(label: UILabel, withClass className: String)Parameters
labelThe
UILabelbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UILabelwith a given style class and suffixDeclaration
Swift
public static func renderLabel(label: UILabel, withClass className: String, withSuffix suffix: String)Parameters
labelThe
UILabelbeing rendered.classNameThe name of class style for rendering the component.
suffixThe suffix to the className.
-
Render
UIImageViewwith a given style classDeclaration
Swift
public static func renderImageView(imageView: UIImageView, withClass className: String)Parameters
imageViewThe
UIImageViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UINavigationBarwith the defaultNavigationBarstyle classDeclaration
Swift
public static func renderNavigationBar(bar: UINavigationBar)Parameters
barThe
UINavigationBarbeing rendered. -
Render
UINavigationBarwith a given style classDeclaration
Swift
public static func renderNavigationBar(bar: UINavigationBar, withClass className: String)Parameters
imageViewThe
UINavigationBarbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIProgressViewwith the defaultProgressstyle classDeclaration
Swift
public static func renderProgressView(progressView: UIProgressView)Parameters
progressViewThe
UIProgressViewbeing rendered. -
Render
UIProgressViewwith a given style classDeclaration
Swift
public static func renderProgressView(progressView: UIProgressView, withClass className: String)Parameters
progressViewThe
UIProgressViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
FUICheckoutIndicatorViewwith the default style classDeclaration
Swift
public static func renderCheckoutIndicatorView(checkoutIndicatorView: FUICheckoutIndicatorView)Parameters
checkoutIndicatorViewThe
FUICheckoutIndicatorViewbeing rendered. -
Render
FUICheckoutIndicatorViewwith a given style classDeclaration
Swift
public static func renderCheckoutIndicatorView(checkoutIndicatorView: FUICheckoutIndicatorView, withClass className: String)Parameters
checkoutIndicatorViewThe
FUICheckoutIndicatorViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UINavigationItemwith the defaultNavigationBarstyle classDeclaration
Swift
public static func renderNavigationItem(item: UINavigationItem)Parameters
itemThe
UINavigationItembeing rendered. -
Render
UINavigationItemwith a given style classDeclaration
Swift
public static func renderNavigationItem(item: UINavigationItem, withClass className: String)Parameters
itemThe
UINavigationItembeing rendered.classNameThe name of class style for rendering the component.
-
Render
UISearchBarwith the defaultSearchBarstyle classDeclaration
Swift
public static func renderSearchBar(bar: UISearchBar)Parameters
barThe
UISearchBarbeing rendered. -
Render
UISearchBarwith a given style classDeclaration
Swift
public static func renderSearchBar(bar: UISearchBar, withClass className: String)Parameters
barThe
UISearchBarbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UISegmentedControlwith the defaultSegmentedControlstyle classDeclaration
Swift
public static func renderSegmentedControl(control: UISegmentedControl)Parameters
controlThe
UISegmentedControlbeing rendered. -
Render
UISegmentedControlwith a given style classDeclaration
Swift
public static func renderSegmentedControl(control: UISegmentedControl, withClass className: String)Parameters
controlThe
UISegmentedControlbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UISliderwith the defaultSliderstyle classDeclaration
Swift
public static func renderSlider(slider: UISlider)Parameters
controlThe
UISliderbeing rendered. -
Render
UISliderwith a given style classDeclaration
Swift
public static func renderSlider(slider: UISlider, withClass className: String)Parameters
sliderThe
UISliderbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UISwitchwith the defaultSwitchstyle classDeclaration
Swift
public static func renderSwitch(uiSwitch: UISwitch)Parameters
uiSwitchThe
UISwitchbeing rendered. -
Render
UISwitchwith a given style classDeclaration
Swift
public static func renderSwitch(uiSwitch: UISwitch, withClass className: String)Parameters
uiSwitchThe
UISwitchbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIPageControlwith the defaultPageControlstyle classDeclaration
Swift
public static func renderPageControl(pageControl: UIPageControl)Parameters
uiSwitchThe
UIPageControlbeing rendered. -
Render
UIPageControlwith a given style classDeclaration
Swift
public static func renderPageControl(pageControl: UIPageControl, withClass className: String)Parameters
pageControlThe
UIPageControlbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UITabBarwith the defaultTabBarstyle classDeclaration
Swift
public static func renderTabBar(bar: UITabBar)Parameters
uiSwitchThe
UITabBarbeing rendered. -
Render
UITabBarwith a given style classDeclaration
Swift
public static func renderTabBar(bar: UITabBar, withClass className: String)Parameters
barThe
UITabBarbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UITabBarItemwith the defaultTabBarItemstyle classDeclaration
Swift
public static func renderTabBarItem(item: UITabBarItem)Parameters
UITabBarItemThe
UITabBarItembeing rendered. -
Render
UITabBarItemwith a given style classDeclaration
Swift
public static func renderTabBarItem(item: UITabBarItem, withClass className: String)Parameters
itemThe
UITabBarItembeing rendered.classNameThe name of class style for rendering the component.
-
Render
UITableViewwith the defaultTableViewstyle classDeclaration
Swift
public static func renderTableView(tableView: UITableView)Parameters
tableViewThe
UITableViewbeing rendered. -
Render
UITableViewwith a given style classDeclaration
Swift
public static func renderTableView(tableView: UITableView, withClass className: String)Parameters
tableViewThe
UITableViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UITableViewCellwith the defaultTableCellstyle classDeclaration
Swift
public static func renderTableViewCell(cell: UITableViewCell)Parameters
tableViewThe
UITableViewCellbeing rendered. -
Render
UITableViewCellwith a given style classDeclaration
Swift
public static func renderTableViewCell(cell: UITableViewCell, withClass className: String)Parameters
cellThe
UITableViewCellbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIToolbarwith the defaultToolbarstyle classDeclaration
Swift
public static func renderToolbar(bar: UIToolbar)Parameters
tableViewThe
UIToolbarbeing rendered. -
Render
UIToolbarwith a given style classDeclaration
Swift
public static func renderToolbar(bar: UIToolbar, withClass className: String)Parameters
barThe
UIToolbarbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UITextFieldwith the defaultTextFieldstyle classDeclaration
Swift
public static func renderTextField(textField: UITextField)Parameters
textFieldThe
UITextFieldbeing rendered. -
Render
UITextFieldwith a given style classDeclaration
Swift
public static func renderTextField(textField: UITextField, withClass className: String)Parameters
textFieldThe
UITextFieldbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UITextViewwith the defaultTextViewstyle classDeclaration
Swift
public static func renderTextView(textView: UITextView)Parameters
textViewThe
UITextViewbeing rendered. -
Render
UITextViewwith a given style classDeclaration
Swift
public static func renderTextView(textView: UITextView, withClass className: String)Parameters
textViewThe
UITextViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
FUIKPIProgressViewwith the defaultFUIKPIProgressViewstyle classDeclaration
Swift
public static func renderProgressView(kpiProgressView: FUIKPIProgressView)Parameters
kpiProgressViewThe
FUIKPIProgressViewbeing rendered. -
Render
FUIKPIProgressViewwith a given style classDeclaration
Swift
public static func renderProgressView(kpiProgressView: FUIKPIProgressView, withClass className: String)Parameters
kpiProgressViewThe
FUIKPIProgressViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIViewwith the defaultViewstyle classDeclaration
Swift
public static func renderView(view: UIView)Parameters
viewThe
UIViewbeing rendered. -
Render
UIViewwith a given style classDeclaration
Swift
public static func renderView(view: UIView, withClass className: String)Parameters
viewThe
UIViewbeing rendered.classNameThe name of class style for rendering the component.
-
Render
UIViewwith a given style class and suffix to the style classDeclaration
Swift
public static func renderView(view: UIView, withClass className: String, withSuffix suffix: String)Parameters
viewThe
UIViewbeing rendered.classNameThe name of class style for rendering the component.
suffixThe suffix to the className.
-
Render
UIWindowwith the defaultWindowstyle classDeclaration
Swift
public static func renderWindow(window: UIWindow)Parameters
windowThe
UIWindowbeing rendered. -
Render
UIWindowwith a given style classDeclaration
Swift
public static func renderWindow(window: UIWindow, withClass className: String)Parameters
windowThe
UIWindowbeing rendered.classNameThe name of class style for rendering the component.
-
Checks to see if a given style class contains any text transform property.
Declaration
Swift
public static func needsTextTransformWithClass(className: String) -> BoolParameters
classNameThe name of class style for transforming the text.
Return Value
true if the given style class contains the text transform property; otherwise false.
-
Transform a given text based on a given style class
Declaration
Swift
public static func transformText(text: String, withClass className: String) -> StringParameters
textThe text to be transformed.
classNameThe name of class style for transforming the text.
-
Render
UINavigationBarwith the style class set.Declaration
Swift
public static func sizeDidChangeForNavigationBar(bar: UINavigationBar)Parameters
barThe
UINavigationBarbeing rendered. -
Render
UITabBarwith the style class set.Declaration
Swift
public static func sizeDidChangeForTabBar(bar: UITabBar)Parameters
barThe
UITabBarbeing rendered. -
Render
UITableViewCellwith the style class set.Declaration
Swift
public static func sizeDidChangeForTableViewCell(cell: UITableViewCell)Parameters
cellThe
UITableViewCellbeing rendered. -
Render
UITableViewwith the style class set.Declaration
Swift
public static func sizeDidChangeForTableView(tableView: UITableView)Parameters
tableViewThe
UITableViewbeing rendered.
-
Add an orientation observer in
NotificationCenterDeclaration
Swift
public static func addOrientationDidChangeObserver(observer: AnyObject)Parameters
observerThe
AnyObjectto be added as an observer. -
Remove the given observer from
NotificationCenterDeclaration
Swift
public static func removeOrientationDidChangeObserver(observer: AnyObject)Parameters
observerThe
AnyObjectto be removed.
-
Rerender the root view
Declaration
Swift
public static func rerender() -
Rerender the given
UIViewDeclaration
Swift
public static func rerenderView(view: UIView)Parameters
viewThe
UIViewto be rerendered.
-
Add or remove orientaiton observer
Declaration
Swift
public static func setRerenderOnOrientationChange(rerender: Bool)Parameters
rerendertrue to add the observer by calling
addOrientationDidChangeObserver; otherwise, remove the observer by callingremoveOrientationDidChangeObserver -
Get the global
NUIRendererinstance.Declaration
Swift
public static func getInstance() -> NUIRendererReturn Value
The
NUIRendererinstance. -
Rerender the view when the orientation did changed
Declaration
Swift
@objc public static func orientationDidChange(notification: NSNotification)Parameters
notificationThe
NSNotificationobject -
Rerender the view when stylesheet file changed
Declaration
Swift
public static func stylesheetFileChanged()