Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.59 KB

README.md

File metadata and controls

74 lines (48 loc) · 1.59 KB

Use Xcode 7.2.1 as 7.3 and later using a different swift version which requires diffrent syntax for the Selector objects

iPhone Software Engineering Assignment 1 2

RMIT Course: COSC2471 Semester 1 2016

Fraud Bank, the iOS app

Basic useful feature list:

  • Users can login
  • Users can manager multiple bank accounts under the same user/pass combo
  • Minimal UI to keep everything lean and bold
  • Raining money in a 3d scene kit with Physics!

Data Structures

  • Repositories
  • Singleton Service
  • Core Data as an "ORM"(well it tries to be one)

Third Party Code

All third party libraries used are licensed under the MIT license, see https://opensource.org/licenses/MIT

Not relevant anymore

~~

All models are hashable, to avoid duplicates as much as possible as they are stored in (Hash) Sets:+1:

i.e they implement the Swift "Hashable" interface. Example

import Foundation

class BankAccount: Hashable {
var id: CUnsignedLong

var balance: Double

var friendlyName: String

//The id of the user that owns this account
var owner: CUnsignedLong

init(id: CUnsignedLong, balance: Double, ownerId: CUnsignedLong, friendName: String) {
self.id = id
self.balance = balance
self.owner = ownerId
self.friendlyName = friendName
}


var hashValue: Int {
get {
return self.id.hashValue
}
}
}


func ==(lhs: BankAccount, rhs: BankAccount) -> Bool {
return lhs.id == rhs.id
}
});