Skip to content

Instantly share code, notes, and snippets.

View Coder-ACJHP's full-sized avatar
:bowtie:
Creating buggy programs

Onur Işık Coder-ACJHP

:bowtie:
Creating buggy programs
View GitHub Profile
@Coder-ACJHP
Coder-ACJHP / StackedItemsViewController.swift
Last active October 23, 2024 20:26
iOS lock screen stacked notifications like stacked views (animated and removable iOS 12, UIKit) video clip in first comment
class StackedItemsViewController: UIViewController {
private let backgroundImageView: UIImageView = {
let image = UIImage(resource: .background)
let imageView = UIImageView(image: image)
imageView.contentMode = .scaleAspectFill
imageView.isUserInteractionEnabled = true
imageView.clipsToBounds = true
imageView.translatesAutoresizingMaskIntoConstraints = false
return imageView
@Coder-ACJHP
Coder-ACJHP / CarouselFlowLayout.swift
Last active October 23, 2024 20:20
Android 14 Samsung calendar like carousel collectionView (iOS 12, UIKit) video clip in first comment
class CarouselFlowLayout: UICollectionViewFlowLayout {
let scaleFactor: CGFloat = 0.7 // Minimum scale for side cells
override func prepare() {
super.prepare()
guard let collectionView else { return }
scrollDirection = .horizontal
// Define cell size
itemSize = collectionView.bounds.inset(by: UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)).size
@Coder-ACJHP
Coder-ACJHP / ImageRippleTransitionViewController.swift
Last active October 24, 2024 07:11
Applying Ripple Transition effect for 2 images using CIFilter and DisplayLink for transition timing, transition starts from user touch location (tested on iOS 12, UIKit)
class ImageRippleTransitionViewController: UIViewController, UIViewControllerTransitioningDelegate {
public let backgroundImageView: UIImageView = {
let imageView = UIImageView()
imageView.contentMode = .scaleAspectFill
imageView.isUserInteractionEnabled = true
imageView.clipsToBounds = true
imageView.translatesAutoresizingMaskIntoConstraints = false
return imageView
}()
@Coder-ACJHP
Coder-ACJHP / MediaProcessor.swift
Created November 5, 2025 14:21
Convert UIimage into VImage with applying effects (Choosen image remains in background, selected transparent video become in front and applies effects)
//
// VideoProcessor.swift
// VImage Editor
//
// Created by Onur Işık on 25.02.2022.
// Copyright © 2022 Coder ACJHP. All rights reserved.
//
import UIKit
import AVKit