open-merou

Open Mérou, a free iOS app for the Oceanic+ underwater iPhone housing
git clone https://git.schurger.org/open-merou.git
Log | Files | Refs | README | LICENSE

commit 9895b9fc8df22eee85dc234053d3bcac58634698
parent 0ac4d0d02a40b3f29da2618bf5d81cd2a6e4b5e1
Author: Jean Schurger <jean@schurger.org>
Date:   Sat, 14 Nov 2026 14:30:19 -0500

Home: hide "Simulate a housing" once a housing is detected, so the column fits

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K7deYJwSV8KMFfnh7K4gJq

Diffstat:
MOpenMerou/UI/HomeScreen.swift | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/OpenMerou/UI/HomeScreen.swift b/OpenMerou/UI/HomeScreen.swift @@ -104,14 +104,13 @@ struct HomeScreen: View { .buttonStyle(.bordered) .disabled(true) Text("Turn the housing on: it will be detected automatically.").font(.footnote).foregroundStyle(.secondary) + // Only offered while no housing answers: once one is detected the column must fit the screen. + Button { housing.startSimulation() } label: { + Label("Simulate a housing", systemImage: "play.rectangle.fill").frame(maxWidth: .infinity) + } + .buttonStyle(.bordered) } - Button { housing.startSimulation() } label: { - Label("Simulate a housing", systemImage: "play.rectangle.fill").frame(maxWidth: .infinity) - } - .buttonStyle(.bordered) - .disabled(housing.isConnected) - ForEach(model.camera.denied, id: \.self) { item in Label("Permission denied: \(item). Settings → Open Mérou.", systemImage: "exclamationmark.triangle.fill") .font(.footnote).foregroundStyle(.orange)