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
// | |
// CAMediaTimingFunction+Unit.swift | |
// | |
// Created by Dmitry Gulyagin on 08/04/2024. | |
// https://gist.github.com/Rukh/96cbe8b93cdf4976c0c6a367f236fbbd | |
// | |
import QuartzCore | |
extension CAMediaTimingFunction { |
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
// | |
// URLRequest+cURL.swift | |
// | |
// Created by Dmitry Gulyagin on 19/02/2024. | |
// | |
import struct Foundation.URLRequest | |
public extension URLRequest { | |
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
import AVKit | |
extension AVCapturePhotoOutput { | |
enum Failure: Error { | |
case capturePhotoFailed | |
} | |
private final class CaptureDelegate: NSObject, AVCapturePhotoCaptureDelegate { |
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
// | |
// Created by Dmitry Gulyagin on 24/11/2022. | |
// | |
import SwiftUI | |
/// Wrap SwiftUI view into the container. You can change 'var' properties of the View, and SwiftUI will animate all changes | |
@dynamicMemberLookup | |
public final class EmbedSwiftUIView<RootView> where RootView : View { | |
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
// | |
// BackdropBlurView.swift | |
// | |
// Created by Dmitry Gulyagin on 20.09.2022. | |
// | |
import SwiftUI | |
/// A View which content reflects all behind it | |
struct BackdropView: UIViewRepresentable { |