XHToast is a lightweight and customizable Toast library for iOS. It provides a convenient way to display temporary messages or notifications to the user.


To install XHToast in your project, you can either use CocoaPods or manually add the library to your project.

Installation using CocoaPods

To integrate XHToast using CocoaPods, add the following line to your Podfile:

pod 'XHToast'

Then, run the command:

pod install

Manual Installation

  1. Download the XHToast repository as a zip file.
  2. Unzip the file and copy the “XHToast” folder into your project.
  3. In Xcode, navigate to your project settings.
  4. Under the “General” tab, scroll down to find the “Frameworks, Libraries, and Embedded Content” section.
  5. Click on the “+” button and select the “Add Other…” option.
  6. Navigate to the “XHToast” folder copied in step 2 and select the “XHToast.xcodeproj” file.
  7. Build the project.
  8. In your project settings, go to the “Build Phases” tab.
  9. Expand the “Target Dependencies” section and add “XHToast.framework”.
  10. Expand the “Link Binary With Libraries” section and add “libXHToast.a”.
  11. Import the library where needed by adding: #import <XHToast/XHToast.h>


To use XHToast, follow the steps below:

  1. Import the XHToast library at the top of your file:
    #import <XHToast/XHToast.h>
  2. Display a simple toast message:

[XHToast showToastMessage:@"Your message"];

You can customize various aspects of the toast appearance and behavior using XHToastConfig. For example, to change the text color:

[XHToastConfig defaultConfig].textColor = [UIColor whiteColor];

For more advanced usage, refer to the documentation and examples provided by the library.


XHToast is a versatile and easy-to-use library for displaying temporary messages or notifications in iOS applications. Its customizable features make it suitable for a wide range of use cases. By following the installation and usage instructions provided in this documentation, you can quickly integrate and start using XHToast in your project.