當 iOS App 在 iPhone / iPad 上執行時,它有直向和橫向兩種顯示模式,我們可從 General 頁面的 iPhone Orientation & iPad Orientation 設定。
Xcode 12 的 Assets 新增了 AccentColor,現在我們可以方便地透過 AccentColor 設定 App 的主要顏色。接下來就讓我們分別看看 SwiftUI & UIKit 的例子。
在 iOS 14,SwiftUI 的 TextField & TextEditor 變得更厲害了。當鍵盤出現時,App 畫面將自動上移,我們再也不怕鍵盤檔到輸入的文字了。
串接 Google 登入時,我們需要搭配 OAuth client ID。接下來彼得潘將示範如何取得 OAuth client ID。
AppView.Swift
struct AppView: View…
開發 iOS App 時,想讓元件直線移動很簡單,想要繞圓移動就需稍微想一想了。以下三種方法在 SwiftUI & UIKit 都能實現繞圓移動的效果。
These were the top 10 stories published by 彼得潘的 Swift iOS App 開發問題解答集 in July of 2020. You can also dive into daily archives for July of 2020 by using the calendar at the top of this page.