Skip to content

Instantly share code, notes, and snippets.

View AmrAbedal's full-sized avatar
👨‍💻
try? newThings

Amr AbdelWahab AmrAbedal

👨‍💻
try? newThings
View GitHub Profile
@AmrAbedal
AmrAbedal / Localizable.strings
Last active January 8, 2023 03:03
iOS XIB Localization tips
"Welcome_back"="Welcome back";
"PromoCodeAmount"="You have a promo code for %d %@";
import AuthenticationServices
import RxCocoa
import RxSwift
import UIKit
@available(iOS 13.0, *)
extension ASAuthorizationController: HasDelegate {
public typealias Delegate = ASAuthorizationControllerDelegate
}
class CreatePostCardCoordinator {
private let presentingViewController: UIViewController
lazy var tabBarController: UITabBarController = {
let viewModel = CreatePostCardViewModel.init(coordinator: self)
let tabBarController = CreatePostCardTabBarViewController.init(viewModel: viewModel)
return tabBarController
}()
init(presentingViewController: UIViewController) {
self.presentingViewController = presentingViewController
}
@AmrAbedal
AmrAbedal / AsyncAwaitCombineIntegration.swift
Created September 13, 2022 10:43
Integrating Async Await method in Combine Stream Chain using Future
import UIKit
import Combine
//MARK: - Integrating Async Await method in Combine Stream Chain using Future
struct Resturant: Codable {
let id: String
let name: String
}
//
// main.swift
// TestZipMany
//
// Created by Amr Abdelwahab on 13/09/2022.
//
import Foundation
import Combine