File tree Expand file tree Collapse file tree
Xcodes/Frontend/XcodeList Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import Foundation
1010import SwiftUI
1111
12-
1312struct BottomStatusModifier : ViewModifier {
1413 @EnvironmentObject var appState : AppState
1514
1615 func body( content: Content ) -> some View {
17- content
1816 VStack ( spacing: 0 ) {
19- Divider ( )
20- HStack {
21- Text ( appState. bottomStatusBarMessage)
22- . font ( . subheadline)
23- Spacer ( )
24- Text ( Bundle . main. shortVersion!)
25- . font ( . subheadline)
17+ content
18+ VStack ( spacing: 0 ) {
19+ Divider ( )
20+ HStack {
21+ Text ( appState. bottomStatusBarMessage)
22+ . font ( . subheadline)
23+ Spacer ( )
24+ Text ( Bundle . main. shortVersion!)
25+ . font ( . subheadline)
26+ }
27+ . frame ( maxWidth: . infinity, maxHeight: 30 , alignment: . leading)
28+ . padding ( [ . leading, . trailing] , 10 )
2629 }
2730 . frame ( maxWidth: . infinity, maxHeight: 30 , alignment: . leading)
28- . padding ( [ . leading, . trailing] , 10 )
2931 }
30- . frame ( maxWidth: . infinity, maxHeight: 30 , alignment: . leading)
3132 }
32-
3333}
3434
3535extension View {
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ struct MainToolbarModifier: ViewModifier {
1313 }
1414
1515 private var toolbar : some ToolbarContent {
16- ToolbarItemGroup ( placement : . status ) {
16+ ToolbarItemGroup {
1717 Button ( action: { appState. presentedSheet = . signIn } , label: {
1818 Label ( " Login " , systemImage: " person.circle " )
1919 } )
2020 . help ( " LoginDescription " )
21-
21+
2222 ProgressButton (
2323 isInProgress: appState. isUpdating,
2424 action: appState. update
@@ -85,7 +85,7 @@ struct MainToolbarModifier: ViewModifier {
8585 }
8686 . keyboardShortcut ( KeyboardShortcut ( " i " , modifiers: [ . command, . option] ) )
8787 . help ( " InfoDescription " )
88-
88+
8989 Button ( action: {
9090 if #available( macOS 13 , * ) {
9191 NSApp . sendAction ( Selector ( ( " showSettingsWindow: " ) ) , to: nil , from: nil )
You can’t perform that action at this time.
0 commit comments