Skip to content

Commit fdb2cc1

Browse files
authored
Updates for SupportUI protocol changes (#9)
1 parent f09ee4e commit fdb2cc1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

LoopSupportKitUI/LoopSupportUI.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ public final class LoopSupportUI: SupportUI {
5151
}
5252

5353
public weak var delegate: SupportUIDelegate?
54+
55+
public func initializationComplete(for services: [LoopKit.Service]) { }
56+
57+
public func configurationMenuItems() -> [LoopKitUI.CustomMenuItem] {
58+
let view = Button(LocalizedString("Submit Bug Report", comment: "Navigation link title for Submit Bug Report"), action: {
59+
let url = URL(string: "https://github.com/LoopKit/Loop/issues")!
60+
self.delegate?.openURL(url: url)
61+
})
62+
return [CustomMenuItem(section: .support, view: AnyView(view))]
63+
}
64+
65+
public func loopWillReset() { }
66+
67+
public func loopDidReset() { }
68+
5469
}
5570

5671
// LoopSupport also provides analytics

0 commit comments

Comments
 (0)