
GIF Message
From syxUI — written for both platforms, not translated between them.
An animated-GIF message card with a GIF badge.
Chat · SwiftUI · iOS 17
- chat
- swiftui
The actual source
ChatGifSticker.swift
// GIF Message · syxUI · https://syxui.dev/components/chat-gif
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// GIF / sticker message
struct ChatGifSticker: View {
var body: some View {
HStack {
Image("photo_pet").resizable().scaledToFill().frame(width: 150, height: 150)
.clipShape(RoundedRectangle(cornerRadius: 18, style: .continuous))
.overlay(alignment: .topLeading) {
Text("GIF").font(.system(size: 11, weight: .bold)).foregroundStyle(.white)
.padding(.horizontal, 6).padding(.vertical, 3).background(.black.opacity(0.5), in: RoundedRectangle(cornerRadius: 6)).padding(8)
}
Spacer(minLength: 60)
}
}
}
iOS 17 · 1 dependencies
Dependencies
- SwiftUI
- photo_pet (image asset)
Requires iOS 17


