another.im-ios/Monal/Classes/ChatPlaceholder.swift

30 lines
675 B
Swift
Raw Permalink Normal View History

2024-11-18 14:53:52 +00:00
//
// ChatPlaceholder.swift
// Monal
//
// Created by Thilo Molitor on 30.11.22.
// Copyright © 2022 monal-im.org. All rights reserved.
//
struct ChatPlaceholder: View {
@Environment(\.colorScheme) var colorScheme
var body: some View {
ZStack {
if colorScheme == .dark {
Color.black
} else {
Color.white
}
Image(colorScheme == .dark ? "park_white_black" : "park_colors")
.resizable()
.scaledToFill()
}
}
}
struct ChatPlaceholder_Previews: PreviewProvider {
static var previews: some View {
ChatPlaceholder()
}
}