This file contains 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
// MARK: {Extension_Name} | |
extension {Class_Name} { | |
fileprivate func {Func_Name}() { | |
// It may be reachable from other extensions | |
// This function may use other fileprivate functions from other extensions | |
} | |
private func {Private_Func}()->{Returned_Value} { | |
// Do not use any function , but it may use a class variable inside it | |
// Oftenly returns a value |
This file contains 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
var window: UIWindow? | |
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. | |
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene. | |
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). | |
guard let windowScene = (scene as? UIWindowScene) else { return } | |
self.window = UIWindow(windowScene: windowScene) | |
let vc = FirstViewController() | |
self.window?.rootViewController = vc |
This file contains 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
override func viewDidLoad() { | |
super.viewDidLoad() | |
let viewBox = UIView() | |
viewBox.frame = CGRect(x: 0, y: 0, width: 50, height: 50) | |
viewBox.backgroundColor = #colorLiteral(red: 0.7450980544, green: 0.1568627506, blue: 0.07450980693, alpha: 1) | |
self.view.addSubview(viewBox) | |
let path = createPath() | |
self.debugPath(path: path) | |
moveAlongPath(view: viewBox, path: path) |
This file contains 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: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
// Override point for customization after application launch. | |
if window == nil { | |
window = UIWindow(frame: UIScreen.main.bounds) | |
} | |
let vc:LiveStreamVC = LiveStreamVC(nibName: "LiveStreamVC", bundle: nil) | |
let navigationController = UINavigationController(rootViewController: vc) | |
navigationController.isNavigationBarHidden = true | |
self.window?.rootViewController = navigationController |
This file contains 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
// Animation values creator (1) | |
struct PulseConfiguration { | |
// static values | |
private var scaleChangeAmount:CGFloat = 0.015 | |
private var maxScale:CGFloat = 1.5 | |
private var minScale:CGFloat = 1 | |
// dynamic Values | |
private var currentScale:CGFloat = 1 | |
private var isExpanding:Bool = true |
NewerOlder