krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit 8493f3d3c7

8493f3d3c7f86b18626615541b1bdbbacecf4aec

parent: 31a9a6beb6

Unsigned

cmc <hello@cleberg.net> · 2026-10-22 05:25 UTC

iPad and Watch screenshots for 5.8; at most six comet names in 3D (!143)

- `ScreenshotTests`: iPad's tabs are buttons, not a tab bar.
- `App/AppStore/screenshots/ipad`: 13-inch (M5) captures of 01-sky, 04-3d, 05-sun, 07-library, under the existing names.
- `watch/01-tonight.png`: Series 12 46 mm (416×496), location set to Denver with `simctl location`.
- `SolarSystem3D`: comet names stop after six (the iPad view labelled about twenty SBDB comets); unnamed comets are still drawn and tappable, and a selected one is always named.
- iPhone sets and both headers recaptured with that change.

Layout: unified · split

App/AppStore/header-16x9.png

Binary file not shown.

App/AppStore/header-21x9.png

Binary file not shown.

App/AppStore/screenshots/ipad/01-sky.png

Binary file not shown.

App/AppStore/screenshots/ipad/02-3d.png

Binary file not shown.

App/AppStore/screenshots/ipad/03-sun.png

Binary file not shown.

App/AppStore/screenshots/ipad/04-library.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/01-sky.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/02-tonight.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/03-system.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/04-3d.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/05-sun.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/06-launches.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/07-library.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.3/08-jupiter.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/01-sky.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/02-tonight.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/03-system.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/04-3d.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/05-sun.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/06-launches.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/07-library.png

Binary file not shown.

App/AppStore/screenshots/iphone-6.9/08-jupiter.png

Binary file not shown.

App/AppStore/screenshots/watch/01-tonight.png

Binary file not shown.

App/Sources/SolarSystem3D.swift +5 −1
@@ -758,6 +758,8 @@ struct SolarSystem3DView: View {
758758 }
759759 }
760760 var placed: [CGRect] = []
761 // SBDB can add dozens of comets; past this many, the rest are drawn without names unless selected.
762 var cometLabels = 0
761763 let points = screenPoints(size: size)
762764 // Anything whose centre falls on the disc of a nearer body is hidden behind it.
763765 let discs = points.filter { $0.radius > 4 }.map { ($0.point, $0.radius, cam.distance(to: $0.marker.scene)) }
@@ -772,8 +774,10 @@ struct SolarSystem3DView: View {
772774 // caption2 runs about 6 pt a character; a little padding keeps neighbours readable.
773775 let width = CGFloat(item.marker.name.count) * 6 + 8
774776 let box = CGRect(x: at.x - width / 2, y: at.y - 8, width: width, height: 16)
775 let clear = item.marker.id == selected || !placed.contains { $0.intersects(box) }
777 let room = item.marker.kind != .comet || cometLabels < 6
778 let clear = item.marker.id == selected || (room && !placed.contains { $0.intersects(box) })
776779 if clear { placed.append(box) }
780 if clear, item.marker.kind == .comet { cometLabels += 1 }
777781 return (item.marker, item.point, item.radius, clear)
778782 }
779783 }
App/UITests/ScreenshotTests.swift +3 −1
@@ -21,8 +21,10 @@ final class ScreenshotTests: XCTestCase {
2121 try XCUIScreen.main.screenshot().pngRepresentation.write(to: folder.appending(path: "\(name).png"))
2222 }
2323
24 /// iPhone has a tab bar; iPad's tabs at the top are plain buttons.
2425 private func tab(_ name: String) {
25 app.tabBars.buttons[name].firstMatch.tap()
26 let bar = app.tabBars.buttons[name].firstMatch
27 (bar.exists ? bar : app.buttons[name].firstMatch).tap()
2628 }
2729
2830 func testScreenshots() throws {