mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-05 00:15:59 +00:00
* initial mobile app design draft * add proposals * xcode project * refactor function to send to view as parameter * export C interface * remove unused files * run chat from chatInit * split chatStart to a separate function * replace file-embed with QQ * add mobile views * server using IP address * pass dbFilePrefix as parameter to chatInit * comment on enabling logging * fix mobile db config * update C API, make user non-optional in ChatController * restore SMP server addresses * revert the change in the tests * flip dependency - now Controller depends on Terminal * make ChatController independent of terminal package * fix Main.hs * add iOS .gitignore * refactor Simplex.Chat.Terminal Co-authored-by: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com>
33 lines
857 B
Swift
33 lines
857 B
Swift
//
|
|
// ProfileView.swift
|
|
// SimpleX
|
|
//
|
|
// Created by Evgeny Poberezkin on 18/01/2022.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ProfileView: View {
|
|
@State var displayName: String = ""
|
|
@State var fullName: String = ""
|
|
var body: some View {
|
|
VStack(alignment: .leading) {
|
|
Text("Create profile")
|
|
.font(.largeTitle)
|
|
.padding(.bottom)
|
|
Text("Your profile is stored on your device and shared only with your contacts.\nSimpleX servers cannot see your profile.")
|
|
.padding(.bottom)
|
|
TextField("Display name", text: $displayName)
|
|
.padding(.bottom)
|
|
TextField("Full name (optional)", text: $fullName)
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
struct ProfileView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ProfileView()
|
|
}
|
|
}
|