ephemeraHQ / xmtp-inbox-ios

ARCHIVED: See the README for info about an alternative iOS app you can try.
4 stars 0 forks source link

Add ENS name and image view to conversations #24

Closed elisealix22 closed 1 year ago

elisealix22 commented 1 year ago

This PR adds the ability to query Infura for ENS information and display it for each conversation in the list. I added a README with steps to configure Infura instead of committing an Infura url directly. Also in order to accomplish this, it adds three new libraries:

  1. web3.swift to be able to resolve an ENS name from an address. This is already used by our SDK and I think we'll actually be able to remove it once ENSKit adds name resolution to their library. I opened up a feature request in ENSKit here.
  2. ENSKit to be able to resolve ENS data from an ENS name. We use this to grab the avatar currently.
  3. IGIdenticon to be able to show a stable, unique image for each peer address that doesn't have an ENS avatar.

Relates to #18

Light mode Dark mode
Simulator Screen Shot - iPhone 14 - 2023-01-16 at 16 57 53 Simulator Screen Shot - iPhone 14 - 2023-01-16 at 16 58 00