1
票
SwiftUIの@Publishedついて
weather.temperatureはCurrentValueSubjectなのでしょうねぇ。
Subject | Apple Developer Documentation
期待された動作は、もう一つのSubject、PassthroughSubjectの方の様ですが。
e.g.
let relay = PassthroughSubject<String, Never>()
...
- 36
Only top scored, non community-wiki answers of a minimum length are eligible