Louis Hollingworth
058cf52926
Some tidying of views will be needed. Next, data fetching needs to be worked on. Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
33 lines
649 B
Swift
33 lines
649 B
Swift
//
|
|
// FeedViewCell.swift
|
|
// Leganto
|
|
//
|
|
// Created by Louis Hollingworth on 2023-05-23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct FeedViewCell: View {
|
|
var body: some View {
|
|
VStack(alignment: .leading) {
|
|
Text("Title")
|
|
.font(.title)
|
|
HStack {
|
|
Text("Author")
|
|
Spacer()
|
|
Text("Date")
|
|
}
|
|
.font(.footnote)
|
|
Text("Content")
|
|
.font(.body)
|
|
}
|
|
.multilineTextAlignment(.leading)
|
|
}
|
|
}
|
|
|
|
struct FeedViewCell_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
FeedViewCell()
|
|
}
|
|
}
|