Skip to content

Instantly share code, notes, and snippets.

View borisdipner's full-sized avatar
🚀
Up Up Up

B Ꮎ Ꮢ I S⠀D I P N Ξ Ꮢ borisdipner

🚀
Up Up Up
View GitHub Profile
import Foundation
fileprivate let userDefaults = UserDefaults.main
fileprivate let userDefaultsDomain = Bundle.main.bundleIdentifier ?? ""
fileprivate extension String {
var appendingAppDomain: String {
"\(userDefaultsDomain).\(self)"
}
}
//
// CircleView.swift
// ProjectX
//
// Created by Boris Dipner on 01.01.2021.
// Copyright © 2021 Boris Dipner. All rights reserved.
//
import UIKit
class TagsLayout: UICollectionViewFlowLayout {
required override init() {super.init(); common()}
required init?(coder aDecoder: NSCoder) {super.init(coder: aDecoder); common()}
private func common() {
estimatedItemSize = UICollectionViewFlowLayout.automaticSize
minimumLineSpacing = 10
minimumInteritemSpacing = 10
}