Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ab26cd869 | |||
| 8e369c9df2 | |||
| 5fc720d3ab |
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "SkeletonView"
|
||||
s.version = "1.24.0"
|
||||
s.version = "1.24.2"
|
||||
s.summary = "An elegant way to show users that something is happening and also prepare them to which contents he is waiting"
|
||||
s.description = <<-DESC
|
||||
Today almost all apps have async processes, as API requests, long runing processes, etc. And while the processes are working, usually developers place a loading view to show users that something is going on.
|
||||
|
||||
@@ -32,7 +32,7 @@ extension SkeletonTreeNode where Base: UIView {
|
||||
extension SkeletonTreeNode where Base: UIView {
|
||||
|
||||
var dictionaryRepresentation: [String: Any] {
|
||||
let children = children
|
||||
let skeletonableChildren = children
|
||||
|
||||
var nodeInfo: [String: Any] = [
|
||||
"type": "\(type(of: base))",
|
||||
@@ -40,8 +40,8 @@ extension SkeletonTreeNode where Base: UIView {
|
||||
"isSkeletonable": base.isSkeletonable
|
||||
]
|
||||
|
||||
if !children.isEmpty {
|
||||
nodeInfo["children"] = children.map { $0.dictionaryRepresentation }
|
||||
if !skeletonableChildren.isEmpty {
|
||||
nodeInfo["children"] = skeletonableChildren.map { $0.dictionaryRepresentation }
|
||||
}
|
||||
|
||||
return nodeInfo
|
||||
|
||||
Reference in New Issue
Block a user