This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| }() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // VideoProcessor.swift | |
| // VImage Editor | |
| // | |
| // Created by Onur Işık on 25.02.2022. | |
| // Copyright © 2022 Coder ACJHP. All rights reserved. | |
| // | |
| import UIKit | |
| import AVKit |
OlderNewer