balance-io / Balance

This is a fork of Tokenary’s wallet to explore Safari iOS extensions more.
https://balance.io
GNU General Public License v3.0
30 stars 6 forks source link

Add a QR Code to Wallet View #22

Closed ricburton closed 2 years ago

ricburton commented 2 years ago

This is a quick first pass at a QR code viewer in the prototype:

iPhone 13 Pro Max Copy 3

We need to add a button on the wallet view:

CleanShot 2022-02-19 at 06 33 29@2x

Note the new address format where the first and last 4 important address characters are BOLD and 100% opaque and the less important characters—including 0x—are at 80% opacity:

CleanShot 2022-02-19 at 06 34 06@2x

The QR code popover square should blur the background of the interface:

CleanShot 2022-02-19 at 06 35 41@2x

The floating X should make the QR code slide up and away. The circle should slide down.

CleanShot 2022-02-19 at 06 34 53@2x

I used this QR Code generator: https://www.qrcodechimp.com

It looks like I can't share the actual QR Code from my account but here are its settings if you want to explore:

CleanShot 2022-02-19 at 06 37 53@2x

Need to establish Swift Colors. Here are the hexes. Eye Colour: #192A36 Stroke Colour: #03C78D

There are lots of Swift QR Code libraries. Finding a beautiful one is important to me. Happy to help explore.

Research

https://medium.com/@dominicfholmes/generating-qr-codes-in-swift-4-b5dacc75727c

https://www.hackingwithswift.com/books/ios-swiftui/generating-and-scaling-up-a-qr-code