SkiaView
public class SkiaView : UIView
SkiaView is a UIView that you can add to your programs that can render some Skia content for you.
To do this, create an instance of this class, and then set the drawingCallback property to point
to a function that takes a Surface and an ImageInfo as parameter, and this will be called when
the view needs to render itself.
You can set the ignorePixelScaling to ignore the built-in scaling that uses the UIView‘s
contentScaleFactor
-
This property when set points to the method to invoke when drawing. The method receives a surface and the ImageInfo where it should draw its contents.
-
If true, this will ignore the pixel scaling of the device, otherwise some virtual pixels might use the number of physical pixels specified in the system
Declaration
Swift
public var ignorePixelScaling: Bool { get set } -
Undocumented
Declaration
Swift
override public func draw(_ rect: CGRect)
View on GitHub
Install in Dash
SkiaView Class Reference