This file contains 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 UIKit | |
struct ViewStyle<T> { | |
let style: (T) -> Void | |
} | |
let filled = ViewStyle<UIButton> { | |
$0.setTitleColor(.white, for: .normal) | |
$0.backgroundColor = .red |
This file contains 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
var shouldLogTextAnalyzer = false | |
if ProcessInfo.processInfo.environment["text_analyzer_log"] == "verbose" { | |
shouldLogTextAnalyzer = true | |
} | |
if shouldLogTextAnalyzer { | |
/// Actual logger code | |
} |
This file contains 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 UIKit | |
public extension UICollectionView { | |
/** | |
Register nibs faster by passing the type - if for some reason the `identifier` is different then it can be passed | |
- Parameter type: UICollectionView.Type | |
- Parameter identifier: String? | |
*/ |
This file contains 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
// | |
// UserDefaultsManager.swift | |
// Www.ADKATech.com | |
// | |
// Created by AmrAngry on 7/30/19. | |
// Modifyed by AmrAngry on 5/5/20. | |
// Copyright © 2019 Www.ADKATech.com. All rights reserved. | |
// Generic use original mestion by (FB)محمود زكى and hamada147(Github) | |
import Foundation |
OlderNewer