Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
main ▾

xtool.git / Sources / XUtils / Dependencies+Utils.swift

Dependencies+Utils.swift10 lines · 279 BRaw
1import 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.
7public var d: DependencyValues {
8 @Dependency(\.self) var values
9 return values
10}