Reusable apps code. Written in Swift
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 686 commits ahead, 6 commits behind btrn:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AVFoundationQRcode
Airdrop
AlertController
AnimationWithCollisionQuartzCore
Animations-Gestures
BasicAgenda
Calendar
ChatPeerToPeer
CheckConnectivity
Classes-Structures.playground
CollectionView
CoreAnimationSample1
CoreAnimationSample2
CoreAnimationSample3
CoreAnimationSample4
CoreDataSample1
CoreDataSample2
CoreDataWithTableView
CoreImage sample
CoreImageCIDetector
CoreLocation
CustomKeyboard
DelegateWithNavigator
EventKitUI
GestureDoubleTap
GestureLongPress
GesturePinch
GestureRotate
GestureSwipe
Gestures
GesturesInterfaceBuilder
HideKeyboard
JSONParse
MapKit iPad
MasterDetailiPad
MediaPlayerFrameworkVideoSample
MultiTask
NSBlockOperation
NSFileManager
NSNotification
NSURLSession
NSURLSessionDownloadDelegate
NSUserDefaults
NavigationController
PagedBasedApp
Protocol-Delegate
SQLite
Sample.playground
SegueWithpresentViewController
SeguesCustom
Show Local IP
Show Remote IP
SocialFramework
SocialFrameworkTwitter
SpriteKit Game
SwiftLoginScreen
TabBarController
TableView
TableViewWithPropertyList
UIImagePickerControllerCamera
UIImagePickerControllerCameraEditImage
UILocalNotification
XIBwithStoryboard
XML
XMLAppStore
iAdFramework
iCloud
.gitignore
LICENSE.md
README.md

README.md

Reusable Swift code

This project provides some examples in Swift for iOS. With Swift now officially released, its general syntax should be familiar enough for most programmers to understand.

Audience

As a developer, you should already be familiar with these pieces of code. This code is Open Source. It's Reusable. Use it in your apps.

Features

The project features code-level examples for the following items:

  • Classes and Structures
  • Protocols and delegates
  • ActionSheet
  • AirDrop
  • AlertViewController
  • AVFoundation (QRCode)
  • QuartzCore (Animation with collision)
  • Calendar
  • Chat Peer to Peer
  • Check Connectivity
  • CollectionView
  • CoreAnimation (some examples)
  • CoreData (some examples)
  • CoreImage (CI Detector)
  • CoreLocation
  • DelegateWithNavigator
  • EventKitUI
  • Gesture (DoubleTap, Long Press, Pinch, Rotate, Swipe)
  • HideKeyboard
  • JSON Parse
  • MapKit
  • MediaPlayer
  • NSBlockOperation
  • NSFileManager
  • NSNotification
  • NSURLSession
  • NSUserDefault
  • SQLite
  • Segues (normal and custom segues)
  • Show Local IP
  • Show Remote IP
  • SocialFramework (Twitter and Facebook)
  • SpriteKit basic sample
  • SwiftLoginScreen (working with php webservice and JSON)
  • TabBarController
  • TableView
  • TableView with Property List
  • UIImagePickerControllerCamera (photo and video)
  • UILocalNotification
  • XIB working with Storyboard
  • XML (get data from XML)
  • XML (get data from AppStore)
  • iAdFramework (banner samples for your app)
  • iCloud

I plan to write further additional examples and all developers are welcome to follow the project through Github. As a collaborative open-source effort, I also welcome feedback and contribution from others.

Getting Started

Running in Xcode 7.2 and iOS 9.2

Usage

Individuals are welcome to use the code with commercial and open-source projects.

Branches

master - The production branch. Clone or fork this repository for the latest copy develop - The active development branch. Pull requests should be directed to this branch

License

The MIT License (MIT)

Contributing

We'd love to see your ideas for improving this repo! The best way to contribute is by submitting a pull request. We'll do our best to respond to your patch as soon as possible. You can also submit a new GitHub issue if you find bugs. :octocat:

Please make sure to follow our general coding style and add test coverage for new features!

Questions

Have a question? Feel free to contact me on Twitter or in my website.