Protocols
The following protocols are available globally.
-
LightenColorSet, represents lighter colors of base color.
See moreDeclaration
Swift
public protocol LightenColorSet
-
DarkenColorSet, represents darker colors of base color.
See moreDeclaration
Swift
public protocol DarkenColorSet
-
LightenColorSet, represents lighter colors of base color.
See moreDeclaration
Swift
public protocol ExtendedLightenColorSet
-
ExtendedDarkenColorSet, represents extedend darker colors of base color.
See moreDeclaration
Swift
public protocol ExtendedDarkenColorSet
-
Color which represents base color, other palettes creates lighter and darker colors of base color.
See moreDeclaration
Swift
public protocol Color
-
See moreColorPalette
represents base color with set of lighter and darker colors of base, total 5 colors (shades and tints) are represented byColorPalette
.Declaration
Swift
public protocol ColorPalette : Color, DarkenColorSet, LightenColorSet
-
LargerColorPalette represents base color with set of lighter and darker colors of base, total 9 colors (shades and tints) are represented by
ColorPalette
.Use it when larger set of lighter and darker colors are required.
See moreDeclaration
Swift
public protocol LargerColorPalette : ColorPalette, ExtendedDarkenColorSet, ExtendedLightenColorSet
-
Semantic color palette, used for messaging. Used to deliver information about success, error, warning.
Generally red for errors, green for success, yellow or organge for warning, blue or gray for informational messages.
See moreDeclaration
Swift
public protocol SemanticColorPalette
-
A color palette which contains primary, secondary and supplimentory colors with their darker and lighter color sets. Also contains default semantic and grayscale palette.
See moreDeclaration
Swift
public protocol MainColorPalette
-
GradientColor
protocol provides gradient defination with start & end colors and start & end points. Helper to create gradient usingCAGradientLayer
.// Left-to-Right gradient color can be defined as below struct CardGradientColor: GradientColor { let startColor = UIColor("#1e3c72") let endColor = UIColor("#2a5298") } // Single color with darker/light shade gradient color can be defined as below. //`endColor` will be darker or ligher of `startColor` struct ShadedGradientColor: GradientColor { let startColor = UIColor("#1e3c72") }
UIColor
also implementsGradientColor
protocol, so instance of UIColor can be used directly whereverGradientColor
used.See also
SeeAlso:-GradientView
See also
SeeAlso:- `public convenience init(gradient: GradientColor)Declaration
Swift
public protocol GradientColor
-
Type which can reprent value, Mostly used with autolayouts, but not limited to it. Contains some utility methods to create margins, insets etc.
See moreDeclaration
Swift
public protocol LayoutValueRepresentable
-
Listens events for theme
See moreDeclaration
Swift
public protocol ThemeListener
-
Scale represents small set of scale sizes.
See moreDeclaration
Swift
public protocol Scale
-
ValueLevel represents set of level for a value.
See moreDeclaration
Swift
public protocol ValueLevel
-
TwoStateValueLevel represents two state for a value.
See moreDeclaration
Swift
public protocol TwoStateValueLevel
-
TransparencyLevel represents level of transparency.
Declaration
Swift
public protocol TransparencyLevel : TwoStateValueLevel, ValueLevel
-
Style protocol represents style which can be applied on control
See moreDeclaration
Swift
public protocol Style
-
Represents them with color palette. Currenly supports only color palettes.
See moreDeclaration
Swift
public protocol Theme
-
ThemeManager
See moreDeclaration
Swift
public protocol ThemeManager
-
ThemeSwitcher hods replaceable theme
See moreDeclaration
Swift
public protocol ThemeSwitcher : ThemeManager
-
DualThemeSwitcher holds two instance for theme, helper to create dual themes i.e light/dark mode or day/night mode.
See moreDeclaration
Swift
public protocol DualThemeSwitcher : ThemeSwitcher
-
TypographyOptions options to configure typography
See moreDeclaration
Swift
public protocol TypographyOptions
-
Typography provides static size fonts as per
See moreFontStyle
Declaration
Swift
public protocol Typography
-
DynamicTypography provides dynamic types fonts along with static size fonts
See moreDeclaration
Swift
public protocol DynamicTypography : Typography, TypographyOptions
-
A type with a customized font representation
Declaration
Swift
public protocol FontConvertible
-
Represnts font set.
See moreDeclaration
Swift
public protocol Font
-
Dynamically scalable font which supports built in textstyle -
See moreUIFont.TextStyle
.Declaration
Swift
public protocol DynamicTypeFont : SystemFont
-
DynamicTypeCustomTextStyleFont - Support font with custom font style.
Declaration
Swift
public protocol DynamicTypeCustomTextStyleFont : Font