Skip to content

Commit

Permalink
Make RoundImageView placeholder visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
aforge authored and or-else committed Feb 6, 2023
1 parent ebcef7d commit 28fb0b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tinodios/widgets/RoundImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,19 @@ public class RoundImageView: UIImageView {
let icon: UIImage
switch iconType {
case .p2p:
icon = UIImage(systemName: "person.fill", withConfiguration: UIImage.SymbolConfiguration(pointSize: 32, weight: .medium, scale: .large))!
icon = UIImage(systemName: "person", withConfiguration: UIImage.SymbolConfiguration(pointSize: 32, weight: .medium, scale: .large))!
case .grp:
icon = UIImage(systemName: "person.2.fill", withConfiguration: UIImage.SymbolConfiguration(pointSize: 32, weight: .medium, scale: .large))!
icon = UIImage(systemName: "person.2", withConfiguration: UIImage.SymbolConfiguration(pointSize: 32, weight: .medium, scale: .large))!
default:
icon = UIImage(systemName: "questionmark", withConfiguration: UIImage.SymbolConfiguration(pointSize: 32, weight: .medium, scale: .large))!
}
return icon.withTintColor(UIColor.systemBackground).withInset(6)!
return icon.withTintColor(.link).withInset(6)!
}

private func setCornerRadius() {
layer.cornerRadius = min(bounds.width, bounds.height)/2
layer.borderColor = UIColor.black.cgColor
layer.borderWidth = 0.1
}
}

Expand Down

0 comments on commit 28fb0b4

Please # to comment.