Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for view controller presentation #198

Merged
merged 84 commits into from Aug 27, 2018
Merged

Conversation

wtmoose
Copy link
Member

@wtmoose wtmoose commented Jun 13, 2018

No merge please. Just comments.


var showDuration: TimeInterval? { get }

var hideDuration: TimeInterval? { get }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Optional? Why not a default value of 0? What does nil mean in this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nil would mean that the duration is unknown, such as if the animation was being provided by UIDynamicAnimator.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it could be helpful to explain that in a comment, since it's a public API and not immediately obvious (at least to me).

/*
MARK: - Drop shadow
*/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This MARK has no code below it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove

import UIKit

/**
A configurable `UIStoryboardSegue subclass that utilizes SwiftMessages to

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a backtick after UIStoryboardSegue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it

public var containment: Containment = .content

/**
Specifies how much the view controller's view is inset from it's superview

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not it's

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

set { messenger.defaultConfig.presentationStyle = newValue }
}

// The dim mode to use. See the SwiftMessages.DimMode documentation for details.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment here and on presentationStyle should be ///?

extension StoryboardSegue {
private class Shower: NSObject, UIViewControllerAnimatedTransitioning {

fileprivate private(set) var completeTransition: ((_: Bool) -> Void)?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the _: in completeTransition: ((_: Bool) -> Void)? needed? Can it just be completeTransition: ((Bool) -> Void)??

@wtmoose wtmoose closed this Aug 23, 2018
@wtmoose wtmoose reopened this Aug 23, 2018
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.

None yet

2 participants