Skip to content

Instantly share code, notes, and snippets.

View Coder-ACJHP's full-sized avatar
📱
Ready for a new iOS challenge

Onur Işık Coder-ACJHP

📱
Ready for a new iOS challenge
View GitHub Profile
@Coder-ACJHP
Coder-ACJHP / UICBalanceSlider.swift
Last active November 12, 2019 11:45
UICBalanceSlider : designable vertical balance slider for Swift.
// Created by Hitendra Solanki on 04/17/2018. Updated by Coder ACJHP
// Copyright (c) 2018 Hitendra Solanki. All rights reserved.
//
import UIKit
public class UICBalanceSlider: UIControl {
enum HSProgressType {
case left(progress: Double)
@Coder-ACJHP
Coder-ACJHP / AutoLayoutExtension.swift
Created April 5, 2019 08:42
Make autolayout easier with this extension.
extension UIView {
func fillContainer() {
anchor(top: superview?.topAnchor, leading: superview?.leadingAnchor,
bottom: superview?.bottomAnchor, trailing: superview?.trailingAnchor)
}
// When you use this function don't pass "size" parameter into "anchor" function
func anchorSize(to view: UIView) {
widthAnchor.constraint(equalTo: view.widthAnchor).isActive = true
@Coder-ACJHP
Coder-ACJHP / UICTabbarViewController.swift
Last active July 13, 2020 14:04
Fully customizable 🎨 tab bar without using storyboard or .xib files for IOS written by Swift 4
//
// ViewController.swift
// UICTabbar
//
// Created by Coder ACJHP on 2.04.2019.
// Copyright © 2019 Onur Işık. All rights reserved.
//
import UIKit
@Coder-ACJHP
Coder-ACJHP / UICCircularProgressBar.swift
Last active April 1, 2019 13:51
File downloader (in background) with animated circular loading progress bar for swift
//
// UICCircularProgressBar.swift
// UICCircularDownloadProgressBar
//
// Created by Coder ACJHP on 1.04.2019.
// Copyright © 2019 Onur Işık. All rights reserved.
//
import UIKit
@Coder-ACJHP
Coder-ACJHP / UICClockView.swift
Created March 21, 2019 00:01
Analog clock with swift 4 (Core graphics)
//
// ClockView.swift
// UICAnalogClock
//
// Created by Coder ACJHP on 20.03.2019.
// Copyright © 2019 Onur Işık. All rights reserved.
//
import UIKit
@Coder-ACJHP
Coder-ACJHP / ZoomOutAndBounceVC.swift
Last active March 15, 2019 14:25
Anmiation : - Apply zoom out and bounce animation together when user tap on view and swipe down to reverse animation (like in Photo library of IOS)
//
// ZoomOutAndBounceVC.swift
// Cartoonize Image
//
// Created by Coder ACJHP on 15.03.2019.
// Copyright © 2019 Onur Işık. All rights reserved.
//
// ********************************************************************
// Be careful and don't use AutoLayout Constraints for animating view *
// This animations works with AutoResizing only! *
@Coder-ACJHP
Coder-ACJHP / ShareImageOnSocialMedia.swift
Created March 7, 2019 08:05
Example code for "how to share image on Facebook, Instagram, Whatsapp and Activity" with Swift 4+
/* Common steps to use these codes */
// 1- you need to implement FBSharekit for sharing on Facebook
// 2- Copy and Paste the following text to your "info.plist" (anywhere)
/*
<key>FacebookAppID</key>
<string>08760425023140553</string> //This is a mock id, you must add your own real app id else it never will work
<key>FacebookDisplayName</key>
<string>DoYourBest</string> //Add your real app name here
<key>LSApplicationQueriesSchemes</key>
@Coder-ACJHP
Coder-ACJHP / CGifManager.swift
Last active April 1, 2022 07:55
Gif splitter or frame extractor for IOS written by Swift 4
/*
MIT License
Copyright (c) 2018 toddheasley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@Coder-ACJHP
Coder-ACJHP / CCVerticalSlider.swift
Created February 5, 2019 00:01
Designable from storyboard, reusable vertical slider
import UIKit
protocol VerticalSliderDelegate: class {
func sliderValueIsChanged(_ verticalSlider: CCVerticalSlider, value: CGFloat)
}
@IBDesignable open class CCVerticalSlider: UIView {
let shapeLayer = CAShapeLayer()
@Coder-ACJHP
Coder-ACJHP / CachableImageView.swift
Created December 19, 2018 11:17
Modified image view that can cache and download images, first it will try fetch the image from cache if couldn't found it will download from the given url
//
// CachableImageView.swift
// Test
//
// Created by Coder ACJHP on 26.10.2018.
// Copyright © 2018 Coder ACJHP. All rights reserved.
//
import UIKit