mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
ElementState clean up
This commit is contained in:
@@ -8,8 +8,6 @@ public final class SwipeContainerBlock: WrapperBlock {
|
||||
case right
|
||||
case left
|
||||
|
||||
public static let prefersAnimatedChanges = true
|
||||
|
||||
public static let `default` = State.normal
|
||||
}
|
||||
|
||||
|
||||
@@ -2,15 +2,7 @@ import Foundation
|
||||
|
||||
import LayoutKitInterface
|
||||
|
||||
public protocol ElementState {
|
||||
static var prefersAnimatedChanges: Bool { get }
|
||||
static var shouldUpdateUi: Bool { get }
|
||||
}
|
||||
|
||||
extension ElementState {
|
||||
public static var prefersAnimatedChanges: Bool { false }
|
||||
public static var shouldUpdateUi: Bool { true }
|
||||
}
|
||||
public protocol ElementState {}
|
||||
|
||||
public typealias BlocksState = [UIElementPath: ElementState]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user