Skip to content

Commit ca39fc3

Browse files
author
Jamie Keene
authored
Adds sorting to AlertView-like dialog for adding a CGM (#1888)
* Add sorting to availableCGM manager when tapping in UIAlertController 'No CGM' state * Lint fixes
1 parent a120397 commit ca39fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/Extensions/UIAlertController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extension UIAlertController {
103103
preferredStyle: .actionSheet
104104
)
105105

106-
for availableCGMManager in availableCGMManagers {
106+
for availableCGMManager in availableCGMManagers.sorted(by: {$0.localizedTitle < $1.localizedTitle}) {
107107
addAction(UIAlertAction(
108108
title: availableCGMManager.localizedTitle,
109109
style: .default,

0 commit comments

Comments
 (0)