- Introduction to Functional Programming Johannes Weiß - https://vimeo.com/100786088
- ReactiveCocoa at MobiDevDay Andrew Sardone - https://vimeo.com/65637501
- The Future Of ReactiveCocoa Justin Spahr-Summers - https://www.youtube.com/watch?v=ICNjRS2X8WM
- Enemy of the State Justin Spahr-Summers - https://www.youtube.com/watch?v=7AqXBuJOJkY
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - https://developer.apple.com/videos/play/wwdc2014/229/
- Functioning as a Functionalist Andy Matuschak - https://www.youtube.com/watch?v=rJosPrqBqrA
- Controlling Complexity in Swift Andy Matuschak - https://realm.io/news/andy-matuschak-controlling-complexity/
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
// main queue | |
DispatchQueue.main | |
// high priority global queue | |
DispatchQueue.global(qos: .userInteractive) | |
// low priority global queue | |
DispatchQueue.global(qos: .background) |
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 | |
// MARK: - Base Protocol | |
typealias Result = ((Bool) -> Void) | |
typealias Err = ((Error?) -> Void) | |
protocol Share { | |
func post(image: UIImage?, text: String?, result: Result, error: Err?) | |
} |
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 userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { | |
let userInfo = response.notification.request.content.userInfo | |
// Uygulama calisiyorken (on/arka planda) kullanici bildirime tikladiginda burdan yonlendirilir | |
NotificationCenter.default.post(name: Notification.Name("NotificationTapped"), object: nil, userInfo: userInfo) | |
// user tapped the notification bar when the app is in foreground | |
if(UIApplication.shared.applicationState == .active) { } |
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
static var isDeviceJailbroken: Bool { | |
guard TARGET_IPHONE_SIMULATOR != 1 else { return false } | |
// Check 1 : existence of files that are common for jailbroken devices | |
if FileManager.default.fileExists(atPath: "/Applications/Cydia.app") | |
|| FileManager.default.fileExists(atPath: "/Library/MobileSubstrate/MobileSubstrate.dylib") | |
|| FileManager.default.fileExists(atPath: "/bin/bash") | |
|| FileManager.default.fileExists(atPath: "/usr/sbin/sshd") | |
|| FileManager.default.fileExists(atPath: "/etc/apt") |
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 queue = DispatchQueue.global (qos: .userInteractive) |
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 queue = DispatchQueue(label: "feeQueue", attributes: .concurrent) |
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 queue = DispatchQueue(label: "feeQueue") |
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 appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String | |
versionLabel.text = "Version: " + "\(appVersion!)" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_height="200dp" | |
android:layout_width="200dp"> | |
<item> | |
<shape android:shape="rectangle"> | |
<solid android:color="#edf2f6"/> |
NewerOlder