Skip to content

Commit

Permalink
replace kingfisher to swiftygif
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHu committed Jul 21, 2021
1 parent 21f4594 commit 092653f
Show file tree
Hide file tree
Showing 103 changed files with 2,946 additions and 15,929 deletions.
4 changes: 2 additions & 2 deletions HDHUD.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'HDHUD'
s.swift_version = '5.0'
s.version = '1.2.6'
s.version = '1.2.7'
s.license= { :type => "MIT", :file => "LICENSE" }
s.summary = 'A simple and efficient HUD based on swift development'
s.homepage = 'https://github.com/DamonHu/HDHUD'
Expand All @@ -18,5 +18,5 @@ s.documentation_url = 'https://github.com/DamonHu/HDHUD'

s.dependency 'ZXKitUtil'
s.dependency 'SnapKit'
s.dependency 'Kingfisher'
s.dependency 'SwiftyGif'
end
9 changes: 6 additions & 3 deletions HDHUD/Pod/Class/HDHUDLabelContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import UIKit
import Kingfisher
import SwiftyGif

class HDHUDLabelContentView: HDHUDContentView {

Expand All @@ -24,6 +24,7 @@ class HDHUDLabelContentView: HDHUDContentView {
let tImageView = UIImageView()
return tImageView
}()

lazy var mLabel: UILabel = {
let tLabel = UILabel()
tLabel.numberOfLines = 0
Expand All @@ -34,7 +35,7 @@ class HDHUDLabelContentView: HDHUDContentView {
}()
}

extension HDHUDLabelContentView {
private extension HDHUDLabelContentView {
func createUI(content: String?, icon: HDHUDIconType, direction: HDHUDContentDirection) {
var imageSize = CGSize.zero
switch icon {
Expand All @@ -50,7 +51,7 @@ extension HDHUDLabelContentView {
mImageView.image = HDHUD.successImage
imageSize = HDHUD.successImageSize
case .loading:
mImageView.kf.setImage(with: HDHUD.loadingImageURL)
mImageView.setGifFromURL(HDHUD.loadingImageURL)
imageSize = HDHUD.loadingImageSize
}
mLabel.text = content
Expand Down Expand Up @@ -91,6 +92,8 @@ extension HDHUDLabelContentView {
}
}



mLabel.snp.makeConstraints { (make) in
if direction == .horizontal {
make.left.equalTo(mImageView.snp.right).offset(8)
Expand Down
3 changes: 2 additions & 1 deletion HDHUD/Pod/Class/HDHUDProgressContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import UIKit
import ZXKitUtil
import SwiftyGif

class HDHUDProgressContentView: HDHUDContentView {
var progress: Float = 0 {
Expand All @@ -28,7 +29,7 @@ class HDHUDProgressContentView: HDHUDContentView {
//MARK: UI
lazy var mImageView: UIImageView = {
let tImageView = UIImageView()
tImageView.kf.setImage(with: HDHUD.loadingImageURL)
tImageView.setGifFromURL(HDHUD.loadingImageURL)
return tImageView
}()

Expand Down
2 changes: 2 additions & 0 deletions HDHUD/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class ViewController: UIViewController {
@objc func p_click() {
print("点击", i)
let priority = HDHUDPriority.high
HDHUD.show("横版排列", icon: .loading, direction: .horizontal, priority: priority)
return

if i == 0 {
HDHUD.show("横版排列", icon: .none, direction: .horizontal, priority: priority)
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ target 'HDHUD' do
# Pods for HDHUD
pod 'SnapKit'
pod 'ZXKitUtil'
pod 'Kingfisher'
pod 'SwiftyGif'
end
20 changes: 10 additions & 10 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
PODS:
- Kingfisher (6.3.0)
- SnapKit (5.0.1)
- ZXKitUtil (0.1.0):
- ZXKitUtil/core (= 0.1.0)
- ZXKitUtil/core (0.1.0)
- SwiftyGif (5.4.0)
- ZXKitUtil (3.0.1):
- ZXKitUtil/core (= 3.0.1)
- ZXKitUtil/core (3.0.1)

DEPENDENCIES:
- Kingfisher
- SnapKit
- SwiftyGif
- ZXKitUtil

SPEC REPOS:
trunk:
- Kingfisher
- SnapKit
- SwiftyGif
- ZXKitUtil

SPEC CHECKSUMS:
Kingfisher: 6c3df386db71d82c0817a429d2c9421a77396529
SnapKit: 97b92857e3df3a0c71833cce143274bf6ef8e5eb
ZXKitUtil: a374e2c80d5274c5e2d97f42bad5597a8812be89
SwiftyGif: 5d4af95df24caf1c570dbbcb32a3b8a0763bc6d7
ZXKitUtil: 7f8782b19f1696fe259d07f4048196be5f2ea6b7

PODFILE CHECKSUM: 8ae0a6f8d3827615dcca9424b7ed1974f6148193
PODFILE CHECKSUM: c53aa6d1dbeed3b0ce47c9a634d1729af2432548

COCOAPODS: 1.10.1
COCOAPODS: 1.9.1
240 changes: 0 additions & 240 deletions Pods/Kingfisher/README.md

This file was deleted.

Loading

0 comments on commit 092653f

Please sign in to comment.