
Input Bar
From syxUI — written for both platforms, not translated between them.
A message composer - attach button, rounded text field and a mic / send button.
Chat · SwiftUI · iOS 17
- chat
- swiftui
The actual source
ChatInputBar.swift
// Input Bar · syxUI · https://syxui.dev/components/chat-input
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Message composer input bar
struct ChatInputBar: View {
let blue = Color(red: 0.0, green: 0.47, blue: 1.0)
var body: some View {
HStack(spacing: 10) {
Image(systemName: "plus").font(.system(size: 20)).foregroundStyle(blue).frame(width: 32, height: 32)
HStack {
Text("Message").font(.system(size: 16)).foregroundStyle(.secondary)
Spacer()
Image(systemName: "face.smiling").font(.system(size: 18)).foregroundStyle(.secondary)
}
.padding(.horizontal, 14).padding(.vertical, 9)
.overlay(Capsule().stroke(Color.primary.opacity(0.15), lineWidth: 1))
Image(systemName: "mic.fill").font(.system(size: 16)).foregroundStyle(.white).frame(width: 34, height: 34).background(blue, in: Circle())
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


