-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Pumpmanager changes #877
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
Pumpmanager changes #877
Conversation
…mpmanager-changes
…mpmanager-changes
mpangburn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just trivial nits.
darinkrauss
left a comment
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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! |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.