* iOS Share extension * Add Fastlane steps for iOS Share Extension * new multi file layout * Add recent label * Refactor code & identation * ux feedback * downsample images * remove options horizontal padding
26 lines
572 B
Swift
26 lines
572 B
Swift
//
|
|
// BackButton.swift
|
|
// MattermostShare
|
|
//
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct BackButton: View {
|
|
@Environment(\.presentationMode) var presentationMode: Binding<PresentationMode>
|
|
|
|
var body: some View {
|
|
FontIcon.button(
|
|
.compassIcons(code: .back),
|
|
action: {
|
|
self.presentationMode.wrappedValue.dismiss()
|
|
},
|
|
fontsize: 24,
|
|
color: Color.theme.sidebarText
|
|
)
|
|
.padding(.trailing, 10)
|
|
.padding(.vertical, 5)
|
|
}
|
|
}
|