@@ -24,7 +24,7 @@ import Foundation
2424// MARK: * Translation
2525//*============================================================================*
2626
27- @ dynamicMemberLookup public protocol NumericTextScheme : Identifiable {
27+ public protocol NumericTextScheme {
2828
2929 //=------------------------------------------------------------------------=
3030 // MARK: State
@@ -65,14 +65,6 @@ import Foundation
6565
6666extension NumericTextScheme {
6767
68- //=------------------------------------------------------------------------=
69- // MARK: Accessors
70- //=------------------------------------------------------------------------=
71-
72- @inlinable subscript< T> ( dynamicMember keyPath: KeyPath < ID , T > ) -> T {
73- id [ keyPath: keyPath]
74- }
75-
7668 //=------------------------------------------------------------------------=
7769 // MARK: Preferences
7870 //=------------------------------------------------------------------------=
@@ -96,7 +88,8 @@ extension NumericTextScheme {
9688// MARK: * Scheme x Reusable
9789//*============================================================================*
9890
99- @usableFromInline protocol NumericTextSchemeXReuseable : AnyObject , Scheme {
91+ @dynamicMemberLookup @usableFromInline
92+ protocol NumericTextSchemeXReuseable : AnyObject , Identifiable , Scheme {
10093
10194 //=------------------------------------------------------------------------=
10295 // MARK: Initializers
@@ -124,4 +117,12 @@ extension NumericTextSchemeXReuseable {
124117 @inlinable static func reuse( _ id: ID ) -> Self {
125118 cache. reuse ( id, make: Self ( id) )
126119 }
120+
121+ //=------------------------------------------------------------------------=
122+ // MARK: Accessors
123+ //=------------------------------------------------------------------------=
124+
125+ @inlinable subscript< T> ( dynamicMember keyPath: KeyPath < ID , T > ) -> T {
126+ id [ keyPath: keyPath]
127+ }
127128}
0 commit comments