This file contains hidden or 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
// | |
// FakeSettingsView.swift | |
// FakeSettings | |
// | |
// Created by Alex Melnychuck on 8/26/20. | |
// | |
// The goal of this 15min project is to showcase just how easy it is to | |
// fake an iOS settings screen. No photoshop text errors, no | |
// inconsistencies to reconcile–just a really convincing fake |
This file contains hidden or 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 SwiftUI | |
struct ExampleTabbedView : View { | |
@State private var selection = 1 | |
var body: some View { | |
TabbedView(selection: $selection) { | |
Text("Tab 1") | |
.tabItem({ |
This file contains hidden or 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 TabBarViewController: UITabBarController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
// MARK: Keyboard Commands | |
This file contains hidden or 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
// ... | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
// Do not include in App Store builds | |
// Tap status bar with two fingers to toggle overlay visibility | |
let overlayClass = NSClassFromString("UIDebuggingInformationOverlay") as? UIWindow.Type | |
_ = overlayClass?.perform(NSSelectorFromString("prepareDebuggingOverlay")) | |
} | |
// ... |