Huge refactor to add better structure to the project. Separating features with their associated view and model structure. This should be better organization and will allow us to improve the overall architecture in the future. I forsee many more improvements that can follow this change. e.g. MVVM Arch As well as cleaning up duplicate, unused, functionality. Many files have global functions that can also be moved or be renamed. damus/ ├── Features/ │ ├── <Feature>/ │ │ ├── Views/ │ │ └── Models/ ├── Shared/ │ ├── Components/ │ ├── Media/ │ ├── Buttons/ │ ├── Extensions/ │ ├── Empty Views/ │ ├── ErrorHandling/ │ ├── Modifiers/ │ └── Utilities/ ├── Core/ │ ├── Nostr/ │ ├── NIPs/ │ ├── DIPs/ │ ├── Types/ │ ├── Networking/ │ └── Storage/ Signed-off-by: ericholguin <ericholguin@apache.org>
25 lines
495 B
Swift
25 lines
495 B
Swift
//
|
|
// RepostView.swift
|
|
// damus
|
|
//
|
|
// Created by Terry Yiu on 1/22/23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct RepostView: View {
|
|
let damus_state: DamusState
|
|
let repost: NostrEvent
|
|
|
|
var body: some View {
|
|
FollowUserView(target: .pubkey(repost.pubkey), damus_state: damus_state)
|
|
}
|
|
}
|
|
|
|
struct RepostView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
RepostView(damus_state: test_damus_state, repost: NostrEvent(content: "", keypair: test_keypair)!)
|
|
}
|
|
}
|
|
|