reorganize

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-11 10:34:35 -07:00
parent 37b5309dd4
commit 28790ccfab
13 changed files with 444 additions and 332 deletions

View File

@@ -64,11 +64,6 @@ enum Sheets: Identifiable {
}
}
enum NostrKind: Int {
case metadata = 0
case text = 1
}
struct ContentView: View {
@State var status: String = "Not connected"
@State var sub_id: String? = nil
@@ -228,22 +223,6 @@ struct ContentView_Previews: PreviewProvider {
}
}
func PostButton(action: @escaping () -> ()) -> some View {
return Button(action: action, label: {
Text("+")
.font(.system(.largeTitle))
.frame(width: 57, height: 50)
.foregroundColor(Color.white)
.padding(.bottom, 7)
})
.background(Color.blue)
.cornerRadius(38.5)
.padding()
.shadow(color: Color.black.opacity(0.3),
radius: 3,
x: 3,
y: 3)
}
func get_metadata_since_time(_ metadata_event: NostrEvent?) -> Int64? {
@@ -281,7 +260,3 @@ func get_profiles()
*/
func add_rw_relay(_ pool: RelayPool, _ url: String) {
let url_ = URL(string: url)!
try! pool.add_relay(url_, info: RelayInfo.rw)
}