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
class SearchController: UIViewController, UISearchBarDelegate { | |
@IBOutlet weak var searchBar: UISearchBar! | |
weak var delegate: SearchBarControllerDelegate? | |
var expirationsArray: Array<String>? = [] | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
searchBar.delegate = self |
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 | |
class AppUtils { | |
// Mark: Static class variables | |
static let requestBaseUrlString = "http://123.456.7.8:9999/" | |
// Mark: Get expirations for symbol | |
static func getExpirations(for symbol: String) { |
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 UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var counterLabel: UILabel! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
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 UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
DispatchQueue.global(qos: .userInteractive).async { | |
//Background thread |
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 UIKit | |
import Firebase | |
class VoteController: UIViewController { | |
//MARK: Global Variables | |
var ref: DatabaseReference? | |
var songs = [Song]() | |
override func viewDidLoad() { |
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 UIKit | |
import Firebase | |
class VoteController: UIViewController { | |
//MARK: Global Variables | |
var ref: DatabaseReference? | |
var songs = [Song]() | |
override func viewDidLoad() { |
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 UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
fetchdata() | |
doSomethingAfterDataFetchIsFinished() | |
} |
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 AVFoundation | |
class LoginController: UIViewController { | |
var Player: AVPlayer! | |
var PlayerLayer: AVPlayerLayer! | |
// TITLE LABEL | |
let titleLabel: UILabel = { | |
let title = UILabel() |
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 AVFoundation | |
class LoginController: UIViewController { | |
var Player: AVPlayer! | |
var PlayerLayer: AVPlayerLayer! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
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 UIKit | |
class ViewController: UIViewController { | |
let imageView: UIImageView = { | |
let img = UIImageView() | |
img.translatesAutoresizingMaskIntoConstraints = false | |
img.image = UIImage(named: "bitstampIcon") | |
return img | |
}() |
NewerOlder