NSToolbar (Mac API) UIWindowScene.titlebar.toolbar — access
func scene(_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions) {
// setup the window| // | |
| // Debug.swift | |
| // | |
| // Created by Craig Hockenberry on 3/15/17. | |
| // Updated by Craig Hockenberry on 2/20/24. | |
| // Usage: | |
| // | |
| // SplineReticulationManager.swift: | |
| // |
| import UIKit | |
| extension UIView { | |
| struct AnimationContext { | |
| public let duration: TimeInterval | |
| public let timingParameters: UITimingCurveProvider? | |
| } | |
| } | |
| extension UIView { |
| // | |
| // UIKit+DynamicStyle.swift | |
| // | |
| // Created by kaizei on 2019/7/19. | |
| // Copyright © 2019 yimi.kaizei. All rights reserved. | |
| // | |
| import UIKit | |
| // MARK: - reflect system style |
| struct ViewControllerHolder { | |
| weak var value: UIViewController? | |
| init(_ value: UIViewController?) { | |
| self.value = value | |
| } | |
| } | |
| struct ViewControllerKey: EnvironmentKey { | |
| static var defaultValue: ViewControllerHolder { return ViewControllerHolder(UIApplication.shared.windows.first?.rootViewController ) } |
| import UIKit | |
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // static images | |
| let lightImage = UIImage(named: "LightImage")! | |
| let darkImage = UIImage(named: "DarkImage")! |
| // | |
| // AppDelegate.swift | |
| // SwiftUITestApp | |
| // | |
| // Created by Matt Gallagher on 4/6/24. | |
| // Copyright © 2019 Matt Gallagher. All rights reserved. | |
| // | |
| import Cocoa | |
| import SwiftUI |
| /// Withable is a simple protocol to make constructing | |
| /// and modifying objects with multiple properties | |
| /// more pleasant (functional, chainable, point-free) | |
| public protocol Withable { | |
| init() | |
| } | |
| public extension Withable { | |
| /// Construct a new instance, setting an arbitrary subset of properties | |
| init(with config: (inout Self) -> Void) { |
| // Douglas Hill, December 2018 | |
| // Made for https://douglashill.co/reading-app/ | |
| // Find the latest version of this file at https://github.com/douglashill/KeyboardKit | |
| import UIKit | |
| /// A table view that allows navigation and selection using a hardware keyboard. | |
| /// Only supports a single section. | |
| class KeyboardTableView: UITableView { | |
| // These properties may be set or overridden to provide discoverability titles for key commands. |
| // | |
| // SKSerialInputStream.h | |
| // inputstream | |
| // | |
| // Created by Soroush Khanlou on 11/4/18. | |
| // Copyright © 2018 Soroush Khanlou. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |