Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Accepted with Revisions] SDL 0090 - SDLHapticHitTester Protocol #270

Closed
theresalech opened this issue Aug 30, 2017 · 4 comments
Closed

Comments

@theresalech
Copy link
Contributor

Hello SDL community,

The review of "SDLHapticHitTester Protocol" begins now and runs through September 5, 2017. The proposal is available here:

https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0090-SDLHapticHitTesterProtocol.md

Reviews are an important part of the SDL evolution process. All reviews should be sent to the associated Github issue at:

#270

What goes into a review?

The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of SDL. When writing your review, here are some questions you might want to answer in your review:

  • Is the problem being addressed significant enough to warrant a change to SDL?
  • Does this proposal fit well with the feel and direction of SDL?
  • If you have used competitors with a similar feature, how do you feel that this proposal compares to those?
  • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
    Please state explicitly whether you believe that the proposal should be accepted into SDL.

More information about the SDL evolution process is available at

https://github.com/smartdevicelink/sdl_evolution/blob/master/process.md

Thank you,
Theresa Lech

Program Manager - Livio
theresa@livio.io

@joeljfischer
Copy link
Contributor

joeljfischer commented Sep 1, 2017

I'm largely in agreement with this proposal. A minor tweak:

- (nullable UIView *)viewForSDLTouch:(SDLTouch *_Nonnull)touch;

I would propose removing the SDL part of the method name:

- (nullable UIView *)viewForTouch:(SDLTouch *_Nonnull)touch;

In your section "Out of Scope", you note that this doesn't change anything user facing, but I think we should make those determinations here, as they have to be made. I would also propose changes to the developer facing SDLTouchManagerDelegate:

NS_ASSUME_NONNULL_BEGIN

@protocol SDLTouchManagerDelegate <NSObject>

@optional
- (void)touchManager:(SDLTouchManager *)manager didReceiveSingleTapAtPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager didReceiveDoubleTapAtPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager panningDidStartAtPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager didReceivePanningFromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint;
- (void)touchManager:(SDLTouchManager *)manager panningDidEndAtPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager pinchDidStartAtCenterPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager didReceivePinchAtCenterPoint:(CGPoint)point withScale:(CGFloat)scale;
- (void)touchManager:(SDLTouchManager *)manager pinchDidEndAtCenterPoint:(CGPoint)point;

@end

NS_ASSUME_NONNULL_END

and I would propose adding a nullable view to each of these methods.

Perhaps something like this:

NS_ASSUME_NONNULL_BEGIN

@protocol SDLTouchManagerDelegate <NSObject>

@optional
- (void)touchManager:(SDLTouchManager *)manager didReceiveSingleTapForView:(_Nullable UIView *)view atPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager didReceiveDoubleTapForView:(_Nullable UIView *)view atPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager panningDidStartInView:(_Nullable UIView *)view atPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager didReceivePanningFromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint;
- (void)touchManager:(SDLTouchManager *)manager panningDidEndInView:(_Nullable UIView *)view atPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager pinchDidStartInView:(_Nullable UIView *)view atCenterPoint:(CGPoint)point;
- (void)touchManager:(SDLTouchManager *)manager didReceivePinchInView:(_Nullable UIView *)view atCenterPoint:(CGPoint)point withScale:(CGFloat)scale;
- (void)touchManager:(SDLTouchManager *)manager pinchDidEndInView:(_Nullable UIView *)view atCenterPoint:(CGPoint)point;

@end

NS_ASSUME_NONNULL_END

@theresalech theresalech changed the title [In Review] SDL 0090 - SDLHapticHitTester Protocol [Accepted with Revisions] SDL 0090 - SDLHapticHitTester Protocol Sep 6, 2017
@theresalech
Copy link
Contributor Author

The Steering Committee has voted to accept this proposal with the revisions included in Joel Fischer’s comment. It was noted that the functions included in the changes to the SDLTouchManagerDelegate already exist, so only the new parameter would need to be added. Since this feature is planned to be included in the iOS 5.0 release, breaking changes could be included.

@theresalech
Copy link
Contributor Author

@Toyota-BSalahat please advise when a new PR has been entered to update the proposal to reflect the agreed upon revisions. I'll then merge the PR so the proposal is up to date, and enter an issue in the iOS repository for implementation. Thanks!

@smartdevicelink smartdevicelink locked and limited conversation to collaborators Sep 6, 2017
@theresalech
Copy link
Contributor Author

Proposal has been revised to include agreed upon changes and issue has been entered: [SDL 0090] SDLHapticHitTester Protocol

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants