Skip to content

Conversation

@ps2
Copy link
Collaborator

@ps2 ps2 commented Feb 2, 2019

No description provided.

Copy link
Contributor

@mpangburn mpangburn left a comment

Choose a reason for hiding this comment

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

Just trivial nits.

Copy link
Contributor

@darinkrauss darinkrauss left a comment

Choose a reason for hiding this comment

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

A few comments/questions, but nothing that blocks approval from my perspective. 🚀


import LoopKitUI

public final class GlucoseHUDView: BaseHUDView {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this be moving over to LoopKit at some point?

import LoopKitUI

public class HUDView: UIView, NibLoadable {
@IBOutlet public weak var loopCompletionHUD: LoopCompletionHUDView!
Copy link
Contributor

Choose a reason for hiding this comment

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

Will these be moving over to LoopKit? Is this a work in progress?

typealias PumpManagerHUDViewsRawValue = [String: Any]

func PumpManagerHUDViewsFromRawValue(_ rawValue: PumpManagerHUDViewsRawValue) -> [BaseHUDView]? {
guard let rawState = rawValue["hudProviderViews"] as? HUDProvider.HUDViewsRawState,
Copy link
Contributor

Choose a reason for hiding this comment

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

What are your thoughts regarding making these raw strings as constants to avoid typos and such?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the current pattern of RawRepresentable use in Loop rarely defines constants for raw strings. Probably a good idea to begin that transition.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I've had typos cause issues while developing. Constants don't completely prevent that (you can still use the wrong constant!), and create more clutter. I'm not opposed to it; I just question if it's really worth it.

@ps2 ps2 merged commit 8de3796 into dev Feb 19, 2019
@ps2 ps2 deleted the pumpmanager-changes branch March 5, 2019 17:19
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.

5 participants