Bug 42919 - The no-arg constructor for UICubicTimingParameters ought not to be public
Summary: The no-arg constructor for UICubicTimingParameters ought not to be public
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.99 (iOS 10 previews)
Hardware: PC Mac OS
: --- normal
Target Milestone: Xcode8 (iOS10)
Assignee: Bugzilla
Depends on:
Reported: 2016-07-29 14:15 UTC by Larry O'Brien
Modified: 2016-07-30 16:14 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Shows default values _are_ needed! (39.41 KB, image/png)
2016-07-30 14:15 UTC, Larry O'Brien

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Larry O'Brien 2016-07-29 14:15:57 UTC
UICubicTimingParameters is a Bezier-curve-defined timing curve. The control-point properties are read-only and the other methods do not mutate them. Constructors are already available that take points (or curves) and there is a Copy(). The no-arg constructor is not appropriate.
Comment 1 Alex Soto [MSFT] 2016-07-29 21:45:08 UTC
Good catch!
Comment 2 Alex Soto [MSFT] 2016-07-30 04:10:26 UTC
@Larry I was just about to change this but went to docs first and it seems that it makes sense to have the default ctor according to docs


> Initializes the object with the system’s default timing curve.

Can you give a 2nd thought on this?
Comment 3 Larry O'Brien 2016-07-30 14:15:53 UTC
Created attachment 16844 [details]
Shows default values _are_ needed!
Comment 4 Larry O'Brien 2016-07-30 14:16:48 UTC
Wow! Double-good-catch! Absolute mistake on my part!
Comment 5 Alex Soto [MSFT] 2016-07-30 16:14:13 UTC
Thanks Larry :)