mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-16 03:51:37 +08:00
- Created SkeletonDrawable class wrapping spine_skeleton_drawable C functions - Implemented AnimationStateEventManager singleton for event listener management - Added helper types: Bounds and Vector structs - Added extensions for Skeleton (bounds, getPosition) - Added extensions for Skin (getEntries to iterate attachments) - Added extensions for BonePose (coordinate transformations) - Added extensions for AnimationState and TrackEntry (event listeners) - Created skeleton_drawable_test_swift.swift using SpineSwift high-level API - Updated test Package.swift to include SpineSwift dependency - SpineSwift module now compiles with 0 errors This completes the port of the high-level API from spine-flutter's spine_dart.dart to SpineSwift, providing a clean Swift API that mirrors the Dart implementation.
24 lines
605 B
Swift
24 lines
605 B
Swift
// swift-tools-version: 5.5
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "SpineTest",
|
|
platforms: [
|
|
.macOS(.v10_15)
|
|
],
|
|
dependencies: [
|
|
.package(path: "../../")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "SpineTest",
|
|
dependencies: [
|
|
.product(name: "SpineC", package: "spine-runtimes"),
|
|
.product(name: "SpineSwift", package: "spine-runtimes")
|
|
],
|
|
path: "src"
|
|
)
|
|
]
|
|
) |