-
- Абстрактная фабрика (Abstract factory)
-
- Строитель (Builder)
-
- Фабричнй метод (Fabric method)
-
- Ленивая инициализация (Lazy initialization)
https://habrahabr.ru/post/129557/
UIViewController согласно шаблону проектирования MVC обеспечивает взаимосвязь
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
// | |
// NibInstantiableView.h | |
// nik-kov.com | |
// | |
// Created by Nik Kov on 23.03.2018. | |
// Copyright © 2018 Apple. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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 UIKit | |
extension UIApplication { | |
// MARK: Public | |
func isRunningInTestFlightEnvironment() -> Bool { | |
if isSimulator() { | |
return false | |
} else { | |
if isAppStoreReceiptSandbox() && !hasEmbeddedMobileProvision() { |
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 NetworkExtension | |
class VPNIKEv2Setup { | |
static let shared = VPNIKEv2Setup() | |
let vpnManager = NEVPNManager.shared() | |
func initVPNTunnelProviderManager() { |