add new divider block kind
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
enum PHBlockKind: String {
|
||||
case text, space
|
||||
case text, space, divider
|
||||
}
|
||||
|
||||
extension PHBlock {
|
||||
var kind: PHBlockKind {
|
||||
if name.starts(with: "_space") { return .space }
|
||||
if name.starts(with: "_divider") { return .divider }
|
||||
return .text
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user