
SwiftUI .gestureモディファイア(modifier)でスワイプ(swipe)の種類判断
DragGestureの位置情報から角度を計算、スワイプ(swipe)の種類を判断する。 計算と角度範囲は図を参照。 スワイプ(swipe)の種類 up:下から ...

Swift Vapor Bootstrapを適用
Bootstrap CSSインポート、ボタン装飾 準備 「app.middleware.use(FileMiddleware(publicDirectory: ...

Swift Vapor Form(method:get)による送信と結果表示
Vapor Formによる送信と結果表示をまとめる。 APIドキュメント: 入力画面(Form) Resources/Views/exampleformget. ...

Swift Vapor Form(method:post)による送信と結果表示
Vapor Formによる送信と結果表示をまとめる。 APIドキュメント: 入力画面(Form) Resources/Views/exampleform.lea ...

Swift UIInterfaceOrientationMaskの値
UIInterfaceOrientationMaskドキュメント

Swift 2進数出力のゼロサプレス 改:指定桁数で区切り表示
初版記事:Swift 2進数出力のゼロサプレス 出力:00110 見やすくするために4桁で区切りたい。 ゴール:0 0110 対応 出力:0000 0110 出 ...

Swift Vapor 新規プロジェクト作成 -nオプション無しの例
新規プロジェクト作成で-nオプションなし時は、FluentとLeafの使用有無を確認される。 Fluent ドキュメントページより。 FluentはSwiftの ...

Swift 2進数出力のゼロサプレス
課題 出力:11110 出力:110 桁が合わない。 調査 String Format Specifiersに2進数はない。 対応 Stringにextensi ...

SwiftUI Widget「.contentMarginsDisabled()」ありとなし、iOS 16.4とiOS 17
WidgetでiOS 16時代とデザインというか「GeometryReader」で取得出来るサイズが変わった。 調査した結果「.contentMarginsDi ...