0xLeif / 0xLeif/LayerKit

Implement Content Image

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```swift
var contents: Any?
An object that provides the contents of the layer. Animatable.

var contentsRect: CGRect
The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

var contentsCenter: CGRect
The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func display()
Reloads the content of this layer.

func draw(in: CGContext)
Draws the layer’s content using the specified graphics context.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.