Added Esperanto translations
Added beginnings of feed parsing,
may need to switch parser.
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
058cf52926
commit
9345b91573
13 changed files with 213 additions and 16 deletions
|
|
@ -6,16 +6,21 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import FeedKit
|
||||
|
||||
struct FeedView: View {
|
||||
var source: Feed
|
||||
var feed: Feed
|
||||
@ObservedObject var parsed: LFeedParser = LFeedParser(urlStr: "https://git.ludoviko.ch/lucxjo/leganto-apple.rss")
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
ForEach(1..<20) { item in
|
||||
FeedViewCell()
|
||||
if let feed = parsed.jsonFeed {
|
||||
ForEach(feed.items!, id: \.id!) { item in
|
||||
FeedViewCell(title: item.title!, author: item.author!, date: Date(),
|
||||
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle(source.name!)
|
||||
.navigationTitle(feed.name!)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue