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 | |
extension String { | |
var encode: String { self.replacingOccurrences(of: "\n", with: "@new-line@") } | |
} |
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 os.log | |
@available(iOS 14.0, *) | |
struct MyLogger { | |
let logger = Logger(subsystem: "com.github.furkankaplan", category: "bispy") | |
func custom(_ message: String) { | |
logger.error("\(message)") | |
logger.log("\(message)") | |
logger.fault("\(message)") |
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 os.log | |
let osLog = OSLog(subsystem: "com.github.furkankaplan", category: "bispy") | |
os_log(.fault, log: osLog, "%@", "fault messages".encode) | |
os_log(.info, log: osLog, "%@", "info messages".encode) | |
os_log(.error, log: osLog, "%@", "error messages".encode) | |
os_log(.default, log: osLog, "%@", "default messages".encode) |
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
// | |
// LoginInteractor.swift | |
// reserve-ios | |
// | |
// Created by Furkan Kaplan on 6.06.2020. | |
// Copyright © 2020 Furkan Kaplan. All rights reserved. | |
// | |
import Foundation | |
import Firebase |
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
// | |
// DictionaryExtension.swift | |
// reserve-ios | |
// | |
// Created by Furkan Kaplan on 16.06.2020. | |
// Copyright © 2020 Furkan Kaplan. All rights reserved. | |
// | |
import Foundation |
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
// | |
// NetworkManager.swift | |
// kanban3d-ios | |
// | |
// Created by Furkan Kaplan on 15.12.2019. | |
// Copyright © 2019 Furkan Kaplan. All rights reserved. | |
// | |
import Foundation | |
enum RequestType: String { |
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
// | |
// FirstProtocols.swift | |
// simple-viper-example-ios | |
// | |
// Created by Furkan Kaplan on 3.05.2020. | |
// Copyright © 2020 Furkan Kaplan. All rights reserved. | |
// | |
import Foundation | |
protocol FirstPresenterProtocol { |