Add New View for User Feed Entry creation
This commit is contained in:
25
RippleChat/NewFeedEntryView.swift
Normal file
25
RippleChat/NewFeedEntryView.swift
Normal 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
15
RippleChat/TextApp.swift
Normal 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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user