ElementState clean up

This commit is contained in:
pkurchatov
2023-07-24 19:50:32 +03:00
parent 8ceef7134a
commit 2ef1befde3
2 changed files with 1 additions and 11 deletions
@@ -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]