实现我的 Tab、对齐 Android 流程并接入 OSS 上传

This commit is contained in:
2026-07-06 16:01:05 +08:00
parent caf737b09b
commit b7bc62e94b
36 changed files with 4077 additions and 57 deletions

View File

@ -0,0 +1,20 @@
//
// UIImageView+Remote.swift
// suixinkan
//
import Kingfisher
import UIKit
extension UIImageView {
/// URL
func loadRemoteImage(urlString: String?, placeholderColor: UIColor = UIColor(hex: 0xEFF6FF)) {
backgroundColor = placeholderColor
let trimmed = urlString?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
guard let url = URL(string: trimmed), !trimmed.isEmpty else {
image = nil
return
}
kf.setImage(with: url, placeholder: nil)
}
}