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.
- Host: GitHub
- URL: https://github.com/kosso/swifti
- Owner: kosso
- License: other
- Created: 2019-06-16T14:02:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T10:15:41.000Z (almost 6 years ago)
- Last Synced: 2025-02-28T18:23:11.465Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 1.33 MB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:


------
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