在 Swift 中,只要繼承 Codable Pr […]
Continue reading標籤: Swift 開發筆記
[Swift] optional initialization 的方法
在 Swift 中,我很常用到列舉這個功能,當然有 […]
Continue reading[Swift] 使用 CaseIterable把 Enum 變 Array
對我來說,在 Swift 中,Enum 是一個很常 […]
Continue reading[Swift] 如何一次進行多個條件的排序?
在 Swift 的陣列中,我們難免會對陣列進行排序 […]
Continue reading[Swift] 利用 is 和 as 的來做型別檢查與轉換
在 Swift 中,如果要做型別的轉換,通常我們會 […]
Continue reading[Swift] 取得字元 (Character) 的下一個或前一個字元
Swift 的基本型態有一個 Character, […]
Continue reading[Swift] 比較含有 associated value 的列舉(Enum)是否相等
在 Swift 中,列舉(Enum)可說是相當好用 […]
Continue reading[RxSwift] 利用 takeUntil 來取消訂閱
RxSwift 是一個很好用的第三方套件,而他因為 […]
Continue reading利用 Network.framework 來實做 TCP Socket 連線
Apple 在 iOS 12 後內建了 Socke […]
Continue reading如何使用 RxSwift 監聽 UIButton 的 isHighlighted / isEnable 事件
如果我們要連動兩個按鈕的 isHighlighte […]
Continue reading