# lanceylai/tswechat

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/lanceylai-tswechat).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

3,742 stars · 769 forks · Swift · MIT

## Links

- GitHub: https://github.com/lanceylai/TSWeChat
- awesome-repositories: https://awesome-repositories.com/repository/lanceylai-tswechat.md

## Topics

`alamofire` `audio` `json` `keyboard` `project` `rxswift` `snapkit` `swift-3` `ui` `wechat`

## Description

TSWeChat is an open-source Swift codebase that recreates the interface of a popular instant messaging app on iOS. It serves as a reference for building chat screens and conversation flows, with a conversation screen that sends text, emoji, image and voice messages and closely follows the look and feel of the app it imitates.

The project's distinguishing pieces are in the chat input and message display. The system keyboard can be replaced with custom emoji and tool panels, so users pick expressions and attach media from the input area. Image messages are drawn through a bubble-shaped mask layer, so photos take the bubble outline and display correctly over different chat backgrounds. Voice handling covers recording, converting wav audio to amr so clips can play on Android devices, and caching both formats to skip repeat conversions.

Beyond the interface, conversation data is loaded from JSON files and mapped automatically into typed model objects. Voice and image files are stored locally and checked before any download, and sent images are renamed by content hash so repeat views skip the network. Code is separated into view controllers, view cells and plain data models, and grouped into folders by feature area, with business logic, helpers, constants, resources and third-party libraries kept apart.

## Tags

### Mobile Development

- [iOS Chat UI Frameworks](https://awesome-repositories.com/f/mobile-development/ios-chat-ui-frameworks.md) — Recreates a popular instant messaging interface in Swift on iOS, with a conversation screen sending text, emoji, image and voice messages.
- [Voice Message Recording and Conversion](https://awesome-repositories.com/f/mobile-development/voice-message-recording-and-conversion.md) — Records voice clips, converts wav audio to amr for Android playback, and caches both formats to skip repeat conversions.

### Part of an Awesome List

- [Chat UI](https://awesome-repositories.com/f/awesome-lists/media/chat-ui.md) — Offers open-source Swift code recreating a popular messaging interface, serving as a reference for building chat screens. ([source](https://github.com/lanceylai/tswechat#readme))

### Networking & Communication

- [Chat Message Sending](https://awesome-repositories.com/f/networking-communication/chat-message-sending.md) — Sends text, emoji, image and voice messages through a conversation screen that mirrors a familiar messaging app. ([source](https://github.com/lanceylai/tswechat#readme))

### User Interface & Experience

- [Chat Bubbles](https://awesome-repositories.com/f/user-interface-experience/chat-bubbles.md) — Displays text, emoji, image and voice messages in chat bubbles, with image bubbles drawn through a bubble-shaped mask over varied backgrounds.
- [Keyboard Customizations](https://awesome-repositories.com/f/user-interface-experience/form-and-input-management/input-interfaces/keyboard-customizations.md) — Replaces the system keyboard with custom emoji and tool panels so users pick expressions and attach media from the input area.
- [Rich Text Input Keyboards](https://awesome-repositories.com/f/user-interface-experience/password-input-fields/custom-keyboards/rich-text-input-keyboards.md) — Replaces the system keyboard with custom emoji and tool panels for choosing expressions and attaching media in the chat input. ([source](https://github.com/lanceylai/tswechat#readme))

### Graphics & Multimedia

- [Voice Clip Format Conversion](https://awesome-repositories.com/f/graphics-multimedia/voice-clip-format-conversion.md) — Converts recorded wav voice clips into amr files for Android playback and caches both formats to avoid repeating conversions.

### Software Engineering & Architecture

- [JSON-to-Model Mappers](https://awesome-repositories.com/f/software-engineering-architecture/model-import-mappings/json-to-model-mappers.md) — Loads conversation data from JSON files and maps it automatically into typed model objects without hand-written parsing.
