* 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
28 lines
665 B
Swift
28 lines
665 B
Swift
//
|
|
// ShareUIView.swift
|
|
// MattermostShare
|
|
//
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ShareUIView: View {
|
|
@StateObject var shareViewModel = ShareViewModel()
|
|
@State var attachments: [AttachmentModel] = []
|
|
@State var linkPreviewUrl: String = ""
|
|
@State var message: String = ""
|
|
|
|
var body: some View {
|
|
NavigationView {
|
|
InitialView(
|
|
attachments: $attachments,
|
|
linkPreviewUrl: $linkPreviewUrl,
|
|
message: $message
|
|
)
|
|
}
|
|
.navigationViewStyle(StackNavigationViewStyle())
|
|
.environmentObject(shareViewModel)
|
|
}
|
|
}
|