arden446 / playground

0 stars 0 forks source link

make a sample app using material #2

Closed arden446 closed 7 years ago

daniel-jonathan commented 7 years ago
import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func applicationDidFinishLaunching(_ application: UIApplication) {
        window = UIWindow(frame: UIScreen.main.bounds)
        window!.rootViewController = ViewController()
        window!.makeKeyAndVisible()
    }
}
daniel-jonathan commented 7 years ago
let button = UIButton(frame: CGRect(x: 100, y: 100, width: 100, height: 50))
button.setTitle("Click", for: .normal)
arden446 commented 7 years ago

@danieldahan checkout my latest commit https://github.com/arden446/playground/commit/47e8c0e01edc63c08bee53f173bc7075ba4254f6