Supporting Types
FUIImageView
FUIImageView
is an enhanced UIImageView
that applies a circular mask to the image
property when isCircular
property is true
.
Additionally the view defines properties to specify the width and color of an optional border around the image.
The view is also designable in Interface Builder - simply drop a UIImage view onto your xib or storyboard and
change the implementation class to FUIImageView
and the module to SAPFiori
.
Usage
- Programmatically initializing it:
let imageView = FUIImageView(image: UIImage(named: "myProfilePic"))
//set image view to be circular
imageView.isCircular = true
- Placing it inside a storyboard or xib:
- Drag and drop an
UIImageView
component to InterfaceInspector, renameUIImageView
toFUIImageView
for the class name and set module toSAPFiori
- For a circular image view, set inspected property,
Is Circular
, toOn
FUIBannerMessageView
FUIBannerMessageView
is a UIView
which contains a message showing underneath the navigation bar.
Always use the instance property bannerView
of a FUINavigationBar
instead of creating a new FUIBannerMessageView
instance yourself.
Usage
Call show(message:withDuration:animated:)
method on a bannerView
property of FUINavigationBar
to show the message. By default, the message is shown centered on screen for two seconds.
guard let navBar = self.navigationController?.navigationBar as? FUINavigationBar else {
return
}
navBar.bannerView?.show(message: "This is a test banner", withDuration: 1, animated: true)
FUINavigationBar
FUINavigationBar
is a subclass of ‘UINavigationBar’ which adopts fiori style and contains a FUIBannerMessageView
property by default.
Call show()
on a FUIBannerMessageView
instance to show the message. By default, the message is shown centered on screen for two seconds.
Usage
Setup
Setup a FUINavigationBar
in your navigation controller. You can set either in storyboard or programatically.
Show banner message if needed.
guard let navBar = self.navigationController?.navigationBar as? FUINavigationBar else {
return
}
navBar.bannerView?.show(message: "This is a test banner", withDuration: 1, animated: true)
-
Subclass of UILabel, implementing
See moreonChangeHandler
that is invoked on changes to thevalue
property.Declaration
Swift
open class FUILabel: UILabel
-
FUIImageView
is an enhanced Fiori styleUIImageView
that provides the option of applying a circular mask to the view’simage
property. The view also exposes properties for specifying the width and color of an optional border around the image.Remark
Implements@IBDesignable
Usage
- Initializing programmatically:
let imageView = FUIImageView(image: UIImage(named: "myProfilePic")) //set image view to be circular imageView.isCircular = true
- Placing inside a Storyboard or xib:
- Drag and drop an
UIImageView
component to Interface Builder canvas. - Switch class name from
UIImageView
toFUIImageView', and set module to
SAPFiori`. - To apply, set
@IBInspectable
propertyisCircular
, totrue
Declaration
Swift
open class FUIImageView: UIImageView, FUIObservableValue
-
Subclass of
See moreUITextField
, which implements theFUIObservableValue
protocol, to observe changes to thetext
property. TheonChangeHandler: ((String?) -> Void)?
closure will be invoked on changes to thetext
property.Declaration
Swift
open class FUITextField: UITextField, FUIObservableValue
-
FUINavigationBar
is a subclass of ‘UINavigationBar’ which applies the Fiori Design Language styling by default.It exposes a
bannerView: FUIBannerMessageView
view property, which may be presented, using theFUIBannerMessageView
show()
method. By default, the message is shown centered on screen for two seconds.Usage
Configuration
Setup a
FUINavigationBar
in your navigation controller. You can set either in storyboard or programmatically.Presenting
FUIBannerMessageView
See moreguard let navBar = self.navigationController?.navigationBar as? FUINavigationBar else { return }
navBar.bannerView?.show(message:
This is a test banner
, withDuration: 1, animated: true)Declaration
Swift
open class FUINavigationBar: UINavigationBar
-
Subclass of
UIButton
, which fixes the issue inUIButton
where setting thetitleLabel.text
property does not update the label text value.Declaration
Swift
open class FUIButton: UIButton
-
FUITag
is an enhancedFUILabel
that applies Fiori Design tag color schemes to the label by default.Usage
- Initializing programmatically:
let tag = FUITag(title: "Tag1")
- Placing inside a Storyboard or xib:
- Drag and drop an
UILabel
component to Interface Builder canvas. - Switch class name from
UILabel
toFUITag
, and set module toSAPFiori
.
Declaration
Swift
open class FUITag : FUILabel
-
A protocol defines properties that a view supporting validation should have.
See moreDeclaration
Swift
public protocol FUIInlineValidation
-
A protocol defines
See morestyle
representing an item inFUIKPIView
.Declaration
Swift
public protocol FUIKPIViewItem
-
An enum representing the different view styles that a
See moreFUIKPIView
can have.Declaration
Swift
public enum FUIKPIViewItemStyle
-
Simple enumeration for horizontal alignment styles
- left: left-aligned
- center: center-aligned
- right: right-aligned
Declaration
Swift
public enum FUIHorizontalAlignment
-
An struct that represents style classes
See moreDeclaration
Swift
public struct FioriStyle