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
// | |
// YoutubeImageView.swift | |
// | |
// Created by 홍경표 on 2021/07/19. | |
// | |
import UIKit | |
class YoutubeImageView: UIImageView { | |
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
// | |
// FoldableView.swift | |
// | |
// Created by 홍경표 on 2021/07/14. | |
// | |
import UIKit | |
final class FoldableView: UIView { | |
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
// | |
// CouponCodeTextField.swift | |
// | |
// Created by 홍경표 on 2021/06/10. | |
// | |
import UIKit | |
// Not necessary. Replacable with other ways. | |
import SnapKit // convenient to handle constraint |
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+withBackground.swift | |
// | |
// Created by 홍경표 on 2021/04/12. | |
// | |
import UIKit | |
extension UIImage { | |
func withBackground(color: UIColor, opaque: Bool = true) -> UIImage { |
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
// | |
// measure.swift | |
// | |
// Created by 홍경표 on 2021/05/31. | |
// | |
import Foundation | |
final class Util { | |
class func measure(_ description: String = "", _ function: () -> ()) { |
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
// | |
// UIViewController+presentToTop.swift | |
// | |
// Created by 홍경표 on 2021/06/01. | |
// | |
import UIKit | |
extension UIViewController { | |
func presentToTop() { |
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
// | |
// UIViewController+back.swift | |
// | |
// Created by 홍경표 on 2021/06/01. | |
// | |
// TODO: `addTarget` to a button | |
// backButton.addTarget(nil, action: #selector(back), for: .touchUpInside) | |
extension UIViewController { |
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
// | |
// Dynamic.swift | |
// | |
// Created by 홍경표 on 2021/05/23. | |
// | |
import Foundation | |
final class Dynamic<T> { | |
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
// | |
// NSTextAttachment+setImageHeight.swift | |
// | |
// Created by 홍경표 on 2021/05/31. | |
// | |
import UIKit.NSTextAttachment | |
extension NSTextAttachment { | |
func setImageHeight(to height: CGFloat) { |
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
// | |
// NSAttributedString+withPrefixImage.swift | |
// | |
// Created by 홍경표 on 2021/05/31. | |
// | |
import UIKit.UIImage | |
extension NSAttributedString { | |