david-swift 1c50b3b923 Make lists dynamic
Make one @State always reference the same value
This is important when views with closures appear after the first render
2024-01-01 16:08:17 +01:00

15 lines
279 B
Swift

//
// StateProtocol.swift
// Adwaita
//
// Created by david-swift on 09.09.23.
//
/// An interface for accessing `State` without specifying the generic type.
public protocol StateProtocol {
/// The class storing the value.
var content: State<Any>.Content { get }
}