Skip to content

Instantly share code, notes, and snippets.

View moderateepheezy's full-sized avatar

Afees Lawal moderateepheezy

View GitHub Profile
@moderateepheezy
moderateepheezy / DeepLinking.swift
Last active May 3, 2020 11:00
Deep linking iOS: A prototype of how you can implement deep linking with Coordinator in an iOS app
typealias Param = [AnyHashable: Any]?
/// We use `CordinatorActionFactory` in AppDelegate to process data
final class CordinatorActionFactory {
/// make a CoordinatorAction from url scheme data gotten from `CordinatorActionFactory`
func make(from urlSchemeHost: String, parameters: [String: Any]) -> CoordinatorAction? {
var params = parameters
params["type"] = urlSchemeHost
@tobitech
tobitech / CustomSegmentedControl.swift
Last active December 6, 2019 21:37
A custom segmented control with modern design. Support for Titles, subtitles with and or only images. Can also be used in Interface builder
//
// CustomSegmentedControl.swift
// CustomSegmentedControl
//
// Created by Oluwatobi Omotayo on 06/09/2019.
// Copyright © 2019 Oluwatobi Omotayo. All rights reserved.
//
import UIKit
import 'package:flutter/widgets.dart';
class OneTimeBuilder extends StatefulWidget {
const OneTimeBuilder({
Key key,
@required this.once,
@required this.child,
}) : assert(once != null),
assert(child != null),
super(key: key);
//
// PaginationNetworkLogic.swift
//
// Created by Daniel Tartaglia on 4/9/17.
// Copyright © 2019 Daniel Tartaglia. MIT License
//
import RxSwift
struct PaginationUISource {