Skip to content

Instantly share code, notes, and snippets.

View fullc0de's full-sized avatar

Heath-Supergene fullc0de

View GitHub Profile
@fullc0de
fullc0de / FullScreenPresent.swift
Last active February 8, 2024 14:42
UIKit style present in SwiftUI
//
// FullScreenPresent.swift
//
// Created by Heath Hwang on 5/16/20.
//
import SwiftUI
extension View {
/// This is used for presenting any SwiftUI view in UIKit way. As it uses some tricky way to make the objective, could possibly happen some issues at every upgrade of iOS version.
@fullc0de
fullc0de / UIImageView+ZoomPinchGesture.swift
Last active December 15, 2017 02:52
It is an extension of UIImageView to support pinching zoom and panning looks like one Instagram has. NOTE: This is inspired by the article (https://medium.com/@jeremysh/instagram-pinch-to-zoom-pan-gesture-tutorial-772681660dfe). And It has a constraint to Rx family.
//
// UIImageView+ZoomPinchGesture.swift
//
// Created by fullc0de on 2017. 12. 13..
// Copyright © 2017 heath. All rights reserved.
//
import Foundation
import RxSwift
import RxCocoa
@fullc0de
fullc0de / gist:72e8082136d522b6e22b
Last active August 29, 2015 14:01
Using BoltsFramework for making asynchronous tasks.
// If you want to make a use of Bolts framework for asynchronous task,
// should make a custom method which returns `BFTask` like that.
#import "HKKFirstViewController.h"
#import <Bolts/Bolts.h>
@interface HKKFirstViewController ()
@end