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 HomeViewController: UIViewController { | |
@IBOutlet weak var containerView: UIView! | |
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 HomeViewController: UIViewController { | |
@IBOutlet weak var containerView: UIView! | |
private let checkInController: CheckInViewController | |
private let checkOutController: CheckOutViewController | |
init(){ |
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
private func switchContentController(_ destinationVC: UIViewController){ | |
destinationVC.view.frame = CGRect( | |
x: 0, | |
y: 0, | |
width: self.containerView.frame.width, | |
height: self.containerView.frame.height | |
) | |
self.containerView.addSubview(destinationVC.view) | |
} |
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 HomeViewController: UIViewController { | |
@IBOutlet weak var containerView: UIView! | |
private let checkInController: CheckInViewController | |
private let checkOutController: CheckOutViewController | |
init(){ |
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
let giveBoxToMe = { | |
print("look to left") | |
print("find a box") | |
print("pick the box") | |
print("hand over me") | |
} | |
giveBoxToMe() |
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 | |
// draggabledemo | |
// | |
// Created by Philip Indra Prayitno ( https://github.com/s1rent ) on 03/12/20 | |
// | |
import UIKit | |
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
// | |
// ViewController.swift | |
// draggabledemo | |
// | |
// Created by Philip Indra Prayitno ( https://github.com/s1rent ) on 03/12/20. | |
// | |
import UIKit | |
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
private var pokemons = mutableListOf<PokemonModel>( | |
PokemonModel( | |
"Pikachu", | |
"https://images-na.ssl-images-amazon.com/images/I/61iWqqcq%2BKL._AC_SL1500_.jpg" | |
), | |
PokemonModel( | |
"Bulbasaur", | |
"https://cdn.bulbagarden.net/upload/2/21/001Bulbasaur.png" | |
), | |
PokemonModel( |
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
{ | |
"name": "Task Manager", | |
"short_name": "TaskManager", | |
"icons": [ | |
{ | |
"src": "/images/app_icon48x48.png", | |
"type": "image/png", | |
"sizes": "48x48" | |
}, | |
{ |
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
<link rel="manifest" href="/manifest.json"/> |
OlderNewer