Learning Swift. Reusable apps code.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
AVFoundationQRcode Swift 4. Xcode 9 Jan 21, 2018
Airdrop Swift 4. Xcode 9 Jan 21, 2018
AlertController Swift 4. Xcode 9 Jan 21, 2018
AnimationWithCollisionQuartzCore Swift 4. Xcode 9 Jan 21, 2018
Animations-Gestures Add qinzhe long gesture filter Feb 17, 2018
BasicAgenda Swift 4. Xcode 9 Jan 21, 2018
Calendar Swift 4. Xcode 9 Jan 21, 2018
ChatPeerToPeer Swift 4. Xcode 9 Jan 21, 2018
CheckConnectivity Swift 4. Xcode 9 Jan 21, 2018
Classes-Structures.playground Swift 4. Xcode 9 Jan 21, 2018
CollectionView Swift 4. Xcode 9 Jan 21, 2018
CoreAnimationSample1 Swift 4. Xcode 9 Jan 21, 2018
CoreAnimationSample2 Swift 4. Xcode 9 Jan 21, 2018
CoreAnimationSample3 Swift 4. Xcode 9 Jan 21, 2018
CoreAnimationSample4 Swift 4. Xcode 9 Jan 21, 2018
CoreDataSample1 Swift 4. Xcode 9 Jan 21, 2018
CoreDataSample2 Swift 4. Xcode 9 Jan 21, 2018
CoreDataWithTableView Swift 4. Xcode 9 Jan 21, 2018
CoreImage sample Swift 4. Xcode 9 Jan 21, 2018
CoreImageCIDetector Swift 4. Xcode 9 Jan 21, 2018
CoreLocation Swift 4. Xcode 9 Jan 21, 2018
CustomKeyboard Swift 4. Xcode 9 Jan 21, 2018
DateUTCtoLocalTime Swift 4. Xcode 9 Jan 21, 2018
DelegateWithNavigator Swift 4. Xcode 9 Jan 21, 2018
EventKitUI Swift 4. Xcode 9 Jan 21, 2018
GestureDoubleTab reset Jan 21, 2018
GestureDoubleTap Swift 4. Xcode 9 Jan 21, 2018
GestureLongPress Swift 4. Xcode 9 Jan 21, 2018
GesturePinch Swift 4. Xcode 9 Jan 21, 2018
GestureRotate Swift 4. Xcode 9 Jan 21, 2018
GestureSwipe Swift 4. Xcode 9 Jan 21, 2018
Gestures Swift 4. Xcode 9 Jan 21, 2018
GesturesInterfaceBuilder Swift 4. Xcode 9 Jan 21, 2018
HideKeyboard Swift 4. Xcode 9 Jan 21, 2018
JSONParse Swift 4. Xcode 9 Jan 21, 2018
MapKit iPad Swift 4. Xcode 9 Jan 21, 2018
MasterDetailiPad Swift 4. Xcode 9 Jan 21, 2018
MediaPlayerFrameworkVideoSample Swift 4. Xcode 9 Jan 21, 2018
MultiTask Swift 4. Xcode 9 Jan 21, 2018
NSBlockOperation Swift 4. Xcode 9 Jan 21, 2018
NSFileManager Swift 4. Xcode 9 Jan 21, 2018
NSNotification Swift 4. Xcode 9 Jan 21, 2018
NSURLSession Swift 4. Xcode 9 Jan 21, 2018
NSURLSessionDownloadDelegate Swift 4. Xcode 9 Jan 21, 2018
NSUserDefaults Swift 4. Xcode 9 Jan 21, 2018
NavigationController Swift 4. Xcode 9 Jan 21, 2018
PagedBasedApp Swift 4. Xcode 9 Jan 21, 2018
Protocol-Delegate Swift 4. Xcode 9 Jan 21, 2018
SQLite Swift 4. Xcode 9 Jan 21, 2018
Sample.playground Swift 4. Xcode 9 Jan 21, 2018
SegueWithpresentViewController Swift 4. Xcode 9 Jan 21, 2018
SeguesCustom Swift 4. Xcode 9 Jan 21, 2018
Show Local IP Swift 4. Xcode 9 Jan 21, 2018
SocialFramework Swift 4. Xcode 9 Jan 21, 2018
SocialFrameworkTwitter Swift 4. Xcode 9 Jan 21, 2018
SpriteKit Game Swift 4. Xcode 9 Jan 21, 2018
SwiftLoginScreen Swift 4. Xcode 9 Jan 21, 2018
TabBarController Swift 4. Xcode 9 Jan 21, 2018
TableView Swift 4. Xcode 9 Jan 21, 2018
TableViewWithPropertyList Swift 4. Xcode 9 Jan 21, 2018
UIImagePickerControllerCamera Swift 4. Xcode 9 Jan 21, 2018
UIImagePickerControllerCameraEditImage Swift 4. Xcode 9 Jan 21, 2018
UILocalNotification Swift 4. Xcode 9 Jan 21, 2018
UIPickerViewTest Swift 4. Xcode 9 Jan 21, 2018
XIBwithStoryboard Swift 4. Xcode 9 Jan 21, 2018
XML Swift 4. Xcode 9 Jan 21, 2018
XMLAppStore Swift 4. Xcode 9 Jan 21, 2018
iCloud Swift 4. Xcode 9 Jan 21, 2018
LICENSE.md Update LICENSE.md Jan 22, 2018
README.md Update README.md Jan 24, 2018

README.md

Reusable Swift code

This project provides some examples in Swift 4 for iOS, 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)
  • 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 9 and iOS 11

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!