forked from lucxjo/leganto-apple
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()
|
||
|
}
|
||
|
}
|