Bitmap

public class Bitmap : Layer

Represents an image in Sketch.

  • References the name of an image thats stored in SalsaConfig.imageExportDirectory. Should not contain the file type. i.e. use image instead of image.png

    Declaration

    Swift

    public let fileName: String
  • Overrides the Color of the images, works the same way as setting tintColor on UIImageView on iOS

    Declaration

    Swift

    public let tintColor: Color?
  • Declaration

    Swift

    public required init?(json: [String : Any])
  • Undocumented

    Declaration

    Swift

    override public func toJson() -> [String : Any]