Skip to content

Instantly share code, notes, and snippets.

@chauchinyiu
chauchinyiu / SwiftUIContainerVIew.swift
Created September 30, 2019 20:18
Container View Concept implemented in SwiftUI
//
// ContentView.swift
// Animation
//
// Created by Chinyiu Chau on 30.09.19.
// Copyright © 2019 Chinyiu Chau. All rights reserved.
//
import SwiftUI
@chauchinyiu
chauchinyiu / mvvm.swift
Last active July 10, 2019 20:24
little MVVM example
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class MyViewController : UIViewController {
let label = UILabel()
let button = UIButton(type: .roundedRect)
let viewModel = MyViewModel()