diff --git a/Sources/Graphaello/Processing/Code Generstion/Swift/Implementation/StructureAPI.swift b/Sources/Graphaello/Processing/Code Generstion/Swift/Implementation/StructureAPI.swift index 274c4f9..58acd10 100644 --- a/Sources/Graphaello/Processing/Code Generstion/Swift/Implementation/StructureAPI.swift +++ b/Sources/Graphaello/Processing/Code Generstion/Swift/Implementation/StructureAPI.swift @@ -2,5 +2,5 @@ import Foundation import Stencil struct StructureAPI: SwiftCodeTransformable, Hashable { - let version = 1 + let version = 2 } diff --git a/templates/swift/StructureAPI.swift.stencil b/templates/swift/StructureAPI.swift.stencil index 6d0cf91..ef97f52 100644 --- a/templates/swift/StructureAPI.swift.stencil +++ b/templates/swift/StructureAPI.swift.stencil @@ -554,7 +554,9 @@ struct PagingView: View { case let .item(_, index) = data, index > paging.values.count - 2 else { return } - paging.loadMore(pageSize: pageSize) + DispatchQueue.main.async { + paging.loadMore(pageSize: pageSize) + } } }