This file contains hidden or 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 | |
import UserNotifications | |
final class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |
private let pushAppLaunchRule = PushAppLaunchRule() | |
var window: UIWindow? | |
func sceneDidBecomeActive(_ scene: UIScene) { |
This file contains hidden or 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 PackageDescription | |
let package = Package( | |
name: "Core3000", | |
platforms: [.iOS(.v14)], | |
products: [ | |
.library( | |
name: "Core", | |
targets: ["Core"] | |
), |
This file contains hidden or 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
1. Apple Guides | |
https://developer.apple.com/documentation/ | |
2. Интернет ресурсы и рассылки: | |
MBLT Diggest – https://digest.mbltdev.ru/digests/226 | |
iOS Good Reads – https://t.me/iosgr | |
https://iosdevweekly.com/ | |
https://www.mikeash.com/ | |
https://nshipster.com/ | |
https://www.natashatherobot.com/ |
This file contains hidden or 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
1. Очень крутая книжка по сетям (стек OSI) – Charles Severance “Introduction to Network: How the Internet works” | |
2. URLCache – https://nshipster.com/nsurlcache/ | |
3. Ресёрч HTTP-кеширования с использованием URLCache https://qnoid.com/2016/04/10/A-primer-in-HTTP-caching-and-its-native-support-by-iOS.html | |
4. Анализ доступности сети: | |
* SimplePing – https://developer.apple.com/library/archive/samplecode/SimplePing/Introduction/Intro.html | |
* https://github.com/dustturtle/RealReachability | |
* https://github.com/ankitthakur/SwiftPing | |
* https://github.com/lmirosevic/GBPing | |
* https://github.com/rwbutler/Connectivity | |
* Баг с 2009 года – https://lists.apple.com/archives/macnetworkprog/2009/May/msg00056.html |
This file contains hidden or 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
func compareVersion(version1: String, version2: String) { | |
let result = version1.compare(version2, options: .numeric) | |
if result == .orderedDescending { | |
print("\(version1) > \(version2)") | |
} else if result == .orderedAscending { | |
print("\(version1) < \(version2)") | |
} else { | |
print("\(version1) == \(version2)") | |
} | |
} |
This file contains hidden or 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
xcrun simctl io booted recordVideo appvideo.mov | |
# to interrupt press Ctrl + C |