CoreDataStructures
Overview
CoreDataStructures is library of fundamental data structures written in Swift 5, therefore xcode 10.0+ is required to build this project. Actual components can be found in CoreDataStructures/CoreDataStructures/Classes/ directory.
Usage
import UIKit
import CoreDataStructures
class WelcomeViewController: UIViewController {
var xStack: Stack<Double> = Stack<Double>()
var xBST: BinarySearchTree<Int> = BinarySearchTree<Int>()
var xQueue: Queue<Float> = Queue<Float>()
var xLinkedList: LinkedList<Double> = LinkedList<Double>()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
- iOS 12.0
- Swift 5
Installation
CoreDataStructures is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CoreDataStructures'
Author
Michael Cordero, [email protected]
License
CoreDataStructures is available under the MIT license. See the LICENSE file for more info.