2023-09-01から1ヶ月間の記事一覧
概要 Swiftで下記に記載されているシリアル番号とハードウェアUUIDを取得する 実装 func loadIOPlatformExpertDevice(ioService: String, propertyKey: String) -> String? { let service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatch…
結論 今のところ、ピュアなPythonは組み込んで使えそう 3rd partyのライブラリを含める方法は分からずじまい 参考 Embedding a Python interpreter inside a MacOS / iOS app, and publishing to the App Store successfully. 一番まとまっている python-std…
GeometryReaderのネストが嫌だからと言って、下記のようにviewSizeGettgerを作ってもあんまり良くないという話。 これは呼ばれるのがonAppearの一回きりなので、ビューの変更時、例えばデバイスの回転などに弱い。 参考: SwiftUI - How to get GeometryReade…