http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015
| import Foundation | |
| import RealmSwift | |
| import Realm | |
| //Forked from: https://gist.github.com/krodak/b47ea81b3ae25ca2f10c27476bed450c | |
| internal protocol CascadingDeletable: RealmSwift.Object { | |
| static var propertiesToCascadeDelete: [String] { get } | |
| } |
| import RealmSwift | |
| import Realm | |
| protocol CascadeDeleting: class { | |
| func delete<Entity>(_ list: List<Entity>, cascading: Bool) | |
| func delete<Entity>(_ results: Results<Entity>, cascading: Bool) | |
| func delete<Entity: Object>(_ entity: Entity, cascading: Bool) | |
| } |
| # The trick is to link the DeviceSupport folder from the beta to the stable version. | |
| # sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) | |
| # Support iOS 15 devices (Xcode 13.0) with Xcode 12.5: | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
| # Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
| # (A similar approach works for older versions too, just change the version number after DeviceSupport) |
| let styles: [UIFont.TextStyle] = [ | |
| // iOS 17 | |
| .extraLargeTitle, .extraLargeTitle2, | |
| // iOS 11 | |
| .largeTitle, | |
| // iOS 9 | |
| .title1, .title2, .title3, .callout, | |
| // iOS 7 | |
| .headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
| ] |
http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015