forked from lucxjo/leganto-apple
All basic views now done.
Some tidying of views will be needed. Next, data fetching needs to be worked on. Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
a18f485502
commit
058cf52926
6 changed files with 167 additions and 25 deletions
32
Leganto/FeedViewCell.swift
Normal file
32
Leganto/FeedViewCell.swift
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// 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()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue