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 | |
// 基礎協定 | |
// 每個套用 Endpoint 的型別都有固定的回傳型別,所以如果回傳的型別不同,就要宣告不同的 Endpoint 型別。 | |
protocol Endpoint { | |
// Endpoint 所關聯的回傳型別 | |
associatedtype Result: Codable | |
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
// | |
// UITextView+placeholder.swift | |
// | |
// Created by Li-Heng Hsu on 02/06/2018. | |
// Copyright © 2018 narrativesaw. All rights reserved. | |
// | |
import UIKit | |
private let defaultPlaceholderColor = UIColor.gray |
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
// | |
// UITextView+isEditableWhenBeingDataDetectable.swift | |
// | |
// Created by Li-Heng Hsu on 15/05/2018. | |
// Copyright © 2018 narrativesaw. All rights reserved. | |
// | |
import UIKit | |
extension UITextView { |
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
// | |
// ZoomTransitionAnimator.swift | |
// ScrapBeta | |
// | |
// Created by Li-Heng Hsu on 06/12/2017. | |
// Copyright © 2017 Li-Heng Hsu. All rights reserved. | |
// | |
import UIKit |
NewerOlder