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
// | |
// GenreViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 09.02.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
class GenreViewController: BaseViewController { | |
@IBOutlet weak var mainGenreCollectionView: UICollectionView! | |
var viewModel = GenreViewModel() |
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
// | |
// RandomMusicViewModel.swift | |
// | |
// Created by Vasiliy Savchuk on 2/6/17. | |
// Copyright © 2017 All rights reserved. | |
// | |
class RandomMusicViewModel: ViewModelTitleProtocol, ViewModelProtocol, ViewModelTypeProtocol { | |
var dataSource: Array<JSONDecodable> = Array() | |
var type: CellType = .randomMusicCell |
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
// | |
// GoogleMapViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 11/21/16. | |
// Copyright © 2016 All rights reserved. | |
// | |
import UIKit | |
import GoogleMaps |
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
// | |
// LoginViewModel.swift | |
// | |
// Created by Vasiliy Savchuk on 11/9/16. | |
// Copyright © 2016 All rights reserved. | |
// | |
// Usage this snippet: | |
// let viewModel: LoginViewModel = LoginViewModel() | |
// | |
// @IBAction func signInButtonDidPress(_ sender: Any) { |
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
// | |
// PopUpViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 22.11.16. | |
// Copyright © 2016 All rights reserved. | |
// | |
// Usage this snippet: | |
// @IBAction func yourButtonDidPress(_ sender: Any) { | |
// let popOverVC = UIStoryboard(name: Constants.Storyboard.Map, bundle: nil).instantiateViewController(withIdentifier: Constants.StoryboardID.PopUpViewController) as! PopUpViewController | |
// popOverVC.pointModel = self.curentPoint |
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
// | |
// Alert.swift | |
// | |
// Created by Vasiliy Savchuk on 16.12.16. | |
// Copyright © All rights reserved. | |
// | |
// Usage this snippet: | |
// to call - displayAlert(title: "Oops!", message: "Error", viewController: self) | |
import Foundation |
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
// | |
// UserProfileViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 01.02.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
class UserProfileViewController: UIViewController { | |
@IBOutlet weak var tableView: UITableView! |
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
// | |
// BackendService.swift | |
// | |
// Created by Vasiliy Savchuk on 27.01.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
enum API { | |
static var token: String? | |
static var tokenType: 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
// | |
// ViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 19.01.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
import UIKit | |
import AVFoundation | |
import AVKit |
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
// | |
// ExtensionView.swift | |
// | |
// Created by Vasiliy Savchuk on 2/6/17. | |
// Copyright © 2017 All rights reserved. | |
// | |
// Usage this snippet: | |
// yourImageView.image = view.screenshot | |
import UIKit |
NewerOlder