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
enum FeatureFlag: String, CaseIterable { | |
case featureOne | |
} | |
extension FeatureFlag { | |
var isEnabled: Bool { | |
switch self { | |
case .featureOne: | |
if isRunningInAppStore() { | |
return false | |
} |
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 protocol ReusableView: class { | |
static var defaultReuseIdentifier: String { get } | |
} | |
extension ReusableView where Self: UIView { | |
public static var defaultReuseIdentifier: String { | |
return String(describing: self) | |
} |