Skip to content

Instantly share code, notes, and snippets.

View alessioarsuffi's full-sized avatar
👨‍💻
Coding Swift

Alessio Arsuffi alessioarsuffi

👨‍💻
Coding Swift
  • Fincons Group S.p.A.
  • Italy
View GitHub Profile
@Jerrot
Jerrot / ArrayTransform.swift
Last active March 17, 2024 13:10
Transform arrays with ObjectMapper to Realm's List type
// Based on Swift 1.2, ObjectMapper 0.15, RealmSwift 0.94.1
// Author: Timo Wälisch <timo@waelisch.de>
import UIKit
import RealmSwift
import ObjectMapper
import SwiftyJSON
class ArrayTransform<T:RealmSwift.Object where T:Mappable> : TransformType {
typealias Object = List<T>