Skip to content

Instantly share code, notes, and snippets.

View mikengyn's full-sized avatar

Mike Nguyen mikengyn

  • https://miken.design
  • Toronto
View GitHub Profile
let a: Double? = 1.0
let b: Double? = 2.0
let c: Double? = 3.0
let d: Double? = 4.0
let e: Double? = 5.0
let f: Double? = 6.0
let g: Double? = 7.0
extension Optional {
func `or`(_ value : Wrapped?) -> Optional {
@EricShapiro
EricShapiro / Avoid Storyboards
Last active February 2, 2019 16:44
Reasons to create UI in code rather than storyboard
Reasons to create UIs in code rather than Storyboards:
Merge conflicts
Easier to diff revisions and see changes in code
More flexibility to move UI elements on iPad vs iPhone,
portrait vs landscape
Easier theme support
@AshvinGudaliya
AshvinGudaliya / AGUploadImageWebServices.swift
Last active January 5, 2019 09:56
Multipart file/Images upload with parameters in Swift
//
// AGUploadImageWebServices.swift
// BaseProject
//
// Created by AshvinGudaliya on 27/02/18.
// Copyright © 2018 AshvinGudaliya. All rights reserved.
//
import UIKit
@hilen
hilen / FLAnimatedImageView+SDWebImage.swift
Last active December 4, 2018 18:37
FLAnimatedImageView with SDWebImage
```
import Foundation
import FLAnimatedImage
import SDWebImage
import Kingfisher
/*
Add this repo(https://github.com/rs/SDWebImage) to your project
*/
extension FLAnimatedImageView {