Skip to content

Commit efde33f

Browse files
committed
Clean up Menu code organization
1 parent 01ab168 commit efde33f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Authenticator/Source/Menu.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ struct Menu: Component {
5656
child = .info(info)
5757
}
5858

59+
// MARK: View
60+
5961
func viewModel(digitGroupSize: Int) -> ViewModel {
6062
return ViewModel(infoList: infoList.viewModel, child: child.viewModel(digitGroupSize: digitGroupSize))
6163
}
@@ -71,7 +73,7 @@ struct Menu: Component {
7173
}
7274
}
7375

74-
// MARK: -
76+
// MARK: Update
7577

7678
enum Action {
7779
case dismissInfo
@@ -162,7 +164,7 @@ struct Menu: Component {
162164

163165
// MARK: -
164166

165-
enum Error: Swift.Error {
167+
private enum Error: Swift.Error {
166168
case badChildState
167169
}
168170

0 commit comments

Comments
 (0)