File tree Expand file tree Collapse file tree 1 file changed +26
-23
lines changed
FileBrowserClient/FileBrowserClient/Views Expand file tree Collapse file tree 1 file changed +26
-23
lines changed Original file line number Diff line number Diff line change @@ -72,34 +72,37 @@ struct ZoomableImageView: View {
7272 }
7373
7474 // Rotate buttons
75- VStack {
76- Spacer ( )
77- HStack ( spacing: 24 ) {
78- Button {
79- withAnimation { rotationAngle -= . degrees( 90 ) }
80- } label: {
81- Image ( systemName: " rotate.left " )
82- }
75+ if !isFullScreen {
76+ VStack {
77+ Spacer ( )
8378
84- Button {
85- withAnimation { rotationAngle += . degrees( 90 ) }
86- } label: {
87- Image ( systemName: " rotate.right " )
88- }
79+ HStack ( spacing: 24 ) {
80+ Button {
81+ withAnimation { rotationAngle -= . degrees( 90 ) }
82+ } label: {
83+ Image ( systemName: " rotate.left " )
84+ }
85+
86+ Button {
87+ withAnimation { rotationAngle += . degrees( 90 ) }
88+ } label: {
89+ Image ( systemName: " rotate.right " )
90+ }
8991
90- Button {
91- saveEditedImage ( )
92- } label: {
93- Image ( systemName: " square.and.arrow.down " )
92+ Button {
93+ saveEditedImage ( )
94+ } label: {
95+ Image ( systemName: " square.and.arrow.down " )
96+ }
9497 }
98+ . padding ( )
99+ . background ( Color . black. opacity ( 0.6 ) )
100+ . clipShape ( Capsule ( ) )
101+ . foregroundColor ( . white)
102+ . padding ( . bottom, 30 )
95103 }
96- . padding ( )
97- . background ( Color . black. opacity ( 0.6 ) )
98- . clipShape ( Capsule ( ) )
99- . foregroundColor ( . white)
100- . padding ( . bottom, 30 )
104+ . alert ( " Saved to Photos " , isPresented: $showSaveAlert) { }
101105 }
102- . alert ( " Saved to Photos " , isPresented: $showSaveAlert) { }
103106 }
104107 }
105108 }
You can’t perform that action at this time.
0 commit comments