This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.layer.masksToBounds = NO; | |
| self.layer.shadowOffset = CGSizeMake(2.5, 5); | |
| self.layer.shadowRadius = 5; | |
| self.layer.shadowOpacity = 0.5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct BidirectionalDictionary<KeyType:Hashable, ValueType:Hashable>{ | |
| var keyToValue = [KeyType:ValueType]() | |
| var valueToKey = [ValueType:KeyType]() | |
| subscript(key:KeyType) -> ValueType? { | |
| get { | |
| return self.keyToValue[key] | |
| } | |
| set { | |
| self.keyToValue[key] = newValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| struct OrderedDictionary<KeyType:Hashable, ValueType:Hashable>{ | |
| var keyArray = [KeyType]() | |
| var keyToValue = [KeyType:ValueType]() | |
| subscript(key:KeyType) -> ValueType? { | |
| get{ | |
| return keyToValue[key] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Table<valueType:Equatable>{ | |
| var table:[[valueType]] = [[valueType]]() | |
| var sectionCount:Int{ | |
| get{ | |
| return table.count | |
| } | |
| } | |
| subscript(section:Int) -> [valueType]?{ |
OlderNewer