In SciChart, almost all styling methods expect an instance of either SCIPenStyle or SCIBrushStyle to be passed in.
Those that deals with text styling, expect an instance of a SCIFontStyle.
All these classes are designed to hold a relevant information related to drawing.
SciChart also provides the category to UIColor - UIColor(Util) - which can be used for some common conversions and retrieving partial color information.
SCIPenStyle
There are several available SCIPenStyle implementations which allow us to specify how lines should be drawn in SciChart:
// Solid Brush
let solidBrushStyle = SCISolidBrushStyle(color: .red)
// Linear Gradient Brush
let linearGradientBrushStyle = SCILinearGradientBrushStyle(start: .zero, end: CGPoint(x: 0, y: 1), startColor: .red, endColor: .blue)
// Radial Gradient Brush
let radialGradientBrushStyle = SCIRadialGradientBrushStyle(centerColor: .red, edgeColor: .blue)
// Texture Brush - SCIBitmap with Texture should be provided
var textureBitmap: SCIBitmap!
let textureBrushStyle = SCITextureBrushStyle(texture: textureBitmap)
// Solid Brush
var solidBrushStyle = new SCISolidBrushStyle(UIColor.Red);
// Linear Gradient Brush
var linearGradientBrushStyle = new SCILinearGradientBrushStyle(CGPoint.Empty, new CGPoint(0, 1), UIColor.Red, UIColor.Blue);
// Radial Gradient Brush
var radialGradientBrushStyle = new SCIRadialGradientBrushStyle(UIColor.Red, UIColor.Blue);
// Texture Brush - SCIBitmap with Texture should be provided
SCIBitmap textureBitmap;
var textureBrushStyle = new SCITextureBrushStyle(textureBitmap);
SCIFontStyle
The SCIFontStyle type is designed to hold a relevant information related to text, such as: