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
Status: RESOLVED INVALID
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
URL:
Depends on:
Blocks:
 
Reported: 2016-07-29 14:15 UTC by Larry O'Brien
Modified: 2016-07-30 16:14 UTC (History)
2 users (show)

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


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


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:
Status:
RESOLVED INVALID

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

https://developer.apple.com/reference/uikit/uicubictimingparameters/1649799-init?language=objc

> 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 :)