Art Con 10.7 · Xcode and the Data API

Document created by Brian Hamm on Sep 13, 2018Last modified by Brian Hamm on Mar 16, 2019
Version 104Show Document
  • View in full screen mode

Xcode · Swift · CloudKit · CoreData · Amazon S3 · Firebase · Data API

 

Features

  • On- and off-line use

  • Artist, Volunteer, and Band data (hundreds of record objects) is fetched on first launch and persisted to CoreData. This takes 3-4 seconds.

  • Record updates are fetched in `viewDidLoad`, on a background thread. On completion, `NSFetchedResultsController` animates the UI for inserts, deletes, and changes.

  • Record updates may also be configured to fire silent, `content-available` notifications, using Firebase. Silent fetches occur even on devices that are locked.

  • Visible notifications can be configured with a payload targeting a record object or ViewController (ie. can send a user anywhere in the app).

  • Async image loading (Amazon S3) and image caching (Kingfisher).
  • First-class, native iOS app experience using FileMaker production data. Not a FIAS app. Not a JS/CSS "wrapper". Not LiveCode, Xojo, Electron, Mandix...

  • UIKit + Apple Frameworks. TableViews and CollectionViews with vertical/horizontal scroll, swipe actions, embedded search controllers, re/sort in place, action sheets...

  • Scroll hundreds/thousands of record objects with related data, without dropping frames.

 

My Art Con app has about 1,200 users, and the Data API has proven itself responsive and reliable. Early versions of the Art Con app (pre- Data API) required exporting data from FileMaker (.tab) and importing to CloudKit. I had that process highly automated, so it wasn't a huge deal to export/import. But it's not really ideal moving perfectly good data someplace else just to drive an iOS app, now is it? Having a Data API means I won't have to do that anymore.

 

As far as building Data API calls in Xcode, I wrote a service class/wrapper to make that lots easier. Feel free to use it in your Swift projects!

GitHub - starsite/SwiftFM: A service class for Swift 4.2 to work with the FileMaker Data API

 

Art Con is available at the App Store (iOS 11+). Download it here: https://itunes.apple.com/us/app/art-con/id1174686520

 

ac106.png

7 people found this helpful

Attachments

    Outcomes