Closed osipxd closed 2 years ago
For example:
// Before
view.applySystemWindowInsetsToPadding(top = true)
// After replace
view.applyInsetter { type(statusBars = true) { padding() } }
// Before
view.applySystemWindowInsetsToMargin(top = true, bottom = true)
// After replace
view.applyInsetter { type(statusBars = true, navigationBars = true) { margin() } }
It is not the exact equivalent, but the migration gets easier.
Feel free to submit a PR and we'll get them merged 👍
Just created functions with annotation
@Deprecated
andreplaceWith
expressions to make migration easier in simple cases.