// // TelegramMark.swift // FTStore Admin // // The Telegram logo, as a tintable template image. // // Every "this came from Telegram" affordance in FTStore Admin used to draw SF // Symbols' `paperplane`, which is a generic outlined plane and reads as "send" // rather than as Telegram. The real mark ships in the asset catalog // (`Assets.xcassets/Telegram.imageset`, a vector SVG with template rendering), // so it tints from the surrounding `foregroundStyle` exactly like a symbol. // // Unlike an SF Symbol it does not scale itself off the ambient font, so the // size is explicit at every call site. `size` is a point value chosen to sit // optically level with the text next to it. // import SwiftUI struct TelegramMark: View { var size: CGFloat = 16 var body: some View { Image("Telegram") .renderingMode(.template) .resizable() .aspectRatio(contentMode: .fit) .frame(width: size, height: size) } }