back to home

KrauseFx / TSMessages

💌 Easy to use and customizable messages/notifications for iOS à la Tweetbot

4,860 stars
710 forks
94 issues
Objective-CRuby

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing KrauseFx/TSMessages in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/KrauseFx/TSMessages)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

**Notice: TSMessages is no longer being maintained/updated. We recommend everyone migrate to RMessage.** **This repository will be kept as is for those who want to continue using TSMessages or are in the process of migrating. If an issue you submitted to TSMessages still applies to RMessage feel free to create a new issue in RMessage's repository.** **If your project is Swift based, you might want to check out SwiftMessages, which offers the same features, but is written completely in Swift.** TSMessages ========== This library provides an easy to use class to show little notification views on the top of the screen. (à la Tweetbot). The notification moves from the top of the screen underneath the navigation bar and stays there for a few seconds, depending on the length of the displayed text. To dismiss a notification before the time runs out, the user can swipe it to the top or just tap it. There are 4 different types already set up for you: Success, Error, Warning, Message (take a look at the screenshots) It is very easy to add new notification types with a different design. Add the new type to the notificationType enum, add the needed design properties to the configuration file and set the name of the theme (used in the config file and images) in TSMessagesView.m inside the switch case. **Take a look at the Example project to see how to use this library.** You have to open the workspace, not the project file, since the Example project uses cocoapods. Get in contact with the developer on Twitter: KrauseFx (Felix Krause) Screenshots Installation From CocoaPods TSMessages is available through CocoaPods. To install it, simply add the following line to your Podfile: pod "TSMessages" Manually Copy the source files TSMessageView and TSMessage into your project. Also copy the TSMessagesDesignDefault.json. Usage To show notifications use the following code: You can define a default view controller in which the notifications should be displayed: You can define a default view controller in which the notifications should be displayed: You can customize a message view, right before it's displayed, like setting an alpha value, or adding a custom subview You can customize message view elements using UIAppearance The following properties can be set when creating a new notification: • **viewController**: The view controller to show the notification in. This might be the navigation controller. • **title**: The title of the notification view • **subtitle**: The text that is displayed underneath the title (optional) • **image**: A custom icon image that is used instead of the default one (optional) • **type**: The notification type (Message, Warning, Error, Success) • **duration**: The duration the notification should be displayed • **callback**: The block that should be executed, when the user dismissed the message by tapping on it or swiping it to the top. Except the title and the notification type, all of the listed values are optional If you don't want a detailed description (the text underneath the title) you don't need to set one. The notification will automatically resize itself properly. License TSMessages is available under the MIT license. See the LICENSE file for more information. Recent Changes Can be found in the releases section of this repo.