Skip to content

Instantly share code, notes, and snippets.

View ValCanBuild's full-sized avatar

Valentin Hinov ValCanBuild

View GitHub Profile
// DisposeBagProvider.swift
import RxSwift
import UIKit
/*
// Just make a class conform to it like this:
class MyClass : DisposeBagProvider {
}
// And then just use that "disposeBag" variable
@ValCanBuild
ValCanBuild / drawer_layout_preview.xml
Created September 10, 2015 09:35
Android preview DrawerLayout NavigationView
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">