Skip to content

Instantly share code, notes, and snippets.

View alessioarsuffi's full-sized avatar

Alessio Arsuffi alessioarsuffi

  • Software Engineer @ovolab
  • Turin, Italy 🇮🇹
  • 06:07 (UTC +01:00)
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 <[email protected]>
import UIKit
import RealmSwift
import ObjectMapper
import SwiftyJSON
class ArrayTransform<T:RealmSwift.Object where T:Mappable> : TransformType {
typealias Object = List<T>