17 lines
170 B
Plaintext
17 lines
170 B
Plaintext
![]() |
[source,swift]
|
||
|
----
|
||
|
try loadImage(imagePath)
|
||
|
----
|
||
|
|
||
|
or
|
||
|
|
||
|
[source,swift]
|
||
|
----
|
||
|
do {
|
||
|
try loadImage(imagePath)
|
||
|
} catch {
|
||
|
handleImageError(error)
|
||
|
throw error
|
||
|
}
|
||
|
----
|