Dataswyft API Platform: Developers Docs
WebsiteGitHubSlackLogin
  • About Dataswyft
    • Community & Support
  • Learn about Dataswyft Platform
    • Decentralized Data Servers
    • Personal Data Account
      • HMIC Permissions
      • Namespaces
      • Single Sign-On
    • Data Wallet
      • Data Wallet Canvas and Solutions
      • CheckD Data Wallet: Release Notes
    • Dataswyft One
      • Compute Tools
  • Build on Dataswyft Platform
    • Dataswyft One APIs
      • Data API
        • Filtering, Querying & Transforming Data
        • Data Debit
      • File Storage API
      • Computations API
      • Postman Collection
    • Integrating with Data Wallets
    • Getting Started
      • Quick Start
      • Developers Portal
        • Updating and Submitting an Application
        • Deleting an Application
        • Application Statuses
      • Application Example - React
        • 1. Environment Setup
        • 2. Create Main Structure
        • 3. Main Page & Routing
        • 4. User Authentication
        • 6. CRUD Operations
        • 5. Component Pages
  • Deploy
    • Application Review
    • Rating Assurance & Certification
    • Live Application Ratings
  • Knowledge Base
    • Security Practices
    • FAQ
    • Glossary of Terms
  • Dataswyft
Powered by GitBook
On this page
  • Environment Set-up
  • Overview
  • Requirements
  • Installing HAT for iOS library manually
  • Installing HAT for iOS library via Cocoapods

Was this helpful?

  1. Build on Dataswyft Platform
  2. Advanced Topics
  3. User Journeys
  4. Password Management
  5. Guides

iOS/Swift

Last updated 3 years ago

Was this helpful?

Environment Set-up

Overview

In order to build an iOS app that uses HAT APIs, you first need to install the HAT for iOS library from . To do so you can either manually download the library and add it to your project via drag n drop or you can use and install it automagically.

Requirements

  • Xcode 10

  • Swift 4+

  • This guide does not show you how to set up the UI; you have to be able to design a basic UI in order to make everything work

Installing HAT for iOS library manually

To manually install the library you have to download the repo from github and add it to your project via drag n drop.

Installing HAT for iOS library via Cocoapods

Step 1

(If you are using cocoapods already you can skip this step)

Install cocoapods as described

Step 2

(If you are using cocoapods already you can skip this step)

If you are not using cocoapods in your project you have to initialise pods first. To do so you have to run pod init via terminal in the project's root folder. That command will create the necessary files in your project.

Step 3

After initializing cocoapods there will be a new podfile file in your project. Open it and add the HatForIOS pod in your main target like this:

pod 'HAT-API-iOS'

Step 4

Open the terminal again and run pod install in the project's root folder. This will install HatForIOS pod in your project.

Step 5

Remember to always run the .xcworkspace file and not the .xcodeproj file.

github
cocoapods
here