forked from lucxjo/leganto-apple
Removed not needed stuff from generation.
Started adding a view for adding data. Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
81cb27dd6c
commit
9701c3428c
9 changed files with 118 additions and 139 deletions
30
Leganto/AddFeed.swift
Normal file
30
Leganto/AddFeed.swift
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//
|
||||
// AddFeed.swift
|
||||
// Leganto
|
||||
//
|
||||
// Created by Louis Hollingworth on 2023-05-21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
enum Genre: Int16 {
|
||||
case uncategorised = 0
|
||||
case technology = 1
|
||||
case news = 2
|
||||
}
|
||||
|
||||
struct AddFeed: View {
|
||||
@State private var name = ""
|
||||
@State private var desc = ""
|
||||
@State private var genre = Genre.uncategorised.rawValue
|
||||
@State private var url = ""
|
||||
var body: some View {
|
||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
||||
}
|
||||
}
|
||||
|
||||
struct AddFeed_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
AddFeed()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue