-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions/comments but overall looks good!
guard let url = URL(string: privacyUrl) else { | ||
return | ||
} | ||
UIImpactFeedbackGenerator(style: .heavy).impactOccurred() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be nice to maybe extract a HapticButton
component since we're doing this in a few places? Maybe something like:
struct HapticButton<Content: View>: View {
var action: () -> Void
@ViewBuilder var label: () -> Content
var body: some View {
Button(action: {
UIImpactFeedbackGenerator(style: .heavy).impactOccurred()
action()
}) {
label()
}
}
}
Lemme know if you think that's overkill.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added and migrated most views over to it! Brilliant idea.
xmtp-inbox-ios/Views/HomeView.swift
Outdated
EnsImageView(imageSize: 40.0, peerAddress: client.address) | ||
}) | ||
.navigationBarItems(leading: EnsImageView(imageSize: 40.0, peerAddress: client.address) | ||
.onTapGesture { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a button instead of an onTapGesture
? I think it'll work better with VoiceOver in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ended up using the new HapticButton
😁
This PR updates our "Account" view to a sheet and updates the designs to closer match Figma. I made the privacy URL link to
https://xmtp.org/privacy
and the support url link tohttps://github.com/xmtp-labs/xmtp-inbox-ios/issues
.I also migrated our fetch/stream messages logic into the
MessageListView
to match how we are fetching/streaming in theConversationListView
, but I can revert if you're not a fan!Relates to #13