更新图片
|
@ -5,18 +5,18 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ProHUDBuy@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "ProHUDBuy@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -5,19 +5,19 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "cloud download (2).png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "cloud download (3).png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
|
|
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 25 KiB |
|
@ -5,12 +5,12 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "prohud.candy@2x.png",
|
||||
"filename" : "prohud.rainbow.circle@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "prohud.candy@3x.png",
|
||||
"filename" : "prohud.rainbow.circle@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
BIN
Example-Old/Example/Assets.xcassets/prohud.rainbow.circle.imageset/prohud.rainbow.circle@2x.png
vendored
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
Example-Old/Example/Assets.xcassets/prohud.rainbow.circle.imageset/prohud.rainbow.circle@3x.png
vendored
Normal file
After Width: | Height: | Size: 19 KiB |
|
@ -15,13 +15,6 @@
|
|||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RLL-Jl-KUu">
|
||||
<rect key="frame" x="168" y="377" width="78" height="22"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal" title="Button" image="icloud.and.arrow.down" catalog="system"/>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
|
@ -50,7 +43,4 @@
|
|||
<point key="canvasLocation" x="140.57971014492756" y="133.92857142857142"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="icloud.and.arrow.down" catalog="system" width="128" height="112"/>
|
||||
</resources>
|
||||
</document>
|
||||
|
|
|
@ -30,7 +30,8 @@ class TestToastVC: BaseListVC {
|
|||
"测试较长的标题和内容",
|
||||
"测试特别长的标题和内容",
|
||||
"测试只有title",
|
||||
"测试只有message"]
|
||||
"测试只有message",
|
||||
"自定义旋转的图片"]
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
|
@ -145,14 +146,27 @@ class TestToastVC: BaseListVC {
|
|||
}
|
||||
}
|
||||
} else if row == 12 {
|
||||
Toast.push() { (a) in
|
||||
a.update { (vm) in
|
||||
vm.scene = .warning
|
||||
vm.message = "正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过"
|
||||
Toast.push() { (a) in
|
||||
a.update { (vm) in
|
||||
vm.scene = .warning
|
||||
vm.message = "正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过正在同步看到了你撒地方快乐撒的肌肤轮廓啊就是;来的跨省的人格人格离开那地方离开过"
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if row == 13 {
|
||||
|
||||
Toast.push(scene: .privacy, title: "正在授权", message: "请稍等片刻") { (t) in
|
||||
t.identifier = "loading"
|
||||
let imgv = UIImageView(image: UIImage(named: "prohud.rainbow.circle"))
|
||||
t.imageView.addSubview(imgv)
|
||||
imgv.snp.makeConstraints { (mk) in
|
||||
mk.center.equalToSuperview()
|
||||
mk.width.height.equalTo(18)
|
||||
}
|
||||
t.rotate(imgv.layer, speed: 4)
|
||||
}
|
||||
simulateSync()
|
||||
}
|
||||
}
|
||||
|
||||
func simulateSync() {
|
||||
|
|
|
@ -116,7 +116,7 @@ public protocol RotateAnimation: HUDController {
|
|||
|
||||
public extension RotateAnimation {
|
||||
|
||||
func rotate(_ layer: CALayer? = nil, direction: ProHUD.RotateDirection = .clockwise, speed: CFTimeInterval = 1) {
|
||||
func rotate(_ layer: CALayer? = nil, direction: ProHUD.RotateDirection = .clockwise, speed: CFTimeInterval = 2) {
|
||||
DispatchQueue.main.async {
|
||||
let l = layer ?? self.imageView.layer
|
||||
self.animateLayer = l
|
||||
|
|
|
@ -53,7 +53,7 @@ public extension ProHUD.Scene {
|
|||
var scene = ProHUD.Scene.init(identifier: "loading")
|
||||
scene.alertDuration = 0
|
||||
scene.toastDuration = 0
|
||||
scene.image = ProHUD.image(named: "prohud.candy")
|
||||
scene.image = ProHUD.image(named: "prohud.rainbow.circle")
|
||||
return scene
|
||||
}
|
||||
static var success: ProHUD.Scene {
|
||||
|
|
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 7.3 KiB |
|
@ -5,12 +5,12 @@
|
|||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "prohud.candy@2x.png",
|
||||
"filename" : "prohud.rainbow.circle@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "prohud.candy@3x.png",
|
||||
"filename" : "prohud.rainbow.circle@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
BIN
Source/ProHUD.xcassets/prohud.rainbow.circle.imageset/prohud.rainbow.circle@2x.png
vendored
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
Source/ProHUD.xcassets/prohud.rainbow.circle.imageset/prohud.rainbow.circle@3x.png
vendored
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.5 KiB |