NSToolbar (Mac API) UIWindowScene.titlebar.toolbar — access
func scene(_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions) {
// setup the window| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| // Marcin Krzyzanowski | |
| // blog.krzyzanowskim.com | |
| import Foundation | |
| extension URLResourceKey { | |
| static let bookmarkAllPropertiesKey = URLResourceKey("NSURLBookmarkAllPropertiesKey") | |
| static let fileIDKey = URLResourceKey("_NSURLFileIDKey") | |
| static let inode = URLResourceKey.fileIDKey | |
| } |
| // | |
| // UINSSceneView+CTX.h | |
| // EFClass | |
| // | |
| // Created by Stefan Ceriu on 28/11/2019. | |
| // Copyright © 2019 EF Education First. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| // How to: | |
| // 1. Open the Firebase Analytics Dashboard | |
| // 2. Scroll to bottom, where you see the "Users by Device model" widget | |
| // 3. Click "View device models" in that widget (this opens the "Tech details" Firebase Analytics page) | |
| // 4. Above the table shown in the new page, click on the “Device model” drop down menu and select “OS with Version” | |
| // 5. Make sure to select “OS with version” and not “OS Version” | |
| // 6. On the top right corner of the page, click on the “Share this report” icon (next to the date) | |
| // 7. Click “Download file” on the new side bar, then “Download CSV" | |
| // 8. Open the file and select the iOS/Android breakdown raw data | |
| // 9. Replace the sample data in this script with your data |
| // Copyright © 2019 Alexey Naumov. MIT License | |
| import Combine | |
| typealias CancelBag = Set<AnyCancellable> | |
| extension CancelBag { | |
| mutating func collect(@Builder _ cancellables: () -> [AnyCancellable]) { | |
| formUnion(cancellables()) | |
| } |
| // | |
| // 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 ) } |