Go to file
Francisco Gindre 99dc951c65 Step 3: Importing a viewing Key
Update Readme
2021-02-19 20:56:35 -03:00
accept-zcash-poc Step 3: Importing a viewing Key 2021-02-19 20:56:35 -03:00
accept-zcash-poc.xcodeproj Step 3: Importing a viewing Key 2021-02-19 20:56:35 -03:00
accept-zcash-poc.xcworkspace Integrate Cocoapods and Zcash SDK 2021-02-19 10:50:38 -03:00
.gitignore add gitignore 2021-02-19 10:12:34 -03:00
LICENSE Initial commit 2021-02-19 10:05:52 -03:00
Podfile Integrate Cocoapods and Zcash SDK 2021-02-19 10:50:38 -03:00
Podfile.lock Integrate Cocoapods and Zcash SDK 2021-02-19 10:50:38 -03:00
README.md Step 3: Importing a viewing Key 2021-02-19 20:56:35 -03:00

README.md

we-accept-zcash-ios

A Proof-of-Concept on how to build a Small iOS App that lets you accept Zcash as payment

This project is a part of the Code With Me Session for Hello Decentralization 2021.

Tag: step-0

Create an Xcode project for the app accept-zcash-pos using SwiftUI

Tag: step-1-integrate-sdk

In this step we are going to integrate the ZcashLightClientKit SDK into the project using Cocoapods.

Follow installation instructions in ZcashLightClientKit home page: https://github.com/zcash/ZcashLightClientKit

Once you have the default project building successfully.

Let's try to see if this all works

On ContentView.swift, import ZcashLightClientKit and add a text saying hello to the corresponding Zcash network.


 import ZcashLightClientKit
 struct ContentView: View {
     var body: some View {
        
        Text("Hello, Zcash \(ZcashSDK.isMainnet ? "MainNet" : "TestNet")")
             .padding()
     }
 }

Tag: step-2-the-look

We are going to import quite a few perks from the ECC Wallet. The "UI Elements" folder contains several UI components we use on our app.

Tag: step-3-import-viewing-key-scaffold

Let's make a scaffold for our first task: Importing a viewing key

We added he "Utils" folder has some tricks we learned along the way to make swift ui more usable. Like keyboard avoidance support.

We renamed the ContentView to ImportViewingKey and added the text field and a nice Zcash Logo!