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
## | |
## Makefile | |
## | |
## Licensed under GNU GPL v3 | |
## Contributors: | |
## - Garuda1 <garuda1@protonmail.com> | |
## | |
.PHONY : all clean fclean re install uninstall reinstall |
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 | |
// MyRxSwift | |
// | |
// Created by admin on 2020/12/6. | |
// | |
import UIKit | |
import RxSwift | |
import RxCocoa |
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 MVVMViewController: UIViewController { | |
@IBOutlet weak var firstNameLabel: UILabel! | |
@IBOutlet weak var lastNameLabel: UILabel! | |
@IBOutlet weak var addressLabel: UILabel! | |
@IBOutlet weak var cityLabel: UILabel! | |
@IBOutlet weak var stateLabel: UILabel! | |
@IBOutlet weak var zipLabel: UILabel! | |
private var viewModel = MyViewModel() | |
private var disposeBag = DisposeBag() | |
func setupSubscriptions() { |
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 | |
struct CustomData { | |
var title: String | |
var url: String | |
var backgroundImage: UIImage | |
} | |
class ViewController: UIViewController { | |
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 | |
struct Recipe { | |
let name: String | |
let thumbnails: String | |
let prepTime: String | |
} | |
extension Recipe { | |
static func createRecipes() -> [Recipe] { |
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 RecipesTableViewController: UITableViewController { | |
var recipes = Recipe.createRecipes() | |
let identifier: String = "tableCell" | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
setupUI() |
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
// | |
// DetailViewController.swift | |
// Swift-TableView-Example | |
// | |
// Created by Bilal ARSLAN on 12/10/14. | |
// Copyright (c) 2014 Bilal ARSLAN. All rights reserved. | |
// | |
import Foundation | |
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 UIKit | |
class MoreViewController: UIViewController { | |
@IBOutlet var webView: UIWebView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
setupUI() |
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, UITableViewDelegate, UITableViewDataSource { | |
var ctrlnames: [String]? | |
var tableView: UITableView? | |
override func loadView() { | |
super.loadView() |