Skip to content

Commit 000df07

Browse files
kikiloveswiftliqiang
and
liqiang
authored
[ios] Fix the issue where the SkeletonBounds instance couldn’t be initialized (#2669)
Co-authored-by: liqiang <[email protected]>
1 parent 648170f commit 000df07

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

spine-cpp/spine-cpp-lite/spine-cpp-lite.h

+1
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@ SPINE_CPP_LITE_EXPORT void spine_texture_region_set_original_width(spine_texture
10511051
SPINE_CPP_LITE_EXPORT int32_t spine_texture_region_get_original_height(spine_texture_region textureRegion);
10521052
SPINE_CPP_LITE_EXPORT void spine_texture_region_set_original_height(spine_texture_region textureRegion, int32_t originalHeight);
10531053

1054+
// @ignore
10541055
SPINE_CPP_LITE_EXPORT spine_skeleton_bounds spine_skeleton_bounds_create();
10551056
SPINE_CPP_LITE_EXPORT void spine_skeleton_bounds_dispose(spine_skeleton_bounds bounds);
10561057
SPINE_CPP_LITE_EXPORT void spine_skeleton_bounds_update(spine_skeleton_bounds bounds, spine_skeleton skeleton, spine_bool updateAabb);

spine-ios/Sources/Spine/Spine.Generated+Extensions.swift

+6
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,9 @@ internal enum FileSource {
313313
extension String: Error {
314314

315315
}
316+
317+
public extension SkeletonBounds {
318+
static func create() -> SkeletonBounds {
319+
return SkeletonBounds(spine_skeleton_bounds_create())
320+
}
321+
}

spine-ios/Sources/Spine/Spine.Generated.swift

-5
Original file line numberDiff line numberDiff line change
@@ -1757,11 +1757,6 @@ public final class SkeletonBounds: NSObject {
17571757
return spine_skeleton_bounds_get_height(wrappee)
17581758
}
17591759

1760-
@discardableResult
1761-
public func create() -> SkeletonBounds {
1762-
return .init(spine_skeleton_bounds_create())
1763-
}
1764-
17651760
public func dispose() {
17661761
if disposed { return }
17671762
disposed = true

0 commit comments

Comments
 (0)