Skip to content

Instantly share code, notes, and snippets.

let configuration:ActivityConfiguration = ActivityConfiguration(indicatorColor: UIColor.orange, indicatorColorWithMessage: UIColor.red, backgroundColor: UIColor.green, messageTextColor: UIColor.white, indicatorBackGroundColor: UIColor.black)
self.showActivityIndicator(isHidden: false, message: "With great power comes great responsibility",configuration: configuration)
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.hideActivityIndicator()
self.showActivityIndicator(configuration: configuration)
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.hideActivityIndicator()
}
}
import DemoActivityIndicator
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.showActivityIndicator()
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.hideActivityIndicator()
self.showActivityIndicator(isHidden: false, message: "With great power comes great responsibility")
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
@mihirpmehta
mihirpmehta / Swipe.swift
Last active January 17, 2019 10:37
Sample Gist
if let swipeActionView: UIView = cell.getActionView() {
if cell.swipeView != nil {
cell.swipeView?.sendSubviewToBack(swipeActionView)
} else {
cell.sendSubviewToBack(swipeActionView)
}
}
This file has been truncated, but you can view the full file.
mihirmehta:iOS mihir$ ./build_ios.sh
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.25")
-- Building a non-boost version of Assimp.
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
-- package 'zzip-zlib-config' not found
-- Could not locate ZLIB
-- compiling zlib from souces