File tree Expand file tree Collapse file tree
examples/ios/RunAnywhereAI/RunAnywhereAI/Features/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,6 +170,11 @@ struct FlatModelRow: View {
170170 }
171171 }
172172
173+ /// Check if any LoRA adapters are compatible with this model
174+ private var hasLoRAAdapters : Bool {
175+ LoRAAdapterCatalog . adapters. contains { $0. compatibleModelIds. contains ( model. id) }
176+ }
177+
173178 /// Check if this is a built-in model that doesn't require download
174179 private var isBuiltIn : Bool {
175180 model. framework == . foundationModels ||
@@ -288,6 +293,20 @@ struct FlatModelRow: View {
288293 . foregroundColor ( AppColors . primaryPurple)
289294 . cornerRadius ( AppSpacing . cornerRadiusSmall)
290295 }
296+
297+ // LoRA adapter support indicator
298+ if hasLoRAAdapters {
299+ HStack ( spacing: AppSpacing . xxSmall) {
300+ Image ( systemName: " sparkles " )
301+ Text ( " LoRA " )
302+ }
303+ . font ( AppTypography . caption2)
304+ . padding ( . horizontal, AppSpacing . small)
305+ . padding ( . vertical, AppSpacing . xxSmall)
306+ . background ( AppColors . badgeBlue)
307+ . foregroundColor ( AppColors . primaryBlue)
308+ . cornerRadius ( AppSpacing . cornerRadiusSmall)
309+ }
291310 }
292311 }
293312
You can’t perform that action at this time.
0 commit comments