An open API service indexing awesome lists of open source software.

https://github.com/kosso/swifti

A test Titanium iOS module built with Swift. Just for learning how to build them and use UIViews and custom stuff.. etc.
https://github.com/kosso/swifti

Last synced: 3 months ago
JSON representation

A test Titanium iOS module built with Swift. Just for learning how to build them and use UIViews and custom stuff.. etc.

Awesome Lists containing this project

README

        

# SwifTi

A test Titanium **iOS** module built with **Swift**. Just for learning how to build them and use UIViews and custom stuff.. etc.

This is just a test/example module I'm build as I learn to build Titanium iOS app modules using Swift instead of Objective-C.

It demonstrates how to communicate with the module (and its view) from within the app.

Included for demonstration is a third-party view animation of the old Siri 'waves', using a Swift adaptation of [SCSiriWaveformView](https://github.com/stefanceriu/SCSiriWaveformView). Also, a microphone level monitor has been created in the module using `AVAudioRecorder` and added to attempt to learn how to draw the values provided by the audio level metering.

And other stuff I haven't thought of yet… ;)

Feel free to fork, comment and improve the mess I'm no doubt making here!!

And obviously, CODE STRONG!!

------

Here's some screenshots of the (evolving) example app:

![](screenshot.jpg)

![](screenshot2.jpg)

------

To run the `example/app.js`, you will need to create an iOS app with the following added to the `tiapp.xml` file in the `ios` section :

```

true
true
#333333


UISupportedInterfaceOrientations~iphone

UIInterfaceOrientationPortrait

UISupportedInterfaceOrientations~ipad

UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight

UIRequiresPersistentWiFi

UIPrerenderedIcon

UIStatusBarHidden

UIStatusBarStyle
UIStatusBarStyleLightContent
UIBackgroundModes

audio

NSMicrophoneUsageDescription
For monitoring audio levels and recording



```

.. and obviously (?) you'll need to include the module itself in the `` section too:

```
com.kosso.swifti
```

------

Further discussion can be had in the `#module-development` channel on Ti-Slack [https://ti-slack.slack.com](https://ti-slack.slack.com/)

-----

@Kosso 2019