This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AGUploadImageWebServices.swift | |
// BaseProject | |
// | |
// Created by AshvinGudaliya on 27/02/18. | |
// Copyright © 2018 AshvinGudaliya. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
import Foundation | |
import FLAnimatedImage | |
import SDWebImage | |
import Kingfisher | |
/* | |
Add this repo(https://github.com/rs/SDWebImage) to your project | |
*/ | |
extension FLAnimatedImageView { |
NewerOlder