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
// | |
// AutoResizingLabel.swift | |
// | |
// Created by karthikeyan on 3/23/16. | |
// Copyright © 2016 karthikeyan All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// ScreenManager.swift | |
// | |
// Created by karthikeyan gm on 3/14/16. | |
// Copyright © 2016 karthikeyan g. All rights reserved. | |
// | |
import Foundation | |
import UIKit | |
import RxSwift |
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 CoreData | |
final class CoreDataManager: NSObject { | |
//mark:- | |
@objc static let sharedInstance = CoreDataManager() | |
//mark:- Private helper methods | |
private var masterContext: NSManagedObjectContext! |
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 CoreData | |
final class CoreDataManager: NSObject { | |
//mark:- | |
@objc static let sharedInstance = CoreDataManager() | |
//mark:- Private helper methods | |
private var masterContext: NSManagedObjectContext! |
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 CoreData | |
public protocol Managed: class, NSFetchRequestResult { | |
static var entityName: String { get } | |
static var defaultSortDescriptors: [NSSortDescriptor] { get } | |
} | |
public extension Managed { |
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 | |
extension UIStoryboard { | |
enum Storyboard { | |
case main | |
case order | |
var name: 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
@propertyWrapper | |
struct UpperCased { | |
private(set) var value: String = "" | |
init(wrappedValue initialValue: String) { | |
self.wrappedValue = initialValue | |
} | |
var wrappedValue: String { | |
get { value } |
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
private final class TopTitledView<T: UIView>: UIView { | |
private var titleLabel: UILabel! | |
private let contentView: T | |
private let title: String | |
init(contentView: T, title: String) { | |
self.contentView = contentView | |
self.title = title | |
super.init(frame: .zero) |
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
public final class ImageTextTableViewCell: UITableViewCell { | |
private var _imageView: UIImageView! | |
private var _label: UILabel! | |
} | |
private extension ImageTextTableViewCell { | |
func setup() { | |
setupImageView() |
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
final class Node<Key: Hashable, Value> { | |
let key: Key? | |
let value: Value | |
var prev: Node? | |
var next: Node? | |
init(value: Value, key: Key?) { | |
self.value = value | |
self.key = key | |
} |
OlderNewer