-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy pathAppDelegate.swift
More file actions
30 lines (23 loc) · 886 Bytes
/
Copy pathAppDelegate.swift
File metadata and controls
30 lines (23 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// AppDelegate.swift
// TZStackView-Example
//
// Created by Tom van Zummeren on 20/06/15.
// Copyright (c) 2015 Tom van Zummeren. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//Appearance proxy for the UISegmentedControl font
UISegmentedControl.appearance().setTitleTextAttributes(
[NSAttributedStringKey.font:UIFont(name: "HelveticaNeue-Light", size:10.0)!],
for: UIControlState())
//Launch the application
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = ViewController()
window?.makeKeyAndVisible()
return true
}
}