mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-21 10:03:19 +00:00
ios: pass the online search rows' placeholder icons as images, as ProfileImage now takes them
Master changed ProfileImage's iconName: String to icon: Image (#7767's merge brought it in). The Directory and Names rows and New chat's group row still passed iconName, which no longer compiles; they pass Image(systemName:) as master's own callers do.
This commit is contained in:
@@ -238,7 +238,7 @@ struct DirectorySearchRow: View {
|
||||
HStack(spacing: 8) {
|
||||
ProfileImage(
|
||||
imageStr: entry.image,
|
||||
iconName: isChannel ? "antenna.radiowaves.left.and.right.circle.fill" : "person.2.circle.fill",
|
||||
icon: Image(systemName: isChannel ? "antenna.radiowaves.left.and.right.circle.fill" : "person.2.circle.fill"),
|
||||
size: 42
|
||||
)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
@@ -289,7 +289,7 @@ struct NameSearchRow: View {
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 8) {
|
||||
ProfileImage(imageStr: result.image, iconName: result.iconName, size: 42)
|
||||
ProfileImage(imageStr: result.image, icon: Image(systemName: result.iconName), size: 42)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
if let profileName = result.profileName {
|
||||
(Text(profileName).fontWeight(.bold) + Text(verbatim: " (\(result.simplexName))").foregroundColor(theme.colors.secondary))
|
||||
|
||||
@@ -174,7 +174,7 @@ struct ContactListNavLink: View {
|
||||
}
|
||||
} label: {
|
||||
chatPreview(
|
||||
ProfileImage(imageStr: groupInfo.image, iconName: groupInfo.chatIconName, size: 30),
|
||||
ProfileImage(imageStr: groupInfo.image, icon: Image(systemName: groupInfo.chatIconName), size: 30),
|
||||
NameWithBadge(Text(chat.chatInfo.chatViewName).foregroundColor(theme.colors.onBackground), chat.chatInfo.nameBadge)
|
||||
.lineLimit(1)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user