
Swift UIDeviceOrientation(enum)やUIInterfaceOrientation(enum)のrawValueを文字列表示
UIDeviceOrientationとUIInterfaceOrientationはenum extensionでtoString()実装 Javaエンジニア ...

Swift 方向検出、UIDeviceOrientationとUIInterfaceOrientation
デバイスというかアプリの方向検出 机の上に置いた状態で検出は「UIDevice.current.orientation」は出来ない。 「UIApplicatio ...

Swift 親Viewと同じサイズに追従するViewをコードで追加する
コード全体 Viewの生成と親Viewへ追加 AutoLayoutの設定 Storyboardの場合 コードの場合:NSLayoutAnchorを使用する tr ...

手帳「アクションプランナー」→「Planner」→オリジナル開発(その7)

Swift PencilKit、独自PKToolPicker開発
PKCanvasViewにSelectAllを表示したくなかった。 PKToolPickerを使用しない事で表示されないことが分かった為、書くためだけのツールに ...

Swift PencilKit、PKToolPicker、SelectAllを消したいは叶わない

Swift PencilKit、PKInkingTool.InkTypeの各種類の幅
PKInkingTool.InkTypeは、 .pencil .marker .pen があります。 各種類の デフォルトサイズ:.defaultWidth 指 ...

手帳「アクションプランナー」→「Planner」→オリジナル開発(その6)
iPad Pro用手帳アプリオリジナル作成 背景は前記事 「手帳「アクションプランナー」→「Planner」、最終的にはオリジナルへ」 不具合改修 ・イベントの ...

SwiftUI 使う時参考「.actionSheet」「.alert」「.sheet」「.fullScreenCover」「.popover」
コード ContentView.swift AdditionalView.swift .actionSheet iPadは「Cancel」は表示されません。 . ...

SwiftUI .sheetと.fullScreenCover
.sheetと.fullScreenCoverは名前以外同じ書き方が出来る。 違いは、 .sheetはTopを触ってSwipe Downで閉じれる。 .full ...