diff --git a/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift b/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift index 18e55c5..7543435 100644 --- a/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift +++ b/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift @@ -14,6 +14,10 @@ struct AskUserQuestionCardView: View { @EnvironmentObject var store: RemoteStore let approval: ApprovalRequest let questions: [AskUserQuestion.Question] + /// The transcript's on-screen height, so a long question (many options / long descriptions) can + /// scroll inside a bounded region instead of growing the card past the screen and pushing the + /// Deny / Back / Next / Submit buttons out of reach. 0 until measured. + var availableHeight: CGFloat = 0 /// Selected option labels per question text. @State private var selected: [String: Set] = [:]