Add app icon asset, screenshot exporter, and misc updates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-10 09:31:01 -06:00
parent bfef0a4472
commit 65460c63b3
12 changed files with 355 additions and 14 deletions

View File

@@ -136,8 +136,11 @@ extension View {
}
func asImage(size: CGSize) -> UIImage {
let controller = UIHostingController(rootView: self)
let wrapped = self.ignoresSafeArea().frame(width: size.width, height: size.height)
let controller = UIHostingController(rootView: wrapped)
controller.view.bounds = CGRect(origin: .zero, size: size)
controller.view.backgroundColor = .clear
controller.view.layoutIfNeeded()
let image = controller.view.asImage()
return image
}