Skip to content

Instantly share code, notes, and snippets.

@danurna
danurna / RealmSwift+Extension.swift
Last active September 26, 2017 07:29
Cascade Delete Realm Swift
import Foundation
import Realm
import RealmSwift
public extension Realm {
func cascadeDelete(_ entity: RLMObjectBase) {
guard let entity = entity as? Object else { return }
entity.objectSchema.properties.forEach { property in
@julianshen
julianshen / CircleTransform.java
Last active November 6, 2023 12:47
CircleTransform for Picasso
/*
* Copyright 2014 Julian Shen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software