* 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
582 B
Swift
26 lines
582 B
Swift
//
|
|
// ErrorLabelView.swift
|
|
// MattermostShare
|
|
//
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ErrorLabelView: View {
|
|
var error: String = ""
|
|
var body: some View {
|
|
HStack (alignment: .top, spacing: 7) {
|
|
FontIcon.text(
|
|
.compassIcons(code: .alert),
|
|
fontsize: 14,
|
|
color: Color.theme.errorTextColor
|
|
)
|
|
Text(error)
|
|
.font(Font.custom("OpenSans", size: 12))
|
|
.foregroundColor(Color.theme.errorTextColor)
|
|
Spacer()
|
|
}
|
|
}
|
|
}
|