Skip to content

Instantly share code, notes, and snippets.

View bohdansasko's full-sized avatar
😛
if you aren't happy, time to become it

Bohdan Sasko bohdansasko

😛
if you aren't happy, time to become it
  • Zwaan
  • Ukraine, Kiev, 404
  • 18:27 (UTC +03:00)
View GitHub Profile
@IhorYachmenov
IhorYachmenov / VPNIKEv2Setup.swift
Created October 13, 2020 07:32
Example how configure VPN profile based on IKEv2 protocol use NEVPNManager with certificate authentication, example was be tested on real devices, server use AlgoVPN.
import Foundation
import NetworkExtension
class VPNIKEv2Setup {
static let shared = VPNIKEv2Setup()
let vpnManager = NEVPNManager.shared()
func initVPNTunnelProviderManager() {
@SergLam
SergLam / UIApplication+Environment.swift
Created January 16, 2020 18:56
Swift - check iOS app environment (debug OR TestFlight build) at runtime
import UIKit
extension UIApplication {
// MARK: Public
func isRunningInTestFlightEnvironment() -> Bool {
if isSimulator() {
return false
} else {
if isAppStoreReceiptSandbox() && !hasEmbeddedMobileProvision() {
@NikKovIos
NikKovIos / NibInstantiableView.h
Last active April 30, 2020 20:40
Objective-C Class for loading view from xib
//
// NibInstantiableView.h
// nik-kov.com
//
// Created by Nik Kov on 23.03.2018.
// Copyright © 2018 Apple. All rights reserved.
//
#import <UIKit/UIKit.h>
@arturlector
arturlector / lifecycle_uiviewcontroller.md
Last active April 26, 2021 09:52
Цикл жизни UIViewController? UIViewController life cycle?

Цикл жизни UIViewController?

https://habrahabr.ru/post/129557/

Ответственность UIViewController

UIViewController согласно шаблону проектирования MVC обеспечивает взаимосвязь
@arturlector
arturlector / patterns.md
Last active October 26, 2018 14:09
Какие паттерны еще знаете?

Какие паттерны еще знаете? Классификация паттернов?

Паттерны порождающие (creational patterns)

    1. Абстрактная фабрика (Abstract factory)
    1. Строитель (Builder)
    1. Фабричнй метод (Fabric method)
    1. Ленивая инициализация (Lazy initialization)