NSToolbar (Mac API) UIWindowScene.titlebar.toolbar — access
func scene(_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions) {
// setup the windowCreate a Swift Command Line Tool in Xcode. You can then copy and paste the below code into the .swift and .metal files respectively
main.swift
| // | |
| // TYAudioVideoManager.swift | |
| // Yash Thaker | |
| // | |
| // Created by Yash Thaker on 05/12/18. | |
| // Copyright © 2018 Yash Thaker. All rights reserved. | |
| // | |
| /* | |
| 1) mergeVideos(videoUrls: [URL], exportUrl: URL, preset: String? = nil, progress: @escaping Progress, completion: @escaping Completion) |
| // | |
| // TimingFunction.swift | |
| // | |
| // Created by tcldr on 04/11/2018. | |
| // https://github.com/tcldr | |
| // Copyright © 2018 tcldr. | |
| // | |
| // Permission is hereby granted, free of charge, | |
| // to any person obtaining a copy of this software and | |
| // associated documentation files (the "Software"), to |
| extension String { | |
| // NARROW NO-BREAK SPACE | |
| // Unicode: U+202F, UTF-8: E2 80 AF | |
| static let narrowNoBreakSpace = "\u{202F}" | |
| //MEDIUM MATHEMATICAL SPACE | |
| //Unicode: U+205F, UTF-8: E2 81 9F | |
| static let mediumMathematicalSpace = "\u{205F}" | |
| //HAIR SPACE |
Potential solution: https://www.gamedev.net/forums/topic/484984-skeletal-animation---non-uniform-scale/
Description: https://answers.unrealengine.com/questions/158091/weird-scaling-behaviour-of-actor-hierarchy.html
https://www.marti.works/transform-class-position-rotation-and-scale/
For constraining point to axis
For shoemake constraint
Existing libraries
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import PlaygroundSupport | |
| func setUpDemo() { | |
| let testContents = """ | |
| This is a test | |
| Emojis follow: | |
| 🚀 |
| public enum Direction { | |
| case forward | |
| case backward | |
| } | |
| internal var player: AVPlayer? | |
| private var isSeekInProgress = false | |
| private var chaseTime = kCMTimeZero | |
| private var preferredFrameRate: Float = 23.98 |
| import Foundation | |
| import UIKit | |
| import ImageIO | |
| import MobileCoreServices | |
| extension UIImage { | |
| static func animatedGif(from images: [UIImage]) { | |
| let fileProperties: CFDictionary = [kCGImagePropertyGIFDictionary as String: [kCGImagePropertyGIFLoopCount as String: 0]] as CFDictionary | |
| let frameProperties: CFDictionary = [kCGImagePropertyGIFDictionary as String: [(kCGImagePropertyGIFDelayTime as String): 1.0]] as CFDictionary | |
| @objc protocol Refreshable | |
| { | |
| /// The refresh control | |
| var refreshControl: UIRefreshControl? { get set } | |
| /// The table view | |
| var tableView: UITableView! { get set } | |
| /// the function to call when the user pulls down to refresh | |
| @objc func handleRefresh(_ sender: Any); |