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

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

間違っていたUIViewControllerRepresentableの使い方
SwiftUIでUIDocumentPickerViewControllerを使うため、UIViewControllerRepresentableを使用していた ...

Swift PencilKit、PKInkingTool.InkTypeの各種類の幅【iPad OS 17.0更新】
PKInkingTool.InkTypeは、 .marker .pencil .pen .monoline .fountainPen(カリグラフィーペン) .w ...

SwiftUI Listセパレーター線の謎、文字を先にすることで暫定対処!?
コード 結果 ImageのsystemImageのみ:線あり HStackでImage+Text:Imageの下に線なし HStackでText+Image:線 ...

SwiftUI UIViewRepresentableでPDFView その1:はじめの一歩
その1:はじめの一歩 ドキュメント: ContentView.swift PDFViewRepresentable.swift

SwiftUI sheet表示、GeometryReader使用、VStackのみの状態と同じにする→sheetのサイズが知りたい
目的 sheetのサイズが知りたい 単純にGeometryReaderを挿入すると、デザインが崩れる。 元のデザインを使用出来る方法、sheetのサイズをデザイ ...

SwiftUI WidgetKit ロック画面用をつくる
公式ドキュメント「Creating Lock Screen Widgets and Watch Complications」 画像は「.accessoryCir ...