build from local Dockerfile:
docker build -t TAG .
List:
docker image ls or docker images
/* | |
* | |
* If you're having version problems with cocoapods | |
* | |
* Run this command to see all your cocoapods installed versions | |
* | |
*/ | |
gem list --local | grep cocoapods |
/* | |
* In order to diagnose Rx and see the number of resources your project uses there are a couple | |
* of steps you need to take | |
* | |
* 1) | |
* Add this line of code somewhere in your project, for example in AppDelegate | |
* | |
*/ | |
_ = Observable<Int>.interval(.seconds(1), scheduler: MainScheduler.instance) | |
.subscribe(onNext: { _ in |
extension UIFont { | |
@available(iOS 11.0, *) | |
static func preferredFont(for style: TextStyle, weight: Weight) -> UIFont { | |
let metrics = UIFontMetrics(forTextStyle: style) | |
let desc = UIFontDescriptor.preferredFontDescriptor(withTextStyle: style) | |
let font = UIFont.systemFont(ofSize: desc.pointSize, weight: weight) | |
return metrics.scaledFont(for: font) | |
} |
// | |
// UITextField.swift | |
// MasjidLink | |
// | |
// Created by Sebastian Vidrea on 07/06/2019. | |
// Copyright © 2019 Sebastian Vidrea. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
// | |
// ViewController.swift | |
// MasjidLink | |
// | |
// Created by Sebastian Vidrea on 08/04/2019. | |
// Copyright © 2019 Sebastian Vidrea. All rights reserved. | |
// | |
import UIKit |
extension UIScrollView { | |
func scrollToBottom() { | |
let bottomOffset = CGPoint(x: 0, | |
y: contentSize.height - bounds.size.height + contentInset.bottom) | |
if(bottomOffset.y > 0) { | |
setContentOffset(bottomOffset, animated: true) | |
} | |
} |
extension UIScrollView { | |
func scrollToView(view:UIView, animated: Bool) { | |
if let origin = view.superview { | |
let childStartPoint = origin.convert(view.frame.origin, to: self) | |
self.scrollRectToVisible(CGRect(x: 0.0, | |
y: childStartPoint.y, | |
width: 1.0, | |
height: self.frame.height), | |
animated: animated) |
extension UIScrollView { | |
func scrollToTop(animated: Bool) { | |
let topOffset = CGPoint(x: 0, y: -contentInset.top) | |
setContentOffset(topOffset, animated: animated) | |
} | |
} |