Code Monkey home page Code Monkey logo

magnatronus.watch-tips's Introduction

Tip Calculator

alt tag

This project is a working example of creating a Titanium iOS app and an associated Watch App (in Swift). The app is also available on the app store here:

https://itunes.apple.com/us/app/watch-tips/id1205407902?ls=1&mt=8.

The app was built using the Ti SDK and CLI only using Sublime Text as the IDE with a custom plugin for Titanium dev.

Introduction

I attempted to do a similar project over a year ago with Titanium and got all the way to submitting the app to the App Store, but even after successful validation and upload I always got an email back from Apple with a rejection notice (see JIRA here: https://jira.appcelerator.org/browse/TIMOB-23313)

This various issue seemed to finally get resolved in TI SDK 6.0.1.GA so I decided to create another, simple app to see what happened, the result is this simple project.

Running the app

As I have mentioned I used the CLI for all parts of this project and the command used to run the phone and watch app in the simulators is:

ti build -p ios --device-id --log-level info  --launch-watch-app

This allows you to select the phone model (and iOS version if you have more than 1 installed)

Notes

My first submission was rejected due to HIG issues, specifically

  • The Watch Icon I used had a black background so the icon did not look as though it was round on the black aground of the watch.
  • I used custom titles of the dialog views to change the Bill, Tip and Split values of '< calculator'. This is a big no-no as it specifically states that the correct way to close a modal is with the Close button that can be re-named but MUST not include a <.

Note to self - read this first: https://developer.apple.com/watchos/human-interface-guidelines/overview/

Updates

version 1.0.2 of the Watch App is coded to use the Digital Crown to change the values of the Tip percentage and the Split value rather than pop up a seperate screen. It has also been updated to use Ti SDK 6.0.2.GA

Disclaimer

Neither the Titanium project (and especially the Swift code) is supposed to be best practice, it was written to see if the past issue was resolved. But please feel free to take a look and use any of the code.

magnatronus.watch-tips's People

Contributors

magnatronus avatar

Watchers

James Cloos avatar Brenton House avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.