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 TestFilterViewController: UIViewController { | |
let sepiaSharpenBlurImageView: UIImageView = { | |
let v = UIImageView() | |
v.contentMode = .scaleAspectFit | |
return v | |
}() | |
let sepiaBlurSharpenImageView: UIImageView = { | |
let v = UIImageView() |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="mnm-iy-9SH"> | |
<device id="retina4_7" orientation="landscape" appearance="light"/> | |
<dependencies> | |
<deployment identifier="iOS"/> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/> | |
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | |
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
</dependencies> | |
<scenes> |
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 TraitView: UIView { | |
let c: [UIColor] = [.red, .green, .blue] | |
var i = 0 | |
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { | |
print("trait changed \(i)") | |
super.traitCollectionDidChange(previousTraitCollection) | |
layer.backgroundColor = c[i % 3].cgColor |
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
import UIKit | |
class TableCollectionViewController: UIViewController { | |
let homeView: HomeView = { | |
let v = HomeView() | |
return v | |
}() | |
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
final class TabBarController: UITabBarController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.viewControllers = [ | |
TabBarItems.home.tabController, | |
TabBarItems.search.tabController, | |
TabBarItems.cart.tabController, |
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
// | |
// HomeViewController.swift | |
// Wishlist | |
// | |
// Created by Christian Konnerth on 22.08.19. | |
// Copyright © 2019 CKBusiness. All rights reserved. | |
// | |
import UIKit | |
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
// | |
import UIKit | |
class CurvedSliderViewController: UIViewController { | |
var bezier: QuadBezier! | |
let leftSidePathLayer: CAShapeLayer = { | |
let layer = CAShapeLayer() |
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
// | |
import UIKit | |
class CurvedSliderViewController: UIViewController { | |
var bezier: QuadBezier! | |
let pathLayer: CAShapeLayer = { | |
let layer = CAShapeLayer() |
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 VerticalProgressViewController: UIViewController { | |
let theButton: UIButton = { | |
let v = UIButton() | |
v.translatesAutoresizingMaskIntoConstraints = false | |
v.setTitle("Tap Me", for: .normal) | |
v.setTitleColor(.red, for: .normal) | |
return v | |
}() | |
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
// | |
// AppDelegate.h | |
// | |
// Created by Don Mag on 4/8/19. | |
// | |
#import <UIKit/UIKit.h> | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> | |
{ |