Jasonette / Jasonette/JASONETTE-iOS

Integrate Jasonette (or extend) to mix with Swift 3 and/or 4

Open
#269 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

I'm working with an existing pure Swift 3 iOS app (moving to Swift 4 in the next 6 months or less), and would love to be able to use Jasonette with my existing app. I'd ideally like to be able to create views in Jasonette, that have custom forms served to the app from a web server, and be used offline.

Where I'm getting stuck is:

1. I need my Swift code to have access to the data that's captured in forms I setup in Jasonette views. As an example, a 10 question form in a Jasonette view, and then pass the answer data to the Swift app to mix with already collected data that is written out to a file.
2. I need to be able to segue from a Jasonette view, to a native Swift UIView that's already created, and then back again to the calling Jasonette view (which is part of the larger Swift app).

I'm not sure how to proceed at this point to integrate and/or extend Jasonette with my Swift app. I'm NOT an Objective-C coder (I've tried, and just get lost). I've followed through the [Extending Jasonette](http://docs.jasonette.com/advanced/) or integrating with with Objective-C, but with no luck for my app yet. I've also tried going through guides like the Apple page on [integrating Objective-C with Swift](https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html#//apple_ref/doc/uid/TP40014216-CH4-ID35) apps.

Any suggestions or examples of how to do this with Swift 3 or 4 would be greatly appreciated.

As a side note, I love the concept and implementation of Jasonette. It truly is an amazingly quick way to get a native iOS app going.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Extending Jasonette documentation and the Apple Objective-C/Swift interoperability guide, then compare them with the existing Jasonette iOS integration points. The requested result would need a documented or demonstrated path for exchanging form data and navigating between Jasonette views and existing Swift UIView screens, including offline use.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.