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
func printDate(string: String) { | |
let date = Date() | |
let formatter = DateFormatter() | |
formatter.dateFormat = "HH:mm:ss.SSSS" | |
print(string + formatter.string(from: date)) | |
} |
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
let monitor = NWPathMonitor(requiredInterfaceType: .wifi) | |
monitor.pathUpdateHandler = { path in | |
if path.usesInterfaceType(.wifi) { | |
print("WIFI") | |
} else { | |
print("NO WIFI") | |
} | |
} | |
monitor.start(queue: .main) |
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
//list cocoapods | |
//uninstall all cocoapods | |
gem list --local | grep cocoapods | awk '{print $1}' | xargs sudo gem uninstall | |
//install homebrew | |
https://brew.sh/index_ru | |
//install cocoapods | |
https://formulae.brew.sh/formula/cocoapods |
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
<key>ITSAppUsesNonExemptEncryption</key> | |
<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
if #available(iOS 13.0, *) { | |
window?.overrideUserInterfaceStyle = .light | |
} |
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
fileprivate func requestReview() { | |
if #available(iOS 10.3, *) { | |
//let isShow = CONFIG_MANAGER.getBool(.ifNeedRequestReview) | |
//if isShow == true { | |
if let scene = UIApplication.shared.connectedScenes.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene { | |
SKStoreReviewController.requestReview(in: scene) | |
} | |
//} | |
} | |
} |
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
# Xcode | |
# | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 |
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
pod deintegrate | |
pod cache clean --all | |
pod install | |
rm Podfile | |
Если вы пытаетесь переустановить только его, попробуйте только pod deintegrate, не трогая файл модуля и кеш. За ним следует pod install. Если это не сработает, используйте все три приведенные выше команды и начните с начала. | |
Возможно, вам придется установить pod deintegrate и pod clean, если вы еще этого не сделали. Для этого запустите sudo gem install cocoapods-deintegrate cocoapods-clean. |
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
//add to info.plist - "Privacy - Tracking Usage Description" | |
// "Allow tracking now to stop seeing irrelevant ads. We never rent or sell your data." | |
//pod 'FBAudienceNetwork' | |
import FBAudienceNetwork | |
import AppTrackingTransparency | |
fileprivate func requestTrackingPermission(completion: @escaping (() -> ())) { | |
AnalyticsManager.logEvent(type: .requestTrackingPermission, parameters: ["ios": UIDevice.current.systemVersion ]) |
OlderNewer