Skip to content

Instantly share code, notes, and snippets.

View yilmazdincsoy's full-sized avatar

Yılmaz Dincsoy yilmazdincsoy

  • Independent
  • Turkey
View GitHub Profile
@rphlfc
rphlfc / FirebaseImage.swift
Created February 24, 2021 12:29
SwiftUI view for downloading an image from Firebase Storage using SDWebImageSwiftUI
//
// FirebaseImage.swift
// AlumniStatusLounge
//
// Created by Raphael Cerqueira on 23/02/21.
//
import SwiftUI
import FirebaseStorage
import SDWebImageSwiftUI
@JimmyPun610
JimmyPun610 / SwipeDownToCloseXamarinFormPage.md
Last active May 4, 2023 09:20
Xamarin Form swipe to close page behaviour

To Implement swipe down to close behavior, we should attach the behavior to a view.

In XAML

<ContentView x:Name="ViewToMove">
   <ContentView.Behaviors>
     <behavior:SwipeDownToClosePopupPage  CloseAction="ClosePage" ParentView="{x:Reference ViewToMove}"/>  
   </ContentView.Behaviors>
</ContentView>
@vakhidbetrakhmadov
vakhidbetrakhmadov / AVAsset+util.swift
Last active October 24, 2024 11:45
Cropping video track to a specified crop rectangle.
import Foundation
import AVFoundation
extension AVAsset {
func cropVideoTrack(at index: Int, cropRect: CGRect, outputURL: URL, completion: @escaping (Result<Void, Swift.Error>) -> Void) {
enum Orientation {
case up, down, right, left