Louis Hollingworth
9701c3428c
Started adding a view for adding data. Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
31 lines
591 B
Swift
31 lines
591 B
Swift
//
|
|
// 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()
|
|
}
|
|
}
|