Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit eff5252

Browse files
author
Amir Khorsandi
committed
Add ready options for snapshot
1 parent f09d404 commit eff5252

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Samples/PagingLayoutSamples/Modules/LayoutDesigner/LayoutDesignerViewModel.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ class LayoutDesignerViewModel {
160160
optionViewModels = [
161161
.init(title: "Piece size ratio", kind: .doubleSlider(current: options.pieceSizeRatio.pair) { n in
162162
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) }
163175
})
164176
]
165177
}

0 commit comments

Comments
 (0)