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
// 1. | |
git config credential.helper | |
// 2. | |
git config credential.helper sourcetree |
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
@objc protocol KMKeyboardControllable { | |
@objc func keyboardState(notification: Notification) | |
} | |
extension KMKeyboardControllable { | |
func setKeyboardNotification() { | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardState(notification:)), name: UIResponder.keyboardWillShowNotification, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardState(notification:)), name: UIResponder.keyboardWillHideNotification, object: nil) | |
} | |
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
private var statusBarView: UIView? | |
if #available(iOS 13.0, *) { | |
let tag = 38482458385 | |
if let statusBar = UIApplication.shared.keyWindow?.viewWithTag(tag) { | |
statusBarView = statusBar | |
} else { | |
let statusBar = UIView(frame: UIApplication.shared.statusBarFrame) | |
statusBar.tag = tag | |
UIApplication.shared.keyWindow?.addSubview(statusBar) |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>0.278431 0.415686 0.592157 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Monaco - 12.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>0.278431 0.415686 0.592157 1</string> |
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
extension ViewController: UIScrollViewDelegate { | |
func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) { | |
// CollectionView Item Size | |
let cellWidth = collectionViewFlowLayout.itemSize.width + collectionViewFlowLayout.minimumLineSpacing | |
var offset = targetContentOffset.pointee | |
// 이동한 x좌표 값과 item의 크기를 비교 후 페이징 값 설정 | |
let index = (offset.x + scrollView.contentInset.left) / cellWidth |