-
Clone the swagger-codegen repo, checkout the branch "2.3.0"
-
mvn clean package -
Create a shell script to make it easier to run your version of swagger-codegen:
/usr/local/bin/swagger-codegen-2.3.0
| import SwiftUI | |
| extension Calendar { | |
| func generateDates( | |
| inside interval: DateInterval, | |
| matching components: DateComponents | |
| ) -> [Date] { | |
| var dates: [Date] = [] | |
| dates.append(interval.start) |
| import Foundation | |
| extension CustomStringConvertible { | |
| var description: String { | |
| var description: String = "\(type(of: self))(" | |
| let selfMirror = Mirror(reflecting: self) | |
| for child in selfMirror.children { | |
| if let propertyName = child.label { |
| // | |
| // UIAccessorizedTextField.swift | |
| // AccessorizedTextField | |
| // | |
| // Created by Damien Laughton on 28/03/2018. | |
| // 2018 Mobilology Limited. No rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |
| #!/usr/bin/env bash | |
| # This script switches between the App Store version of Xcode and the beta | |
| # Install it by copying it to /usr/local/bin/xcode-switch and running 'chmod +x' on it (to make it executable) | |
| # Then run it using 'sudo xcode-switch' | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "xcode-select requires you to run this script as root; 'sudo xcode-switch'" | |
| exit | |
| fi |
| // | |
| // Obfuscator.swift | |
| // | |
| // Created by Dejan Atanasov on 2017-05-31. | |
| // | |
| import Foundation | |
| class Obfuscator: AnyObject { | |
| import Foundation | |
| import UIKit | |
| // Usage Examples | |
| let system12 = Font(.system, size: .standard(.h5)).instance | |
| let robotoThin20 = Font(.installed(.RobotoThin), size: .standard(.h1)).instance | |
| let robotoBlack14 = Font(.installed(.RobotoBlack), size: .standard(.h4)).instance | |
| let helveticaLight13 = Font(.custom("Helvetica-Light"), size: .custom(13.0)).instance | |
| struct Font { |
| //: | |
| //: UserDefaultable.swift | |
| //: | |
| //: Created by Andyy Hope on 18/08/2016. | |
| //: Twitter: @andyyhope | |
| //: Medium: Andyy Hope, https://medium.com/@AndyyHope | |
| import Foundation | |
| // MARK: - Key Namespaceable |
| // | |
| // AppStoryboards.swift | |
| // AppStoryboards | |
| // | |
| // Created by Gurdeep on 15/12/16. | |
| // Copyright © 2016 Gurdeep. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |
This code helps using ObjectMapper with RealmSwift.
RealmSwift uses List<T> collection for "to many" relashionships and RealmOptional<T> for optional primitive types, but ObjectMapper can't map directly to List<T> and RealmOptional<T>.
With this operators you can properly define RealmSwift's relashionships and optional properties and use <- operator to map them.
import Foundation