ImageSource
Describes where an image comes from, without touching UIKit.
- Kind: Struct
- Namespace: SkeleKit
Properties
Kind
How Value should be resolved.
Type: ImageSourceKind
Value
The symbol name, bundle asset name, or URL.
Type: string
Methods
Bundle
An image from a bundle asset name.
| Parameter | Summary |
|---|---|
string name | The name of the asset in the bundle. |
Returns
ImageSource: An image source configured for a bundle asset.
Data
An image from raw encoded bytes.
| Parameter | Summary |
|---|---|
byte bytes | The encoded image data. |
Returns
ImageSource: An image source configured for in-memory data.
Symbol
An image from an SF Symbol name.
| Parameter | Summary |
|---|---|
string name | The name of the system symbol. |
Returns
ImageSource: An image source configured for a symbol.
Url
An image from a remote URL, loaded asynchronously.
Supported by
Image.Sourceand sharing. Compact control icons accept local sources only.
| Parameter | Summary |
|---|---|
string url | The full web address of the image. |
Returns
ImageSource: An image source configured for a URL.
Operators
Implicit ImageSource(string)
Treats a string as a URL when it looks like one, otherwise resolves it automatically.
| Parameter | Summary |
|---|---|
string value | The string value to convert. |
Returns
ImageSource: An image source for the string.