在github上面发现的一个swift开源项目,里面有各种项目,上github的地址https://github.com/carlosbtn/Swift
Reusable Swift codeThis 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.
AudienceAs 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.
FeaturesThe 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 StartedRunning in Xcode 8.0 and iOS 10.0
UsageIndividuals are welcome to use the code with commercial and open-source projects.
Branchesmaster - 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