Skip to content

Commit

Permalink
little change
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Jan 8, 2021
1 parent 9d7d142 commit bce6cac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Sources/SwipeCell/ScrollNotification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,4 @@ extension View {
}
}

public struct CellStatusKey: EnvironmentKey {
public static var defaultValue: CellStatus = .showCell
}

extension EnvironmentValues {
public var cellStatus: CellStatus {
get { self[CellStatusKey.self] }
set {
self[CellStatusKey.self] = newValue
}
}
}
12 changes: 12 additions & 0 deletions Sources/SwipeCell/ViewExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,15 @@ extension View {
}
}

public struct CellStatusKey: EnvironmentKey {
public static var defaultValue: CellStatus = .showCell
}

extension EnvironmentValues {
public var cellStatus: CellStatus {
get { self[CellStatusKey.self] }
set {
self[CellStatusKey.self] = newValue
}
}
}

0 comments on commit bce6cac

Please sign in to comment.