Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

CASpringAnimation.settlingDuration has been available since iOS 9, but was incorrectly marked as iOS 17.0+. This causes spurious CA1416 warnings when SupportedOSPlatformVersion < 17.

  • Remove [iOS (17, 0), TV (17, 0), MacCatalyst (17, 0), Mac (14, 0)] from SettlingDuration property

Fixes: https://developer.apple.com/documentation/quartzcore/caspringanimation/settlingduration confirms availability since iOS 9.0.

Original prompt

This section details on the original issue you should resolve

<issue_title>CASpringAnimation.SettlingDuration</issue_title>
<issue_description>### Apple platform

iOS

Framework version

net9.0-*

Affected platform version

18.5.9219/9.0.100

Description

CASpringAnimation.settlingDuration is available since iOS9

https://developer.apple.com/documentation/quartzcore/caspringanimation/settlingduration?language=objc

dotnet binding requires iOS 17.0

macios/src/coreanimation.cs

Lines 2573 to 2575 in 5601438

[iOS (17, 0), TV (17, 0), MacCatalyst (17, 0), Mac (14, 0)]
[Export ("settlingDuration")]
double /* CFTimeInterval */ SettlingDuration { get; }

this version mismatch causes non-relevant CA1416 warning if SupportedOSPlatformVersion is less than 17

This call site is reachable on: 'iOS' 13.0 and later, 'maccatalyst' 13.0 and later. 'CASpringAnimation.SettlingDuration' is only supported on: 'ios' 17.0 and later, 'maccatalyst' 17.0 and later, 'macOS/OSX' 14.0 and later, 'tvos' 17.0 and later.

Steps to Reproduce

see description

Did you find any workaround?

No response

Relevant log output

No response</issue_description>

<agent_instructions>Just remove the availability attributes for this API.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix version mismatch warning for CASpringAnimation settlingDuration Remove incorrect availability attributes from CASpringAnimation.SettlingDuration Dec 1, 2025
Copilot AI requested a review from rolfbjarne December 1, 2025 17:47
Copilot finished work on behalf of rolfbjarne December 1, 2025 17:47
@rolfbjarne rolfbjarne changed the title Remove incorrect availability attributes from CASpringAnimation.SettlingDuration [CoreAnimation] Remove incorrect availability attributes from CASpringAnimation.SettlingDuration Dec 1, 2025
@rolfbjarne rolfbjarne marked this pull request as ready for review December 1, 2025 17:49
@rolfbjarne rolfbjarne enabled auto-merge (squash) December 1, 2025 17:49
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #d3b95c1] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Unable to find the contents for the comment: D:\a\1\s\change-detection\results\gh-comment.md does not exist :fire

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #d3b95c1] Build passed (Build packages) ✅

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #d3b95c1] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d3b95c1] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d3b95c1] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d3b95c1] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d3b95c1] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d3b95c1] Tests on macOS arm64 - Mac Tahoe (26) passed 💻

All tests on macOS arm64 - Mac Tahoe (26) passed.

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build #d3b95c1] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 130 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: d3b95c16bde96a1bfae3c09eff6bff4174e29ae7 [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CASpringAnimation.SettlingDuration

4 participants