damus

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

commit 806c6257dfe95bffe014c33efe5d79998e57f916
parent 18aafb086ef50ed715845f645c3803e2777ec02d
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 12 Apr 2023 20:02:26 -0700

A few more performance tweaks

Diffstat:
Mdamus/ContentView.swift | 11++++++++---
Mdamus/Views/Notifications/NotificationsView.swift | 13++++++++++---
2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -91,14 +91,19 @@ struct ContentView: View { let sub_id = UUID().description @Environment(\.colorScheme) var colorScheme - + + var mystery: some View { + Text("Are you lost?") + .id("what") + } + var PostingTimelineView: some View { VStack { ZStack { TabView(selection: $filter_state) { // This is needed or else there is a bug when switching from the 3rd or 2nd tab to first. no idea why. - Text("") - .id("what") + mystery + contentTimelineView(filter: FilterState.posts.filter) .tag(FilterState.posts) .id(FilterState.posts) diff --git a/damus/Views/Notifications/NotificationsView.swift b/damus/Views/Notifications/NotificationsView.swift @@ -35,12 +35,19 @@ struct NotificationsView: View { @Environment(\.colorScheme) var colorScheme + var mystery: some View { + VStack(spacing: 20) { + Text("Wake up \(Profile.displayName(profile: state.profiles.lookup(id: state.pubkey), pubkey: state.pubkey).display_name)") + Text("You are dreaming...") + } + .id("what") + } + var body: some View { TabView(selection: $filter_state) { + mystery + // This is needed or else there is a bug when switching from the 3rd or 2nd tab to first. no idea why. - Text("") - .id("what") - NotificationTab(NotificationFilterState.all) .tag(NotificationFilterState.all)