- Add protocols for all UseCases and implement them in their respective classes - Add DefaultUseCaseFactory and MockUseCaseFactory for dependency injection - Implement all mock UseCases with dummy data - Start migration of view models and views to protocol-based UseCase injection (not all migrated yet) - Refactor previews and some initializers for easier testing - Move SectionHeader to Components, update server settings UI text - Add sample article.html for mock content
22 lines
442 B
Swift
22 lines
442 B
Swift
import SwiftUI
|
|
|
|
struct SectionHeader: View {
|
|
let title: String
|
|
let icon: String
|
|
|
|
var body: some View {
|
|
HStack(spacing: 8) {
|
|
Image(systemName: icon)
|
|
.font(.title2)
|
|
.foregroundColor(.accentColor)
|
|
Text(title)
|
|
.font(.title2)
|
|
.fontWeight(.bold)
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
SectionHeader(title: "hello", icon: "person.circle")
|
|
}
|