图片资源命名使用苹果风格
|
@ -42,34 +42,34 @@ public extension ProHUD.Scene {
|
||||||
|
|
||||||
static var `default`: ProHUD.Scene {
|
static var `default`: ProHUD.Scene {
|
||||||
var scene = ProHUD.Scene.init(identifier: "default")
|
var scene = ProHUD.Scene.init(identifier: "default")
|
||||||
scene.image = ProHUD.image(named: "ProHUDMessage")
|
scene.image = ProHUD.image(named: "prohud.message")
|
||||||
return scene
|
return scene
|
||||||
}
|
}
|
||||||
static var loading: ProHUD.Scene {
|
static var loading: ProHUD.Scene {
|
||||||
var scene = ProHUD.Scene.init(identifier: "loading")
|
var scene = ProHUD.Scene.init(identifier: "loading")
|
||||||
scene.alertDuration = 0
|
scene.alertDuration = 0
|
||||||
scene.toastDuration = 0
|
scene.toastDuration = 0
|
||||||
scene.image = ProHUD.image(named: "ProHUDLoading")
|
scene.image = ProHUD.image(named: "prohud.loading")
|
||||||
return scene
|
return scene
|
||||||
}
|
}
|
||||||
static var success: ProHUD.Scene {
|
static var success: ProHUD.Scene {
|
||||||
var scene = ProHUD.Scene.init(identifier: "success")
|
var scene = ProHUD.Scene.init(identifier: "success")
|
||||||
scene.alertDuration = 2
|
scene.alertDuration = 2
|
||||||
scene.image = ProHUD.image(named: "ProHUDSuccess")
|
scene.image = ProHUD.image(named: "prohud.success")
|
||||||
return scene
|
return scene
|
||||||
}
|
}
|
||||||
static var warning: ProHUD.Scene {
|
static var warning: ProHUD.Scene {
|
||||||
var scene = ProHUD.Scene.init(identifier: "warning")
|
var scene = ProHUD.Scene.init(identifier: "warning")
|
||||||
scene.alertDuration = 2
|
scene.alertDuration = 2
|
||||||
scene.toastDuration = 5
|
scene.toastDuration = 5
|
||||||
scene.image = ProHUD.image(named: "ProHUDWarning")
|
scene.image = ProHUD.image(named: "prohud.warning")
|
||||||
return scene
|
return scene
|
||||||
}
|
}
|
||||||
static var error: ProHUD.Scene {
|
static var error: ProHUD.Scene {
|
||||||
var scene = ProHUD.Scene.init(identifier: "error")
|
var scene = ProHUD.Scene.init(identifier: "error")
|
||||||
scene.alertDuration = 2
|
scene.alertDuration = 2
|
||||||
scene.toastDuration = 5
|
scene.toastDuration = 5
|
||||||
scene.image = ProHUD.image(named: "ProHUDError")
|
scene.image = ProHUD.image(named: "prohud.error")
|
||||||
return scene
|
return scene
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |