* 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
22 lines
526 B
Swift
22 lines
526 B
Swift
//
|
|
// AttachmentWrapperView.swift
|
|
// MattermostShare
|
|
//
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct AttachmentWrapperView<Content: View>: View {
|
|
var isFirst: Bool = false
|
|
var isLast: Bool = false
|
|
var content: () -> Content
|
|
var body: some View {
|
|
HStack(spacing: 0) {
|
|
Color.clear.frame(width: isFirst ? 20 : 1, height: 100)
|
|
content()
|
|
Color.clear.frame(width: isLast ? 20 : 1, height: 100)
|
|
}
|
|
}
|
|
}
|