damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | LICENSE

commit d796c44b46548d5f60f503299e1c30808d60330f
parent 4491db5cdd5333e41f1885fc3a123a0bd011dcb0
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 16 Apr 2022 09:36:19 -0700

EventDetailView placeholder

we'll use this view for when click into an event

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus.xcodeproj/project.pbxproj | 4++++
Adamus/Views/EventDetailView.swift | 22++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/damus.xcodeproj/project.pbxproj b/damus.xcodeproj/project.pbxproj @@ -30,6 +30,7 @@ 4CEE2AEB2805AEA300AB5EEF /* secp256k1 in Frameworks */ = {isa = PBXBuildFile; productRef = 4CEE2AEA2805AEA300AB5EEF /* secp256k1 */; }; 4CEE2AED2805B22500AB5EEF /* NostrRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CEE2AEC2805B22500AB5EEF /* NostrRequest.swift */; }; 4CEE2AEF2805BE2500AB5EEF /* NostrTimeline.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CEE2AEE2805BE2500AB5EEF /* NostrTimeline.swift */; }; + 4CEE2AF1280B216B00AB5EEF /* EventDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CEE2AF0280B216B00AB5EEF /* EventDetailView.swift */; }; 4CEE2AF3280B25C500AB5EEF /* ProfilePicView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CEE2AF2280B25C500AB5EEF /* ProfilePicView.swift */; }; /* End PBXBuildFile section */ @@ -76,6 +77,7 @@ 4CEE2AE72804F57C00AB5EEF /* libsecp256k1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libsecp256k1.a; sourceTree = "<group>"; }; 4CEE2AEC2805B22500AB5EEF /* NostrRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NostrRequest.swift; sourceTree = "<group>"; }; 4CEE2AEE2805BE2500AB5EEF /* NostrTimeline.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NostrTimeline.swift; sourceTree = "<group>"; }; + 4CEE2AF0280B216B00AB5EEF /* EventDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventDetailView.swift; sourceTree = "<group>"; }; 4CEE2AF2280B25C500AB5EEF /* ProfilePicView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfilePicView.swift; sourceTree = "<group>"; }; /* End PBXFileReference section */ @@ -113,6 +115,7 @@ 4C75EFA327FA577B0006080F /* PostView.swift */, 4C75EFAC28049CFB0006080F /* PostButton.swift */, 4C75EFB82804A2740006080F /* EventView.swift */, + 4CEE2AF0280B216B00AB5EEF /* EventDetailView.swift */, 4CEE2AF2280B25C500AB5EEF /* ProfilePicView.swift */, ); path = Views; @@ -358,6 +361,7 @@ 4CEE2AED2805B22500AB5EEF /* NostrRequest.swift in Sources */, 4C75EFA427FA577B0006080F /* PostView.swift in Sources */, 4C75EFB528049D790006080F /* Relay.swift in Sources */, + 4CEE2AF1280B216B00AB5EEF /* EventDetailView.swift in Sources */, 4C75EFBB2804A34C0006080F /* ProofOfWork.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/damus/Views/EventDetailView.swift b/damus/Views/EventDetailView.swift @@ -0,0 +1,22 @@ +// +// ThreadView.swift +// damus +// +// Created by William Casarin on 2022-04-16. +// + +import SwiftUI + +struct EventDetailView: View { + let event: NostrEvent + + var body: some View { + Text("EventDetailView") + } +} + +struct EventDetailView_Previews: PreviewProvider { + static var previews: some View { + EventDetailView(event: NostrEvent(content: "Hello", pubkey: "Guy")) + } +}