Swiftpack.co - Package - furiousteam/BLOC-iOS-wallet


Introducing the first open source BLOC Wallet for iOS with a focus on accessibility, security and simplicity. BLOC Wallet makes getting started with BLOC easier than ever.

We have 2 versions of the BLOC wallet for iOS

  • The version in the App Store. Easy to download and install but does not include the mining option.

  • The version on GitHub. This version include the original version available in the app store + the mining option but require a developer account to be installed.

The master branch is the actual version of the app present in the App Store

The mining branch including the original built-in miner for iOS that was not accepted by Apple and has to be taken out of the app. You can still build this app on your iOS device yourself.

Video tutorial

How to install and use the BLOC Wallet for iOS

BLOC Wallet iOS app in details - Download the app store

Fast Payment Processing using the QRCODE feature

Fast Payment Processing using the QRCODE feature

How to mine using the BLOC Wallet for iOS

How to mine using the BLOC Wallet for iOS

How to build the open source BLOC iOS Wallet app with Xcode

How to build the open source BLOC iOS Wallet app with Xcode

Supported Features


  • Create a new wallet
  • Import a wallet (using a private key)
  • Import a wallet (using a QR code)
  • Backup a wallet
  • Restore a wallet
  • Delete a wallet
  • View balance and transactions
  • The restore option works from :
  • iPhone to iPhone
  • Export your private keys


  • Pay and get paid with BLOC QR code
  • Enter the amount to send
  • Enter the optional Payment ID
  • Enter the receipient’s address
  • Select your wallet to use to process this transaction
  • Send BLOC


  • View a complete history of your BLOC transactions


  • Stay connected with the BLOC community

MINING (Not present in the App Store)

  • Mining from your iOS device

Building the app

In order to build the app, make sure you have Cocoapods installed, and run:

pod install --repo-update

This is will generate a BlockChain-Coin.xcworkspace file that must by used instead of the BlockChain-Coin.xcproject

Application architecture

The VIP architecture

The app follows an architecture called VIP (View Interactor Presenter) and is lightweight take on VIPER and follows Clean Code principles. Using this architecture, the flow of data is unidirectonial and every component is fully testable, thanks to protocols.

Every screen in the app in the app is called a Scene. Every scene should be an independant entity, meaning that it should not have a direct dependency with other scenes.

There are 6 components to every scene:

  • The View Controller: the main point of entry for a scene. It is responsible for setting up its subviews and links between the other components. Is responsability is keeped to a strict minimum. Therefore, it should never suffer from the "Massive View Controller" issue.
  • The Models: where all the data objects used by the other components are defined.
  • The Views: all the specific subviews used by the scene. Some views might be common to multiple scenes. In this case, they should be stored in a Common folder.
  • The Interactor: used everytime data has to be fetched or computed. The Interactor receives a Request and sends back a Response to the Presenter. Usually, the Response is the raw data.
  • The Presenter: receives Response objects from the Interactor, and formats it for the View Controller as a View Model. The View Controller should be able to take the View Model and simply display the data without performing any more formatting.
  • The Router: responsible for displaying other screens from the View Controller. This is the main reason why View Controllers do not have dependency on each other.

Folders hierarchy

In order to keep things organized, the project enforces a strict folder hierarchy. The hierarchy in Xcode and in the Finder must remain exactly the same.

Project Name
    | AppDelegate.swift
    | Scenes
        | MyScene
            | Views
                | Subview.swift
            | MySceneModels.swift
            | MySceneVC.swift
            | MySceneRouter.swift
            | MySceneInteractor.swift
            | MyScenePresenter.swift
    | Models
        | MyModel.swift
    | Services
        | API
            | Responses
                | MyResponse.swift
        |Β Mock
    | Workers
        | MyWorker.swift
    | Common
    | Extensions
    | Assets
        | Fonts
        | Assets.xcassets
        | LaunchScreen.storyboard
    | Supporting Files
        | Configurations
            | MyConfiguration.xcconfig
        | Localizable.strings
        | Localizable.stringsdict
        | InfoPlist.strings
        | Info.plist
        | R.generated.swift

No Storyboards or XIBs

Because Storyboards and XIBs tend to slow down Xcode, make it crash and, after all these years, still not suited for team development (unsovable merges), the app should not use any Storyboard or XIB (except for LaunchScreen.storyboard).

Instead, all the layouts are done in code with the help of SnapKit.

Accessing ressources

Accessing ressources like images and localized strings must be done in type-safe way, through R.swift. Once setup, all the added ressources are automatically converted in the R.generated.swift file and accessible via its API.


When possible, images should be added as PDFs to handle future resolutions and in black and white in order to take advantage of tintColor.

Commit style

This repository enforces:

  • The GitHub Flow
  • Semantic versioning
  • A strict and visual style for commits using emojis. While this ease the reading of the commit log, it also forces you to make smaller commits and categorize them appropriately.


Following is a full list of all the emojis that must be append to the commit message:

Branching & Releasing

  • πŸ”€ Merge (feature β†’ develop, PR approved, …)
  • β†ͺ️ Mergeback before PR (develop β†’ feature, …)
  • βͺ Revert
  • ❇️ Initial commit
  • πŸ“† Version bump
  • πŸ“¦ Work on Continuous Integration, package releasing


  • πŸ“£ New feature/user story complete
  • 🚧 Work in progress
  • πŸ› Bugfix
  • πŸ”₯ Critical bugfix, hotfix
  • πŸ‘ Generic improvement
  • 🌐 Localization
  • πŸ’¬ Wording
  • ✏️ Fixing a typo (code, URL, …)
  • πŸ–Ό UI-related (storyboard, images…)
  • πŸ”§ App settings (environments, test accounts, …)
  • ☁️ Webservices")

Testing, Mocking

  • πŸ“ Unit tests, UI tests
  • πŸ‘» Mocks, stubs, templates")


  • πŸ”— Adding dependencies
  • πŸ—‘ Removing dependencies
  • ⬆️ Upgrading dependencies
  • ⬇️ Downgrading dependencies

iOS topics

  • πŸ” Tracking/Analytics work
  • πŸ“₯ Push Notifications work
  • πŸ›‚ Code signing, certificates


  • 🚨 Fixing warnings
  • βœ‚οΈ Refactoring (code-wise)
  • ⚑️ Speed, performance improvements
  • 🚚 Moving files, cleaning project
  • πŸ—‘ Removing files
  • βš™οΈ Changing project settings, build scripts, …
  • πŸ“š Documentation, PAW project, …
  • πŸ’Ž Changes to Sketch file
  • πŸ¦… Swift-specific work (conversion, syntax upgrade)
  • β˜•οΈ Java-specific work
  • πŸ…ΎοΈ Objective-C specific work

Forbidden, ugly things

  • ☒️ Trying stuff, not quite ready
  • ⛔️ Commit that does not compile
  • πŸ’€ Developer needs sleep or caffeine

About BLOC

If this is your first time hearing about BLOC, we recommend starting by visiting the official BLOC.MONEY website and/or the BLOC Wiki



Stars: 0
Help us keep the lights on


Used By

Total: 0