This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
lazy var actionButton: UIButton = UIButton().add(to: view) { btn in | |
// button configuration | |
} | |
instead of: | |
lazy var actionButton: UIButton = { | |
let btn = UIButton() | |
addSubview(btn) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ScrollStackView.swift | |
// iOS-Extensions | |
// | |
// Created by Denis Koryttsev on 07/08/2017. | |
// Copyright © 2017 Denis Koryttsev. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import RealmSwift | |
extension AnyRealmCollection { | |
var asArray: [Element] { | |
return map { $0 } | |
} | |
} | |
final class ExtendedRealmCollection<O: Object>: RealmCollection { |