Compare commits

...

3 Commits

Author SHA1 Message Date
Juanpe Catalán 1ab26cd869 Merge branch 'main' of https://github.com/Juanpe/SkeletonView 2021-08-23 12:29:16 +02:00
Juanpe Catalán 8e369c9df2 fix build fails 2021-08-23 12:29:01 +02:00
Juanpe 5fc720d3ab Bump version 1.24.2 2021-08-23 10:24:52 +00:00
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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