This file contains 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 ChatCollectionViewFlowLayout: UICollectionViewFlowLayout { | |
private var topMostVisibleItem = Int.max | |
private var bottomMostVisibleItem = -Int.max | |
private var offset: CGFloat = 0.0 | |
private var visibleAttributes: [UICollectionViewLayoutAttributes]? |
This file contains 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
// | |
// UIImage+Blur.swift | |
// NativeBlur | |
// | |
// Created by Anton Poltoratskyi on 11.02.2018. | |
// Copyright © 2018 Anton Poltoratskyi. All rights reserved. | |
// | |
import UIKit | |
import Accelerate |
This file contains 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
// | |
// AppNumberFormatter.swift | |
// TrumpWall | |
// | |
// Created by Anton Poltoratskyi on 4/13/17. | |
// Copyright © 2017 Anton Poltoratskyi. All rights reserved. | |
// | |
import Foundation |
This file contains 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
//: Playground - noun: a place where people can play | |
import UIKit | |
import SpriteKit | |
import PlaygroundSupport | |
let sceneView = SKView(frame: CGRect(x: 0, y: 0, width: 480, height: 320)) | |
let scene = SKScene(size: CGSize(width: 480, height: 320)) | |
scene.physicsWorld.gravity = .zero |
This file contains 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
// | |
// main.swift | |
// DESAlgorithmCommandLine | |
// | |
// Created by Anton Poltoratskyi on 12.03.17. | |
// Copyright © 2017 Anton Poltoratskyi. All rights reserved. | |
// | |
import Foundation |
This file contains 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 Foundation | |
// MARK: - Text + Statistic | |
public extension Character { | |
var isWhiteSpace: Bool { | |
return self == Character(" ") | |
} | |
} |