From e611961e9840e5d6a26af70e64811ad0e6e22167 Mon Sep 17 00:00:00 2001 From: mltokky Date: Tue, 20 Aug 2024 00:50:33 +0900 Subject: [PATCH] rename to CircularUserIcon from SpeakerIcon --- .../Timetable/{SpeakerIcon.swift => CircularUserIcon.swift} | 4 ++-- .../Sources/CommonComponents/Timetable/TimetableCard.swift | 2 +- .../Sources/ContributorFeature/ContributorListItemView.swift | 2 +- app-ios/Sources/StaffFeature/StaffLabel.swift | 2 +- .../Sources/TimetableDetailFeature/TimetableDetailView.swift | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename app-ios/Sources/CommonComponents/Timetable/{SpeakerIcon.swift => CircularUserIcon.swift} (93%) diff --git a/app-ios/Sources/CommonComponents/Timetable/SpeakerIcon.swift b/app-ios/Sources/CommonComponents/Timetable/CircularUserIcon.swift similarity index 93% rename from app-ios/Sources/CommonComponents/Timetable/SpeakerIcon.swift rename to app-ios/Sources/CommonComponents/Timetable/CircularUserIcon.swift index b2e0a56f0..a200c6b1f 100644 --- a/app-ios/Sources/CommonComponents/Timetable/SpeakerIcon.swift +++ b/app-ios/Sources/CommonComponents/Timetable/CircularUserIcon.swift @@ -16,7 +16,7 @@ private actor SpeakerIconInMemoryCache { } } -public struct SpeakerIcon: View { +public struct CircularUserIcon: View { let urlString: String @State private var iconData: Data? @@ -54,6 +54,6 @@ public struct SpeakerIcon: View { } #Preview { - SpeakerIcon(urlString: "https://github.com/mltokky.png") + CircularUserIcon(urlString: "https://github.com/mltokky.png") .frame(width: 32, height: 32) } diff --git a/app-ios/Sources/CommonComponents/Timetable/TimetableCard.swift b/app-ios/Sources/CommonComponents/Timetable/TimetableCard.swift index 1ffe87c0b..b82032b5f 100644 --- a/app-ios/Sources/CommonComponents/Timetable/TimetableCard.swift +++ b/app-ios/Sources/CommonComponents/Timetable/TimetableCard.swift @@ -54,7 +54,7 @@ public struct TimetableCard: View { ForEach(timetableItem.speakers, id: \.id) { speaker in HStack(spacing: 8) { - SpeakerIcon(urlString: speaker.iconUrl) + CircularUserIcon(urlString: speaker.iconUrl) .frame(width: 32, height: 32) Text(speaker.name) .textStyle(.titleSmall) diff --git a/app-ios/Sources/ContributorFeature/ContributorListItemView.swift b/app-ios/Sources/ContributorFeature/ContributorListItemView.swift index 8c1a0cd0b..9c77c31bc 100644 --- a/app-ios/Sources/ContributorFeature/ContributorListItemView.swift +++ b/app-ios/Sources/ContributorFeature/ContributorListItemView.swift @@ -14,7 +14,7 @@ struct ContributorListItemView: View { } } label: { HStack(alignment: .center, spacing: 12) { - SpeakerIcon(urlString: contributor.iconUrl.absoluteString) + CircularUserIcon(urlString: contributor.iconUrl.absoluteString) .frame(width: 52, height: 52) Text(contributor.userName) diff --git a/app-ios/Sources/StaffFeature/StaffLabel.swift b/app-ios/Sources/StaffFeature/StaffLabel.swift index 819c5fefd..564bd7f14 100644 --- a/app-ios/Sources/StaffFeature/StaffLabel.swift +++ b/app-ios/Sources/StaffFeature/StaffLabel.swift @@ -8,7 +8,7 @@ struct StaffLabel: View { var body: some View { HStack(alignment: .center, spacing: 12) { - SpeakerIcon(urlString: icon.absoluteString) + CircularUserIcon(urlString: icon.absoluteString) .frame(width: 52, height: 52) .overlay( Circle() diff --git a/app-ios/Sources/TimetableDetailFeature/TimetableDetailView.swift b/app-ios/Sources/TimetableDetailFeature/TimetableDetailView.swift index f02f7052c..dd2afbc5d 100644 --- a/app-ios/Sources/TimetableDetailFeature/TimetableDetailView.swift +++ b/app-ios/Sources/TimetableDetailFeature/TimetableDetailView.swift @@ -109,7 +109,7 @@ public struct TimetableDetailView: View { ForEach(store.timetableItem.speakers, id: \.id) { speaker in HStack(spacing: 12) { - SpeakerIcon(urlString: speaker.iconUrl) + CircularUserIcon(urlString: speaker.iconUrl) .frame(width: 52, height: 52) VStack(alignment: .leading, spacing: 8) {