Files
iOS/Sources/App/Cameras/CameraList/CameraListConfiguration.swift
Bruno Pantaleão Gonçalves 3f2727411c Improve cameras list view (#4210)
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->
- Add fallback support to HLS and MJPEG
- Improve UI
- Move WebRTC known issues disclaimer to a sheet view

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->

<img width="3160" height="1068" alt="CleanShot 2026-01-12 at 15 43
49@2x"
src="https://github.com/user-attachments/assets/77d445d7-88f0-40fb-8b0d-b1eab3c56e3d"
/>


## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-12 17:05:13 +01:00

18 lines
563 B
Swift

import Foundation
import GRDB
// Structure to store camera order per server
struct CameraListConfiguration: Codable, FetchableRecord, PersistableRecord {
var serverId: String
// Dictionary: [areaName: [cameraEntityId]]
var areaOrders: [String: [String]]
// Array of section names in custom order
var sectionOrder: [String]?
init(serverId: String, areaOrders: [String: [String]] = [:], sectionOrder: [String]? = nil) {
self.serverId = serverId
self.areaOrders = areaOrders
self.sectionOrder = sectionOrder
}
}