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
# Created by Shahriyar Soheytizadeh | |
alias bl="cd .. && ls -al" | |
alias dump="~/class-dump" | |
alias FAVORITE_PROJECT_DIR="cd ~/Developer/FAVORITE_PROJECT_DIR" | |
alias py="python3" | |
# Load version control information | |
autoload -Uz vcs_info | |
precmd() { vcs_info } |
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
// | |
// CSBlurEffect.swift | |
// SHS | |
// | |
// Created by Shahriyar Soheili on 28/02/2020. | |
// Copyright © 2020 Shahriyar Soheili. All rights reserved. | |
// | |
import UIKit |
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
class SomeClass: UIViewController | |
{ | |
var firstResponder: UIView? /// To handle textField position when keyboard is visible. | |
var isKeyboardVisible = false /// You can handle tap on view by checking if keyboard is visible. | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
/* | |
Register notifications for when keyboard appears/disappears |
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
// | |
// TransactionsCollectionViewFlowLayout.swift | |
// | |
// Created by Shahriyar Soheilizadeh on 19/12/2019. | |
// Copyright © 2019 Shahriyar Soheilizadeh. All rights reserved. | |
// | |
import UIKit | |
class TransactionsCollectionViewFlowLayout: UICollectionViewFlowLayout |
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
// | |
// CustomTextField.swift | |
// | |
// Created by Shahriyar Soheilizadeh on 18/12/2019. | |
// Copyright © 2019 Shahriyar Soheilizadeh. All rights reserved. | |
// | |
import UIKit | |
class CustomTextField: UITextField |
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
// | |
// CameraController.swift | |
// | |
// Created by Shahriyar on 5/8/19. | |
// | |
import UIKit | |
import AVKit | |
/** |