xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Sources / XUtils / Dependencies+Utils.swift
Dependencies+Utils.swift10 lines · 279 BRaw
| 1 | import Dependencies |
| 2 | |
| 3 | /// The current `DependencyValues`. |
| 4 | /// |
| 5 | /// Prefer adding `@Dependency` fields to your type when possible, as |
| 6 | /// they remember the value assigned during initialization. |
| 7 | public var d: DependencyValues { |
| 8 | @Dependency(\.self) var values |
| 9 | return values |
| 10 | } |