Font
public extension Font
-
Undocumented
See moreDeclaration
Swift
struct FioriWeight : Hashable
extension Font.FioriWeight: CustomStringConvertible
-
Fiori (72) fonts
Supported attributes:
Regular
,Italic
,Light
,Bold
,BoldItalic
,Black
,Condensed
,CondensedBold
.Declaration
Swift
static func fiori(forTextStyle fioriTextStyle: Font.FioriTextStyle, weight: Font.FioriWeight = .regular, isItalic: Bool = false, isCondensed: Bool = false) -> Font
Parameters
fioriTextStyle
Text style.
Return Value
A scaled font for this text style.
-
Fiori (72) fonts
Supported attributes:
Regular
,Italic
,Light
,Bold
,BoldItalic
,Black
,Condensed
,CondensedBold
.Declaration
Swift
static func fiori(fixedSize: CGFloat, weight: Font.FioriWeight = .regular, isItalic: Bool = false, isCondensed: Bool = false) -> Font
Parameters
fioriTextStyle
Text style.
Return Value
A font with fixed size.
-
Fiori (72) condensed fonts
Supported attributes:
Regular
,Italic
,Light
,Bold
,BoldItalic
,Black
,Condensed
,CondensedBold
.Declaration
Swift
@available(*, deprecated, message: "Use UIFont.fiori(forTextStyle:﹚ with isCondensed parameter set to true") static func fioriCondensed(forTextStyle fioriTextStyle: Font.FioriTextStyle, weight: Font.FioriWeight = .regular) -> Font
Parameters
fioriTextStyle
Text style.
Return Value
A scaled condensed font for this text style.
-
Fiori (72) condensed fonts
Supported attributes:
Regular
,Italic
,Light
,Bold
,BoldItalic
,Black
,Condensed
,CondensedBold
.Declaration
Swift
@available(iOS 14.0, *) @available(*, deprecated, message: "Use UIFont.fiori(fixedSize:﹚ with isCondensed parameter set to true") static func fioriCondensed(fixedSize: CGFloat, weight: Font.FioriWeight = .regular) -> Font
Parameters
fioriTextStyle
Text style.
Return Value
A condensed font with fixed size.
-
Fiori text style.
See moreDeclaration
Swift
enum FioriTextStyle : CaseIterable
extension Font.FioriTextStyle: CustomStringConvertible
-
Register Fiori fonts in the app.
Call
Font.registerFioriFonts()
in AppDelegate to load all the fiori fonts into your app. If it is not called,Font.fiori(forTextStyle:)
will return system font instead.Declaration
Swift
public static func registerFioriFonts()