Add New View for User Feed Entry creation

This commit is contained in:
Sebastian Lenzlinger
2023-07-10 14:13:28 +02:00
parent 827052f531
commit 5c46b317c6
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
//
// NewFeedEntryView.swift
// RippleChat
//
// Created by Sebastian Lenzlinger on 10.07.23.
//
import SwiftUI
struct NewFeedEntryView: View {
@State private var name: String = "Alice"
var body: some View {
VStack(alignment: .leading) {
TextField("Enter your name", text: $name)
Text("Hello, \(name)!")
}
}
}
struct NewFeedEntryView_Previews: PreviewProvider {
static var previews: some View {
NewFeedEntryView()
}
}

15
RippleChat/TextApp.swift Normal file
View File

@@ -0,0 +1,15 @@
//
// TextApp.swift
// RippleChat
//
// Created by Sebastian Lenzlinger on 10.07.23.
//
import Foundation
struct TextApp {
let t = Date()
let p: String
}