Skip to content

Instantly share code, notes, and snippets.

View Ilesh's full-sized avatar
:octocat:
Learn | Build | Test | 🚀

Ilesh Panchal Ilesh

:octocat:
Learn | Build | Test | 🚀
View GitHub Profile
@Ilesh
Ilesh / IPTextField.swift
Last active October 7, 2019 10:54
Custom UITextfield class for manage image before Textfield and also add secure text hide show button.
//
// IPTextField.swift
//
//
// Created by Ilesh on 06/04/18.
// Copyright © 2019 Ilesh. All rights reserved.
//
import Foundation
import UIKit
@Ilesh
Ilesh / IPLocation.swift
Last active February 17, 2020 09:40
Custom location picker call for the getting location with outlong lodes.
//
// IPLocation.swift
//
//
// Created by Ilesh on 06/08/18.
// Copyright © 2018 Ilesh. All rights reserved.
//
import Foundation
import CoreLocation
@Ilesh
Ilesh / IPFirebaseNotification.swift
Last active June 18, 2019 05:41
Set up a Firebase Cloud Messaging client app on iOS
//
// IPFirebaseNotification.swift
//
//
// Created by Ilesh on 06/08/18.
// Copyright © 2018 Ilesh. All rights reserved.
//
import Foundation
import UserNotifications
@Ilesh
Ilesh / MIDISamplerSetup
Created May 24, 2019 11:38 — forked from genedelisa/MIDISamplerSetup
Swift MIDI Sampler setup
class MIDISampler : NSObject {
var engine:AVAudioEngine!
var playerNode:AVAudioPlayerNode!
var mixer:AVAudioMixerNode!
var sampler:AVAudioUnitSampler!
override init() {
super.init()
initAudioEngine()
}
@Ilesh
Ilesh / IPLookup.swift
Created May 28, 2019 05:39
IPLookup is the one singleton class of the dropdown. It is very easy to manage dropdown in using single file. configuration is in the same place so easy to modify when the requirement changes. :)
//
// Lookup.swift
//
//
// Created by Ilesh's 2018 on 09/03/19.
// Copyright © 2019 Ilesh. All rights reserved.
//
import Foundation
//
// IPDirectory.swift
//
//
// Created by Ilesh's 2018 on 13/06/19.
// Copyright © 2019 Ilesh's mac. All rights reserved.
//
import Foundation
import UIKit
//
// IPShareActivityItem.swift
//
//
// Created by Ilesh's 2018 on 18/06/19.
// Copyright © 2019 All rights reserved.
//
/*
// *** CALL USING LIKE
//
// IPMailComposer.swift
//
//
// Created by Ilesh's 2018 on 02/07/19.
// Copyright © 2019 Ilesh. All rights reserved.
//
import MessageUI
@Ilesh
Ilesh / compareimages.swift
Created July 26, 2019 12:41 — forked from SheffieldKevin/compareimages.swift
A couple of swift functions for comparing two CGImage using CIImage in OS X
/**
@brief Returns true if images have same meta. Width, Height, bit depth.
@discussion Assumes images are non null.
*/
func doImagesHaveSameMeta(#image1:CGImage, #image2:CGImage) -> Bool {
if CGImageGetWidth(image1) != CGImageGetWidth(image2) {
return false
}
if CGImageGetHeight(image1) != CGImageGetHeight(image2) {
@Ilesh
Ilesh / IPGoogleAds.swift
Created August 8, 2019 10:13
For display google ads
//
// GoogleAds.swift
//
//
// Created by Ilesh's 2018 on 18/05/19.
// Copyright © 2019 Ilesh. All rights reserved.
//
import UIKit
import GoogleMobileAds