Instantly share code, notes, and snippets.
This file contains hidden or 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
// | |
// ProxyButton.swift | |
// Test | |
// | |
// Created by Dmitry Gulyagin on 01/11/2024. | |
// | |
import SwiftUI | |
structProxyButtonState:Equatable{ |
Rukh /CAMediaTimingFunction+Unit.swift
Last activeApril 9, 2024 10:42
A representation of a unit Bezier curve for `BinaryFloatingPoint` types. This struct allows solving the Bezier curve at a given `x` value, which is useful for applying timing functions directly to numerical calculations. This file contains hidden or 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 | |
extensionCAMediaTimingFunction{ |
Rukh /URLRequest+cURL.swift
Last activeMarch 28, 2024 09:53 — forked fromabhi21git/ExtensionURLRequest.swift
Swift cURL Printer This file contains hidden or 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. | |
// | |
importstruct Foundation.URLRequest | |
publicextensionURLRequest{ | |
This file contains hidden or 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 | |
extensionAVCapturePhotoOutput{ | |
enumFailure:Error{ | |
case capturePhotoFailed | |
} | |
privatefinalclass CaptureDelegate:NSObject,AVCapturePhotoCaptureDelegate{ |
This file contains hidden or 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 | |
publicfinalclassEmbedSwiftUIView<RootView>where RootView:View{ | |
Rukh /BackdropBlurView.swift
Last activeJuly 18, 2025 20:17
UIVisualEffectView with any blur radius in SwiftUI This file contains hidden or 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 | |
structBackdropView:UIViewRepresentable{ |