This repository was archived by the owner on Jun 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Samples/PagingLayoutSamples/Modules/LayoutDesigner Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,18 @@ class LayoutDesignerViewModel {
160
160
optionViewModels = [
161
161
. init( title: " Piece size ratio " , kind: . doubleSlider( current: options. pieceSizeRatio. pair) { n in
162
162
update { $0. pieceSizeRatio = . by( pair: n) }
163
+ } ) ,
164
+ . init( title: " Container scale ratio " , kind: . singleSlider( current: options. containerScaleRatio) { n in
165
+ update { $0. containerScaleRatio = n }
166
+ } ) ,
167
+ . init( title: " Container translation ratio " , kind: . doubleSlider( current: options. containerTranslationRatio. pair) { n in
168
+ update { $0. containerTranslationRatio = . by( pair: n) }
169
+ } ) ,
170
+ . init( title: " Container min translation ratio " , kind: . doubleSlider( current: options. containerMinTranslationRatio? . pair) { n in
171
+ update { $0. containerMinTranslationRatio = . by( pair: n) }
172
+ } ) ,
173
+ . init( title: " Container max translation ratio " , kind: . doubleSlider( current: options. containerMaxTranslationRatio? . pair) { n in
174
+ update { $0. containerMaxTranslationRatio = . by( pair: n) }
163
175
} )
164
176
]
165
177
}
You can’t perform that action at this time.
0 commit comments