UIImageView+Extension.swift 270 B

123456789101112131415
  1. //
  2. // UIImageView+Extension.swift
  3. // Gami
  4. //
  5. // Created by OneeChan on 2026/2/12.
  6. //
  7. import Foundation
  8. extension UIImageView {
  9. func showAvatar(_ url: String?) {
  10. sd_setImage(with: URL(string: url ?? ""), placeholderImage: .icProfileLoginAvatar)
  11. }
  12. }