Giter Site home page Giter Site logo

easymenu's Introduction

EasyMenu

SwiftUI Menu but not only button (similar to the native Menu)

You can create custom Menu.

Important

This version is not compatible with NavigationView.toolbar

Installation

To use EasyMeny with a project targeting iOS 13, simply copy folder Source into your project.

Swift Package Manager

To integrate EasyMenu into your project using SwiftPM add the following to your Package.swift:

 dependencies: [
    .package(url: "https://github.com/hdehghan/EasyMenu", from: "0.1.0"),
],

Usage

To deploy this project run

EasyMenu {
    Group {
        HStack {
            Image(systemName: "sun.min.fill")
                .foregroundColor(Color(.secondaryLabel))
            Slider(value: .constant(0.5))
            Image(systemName: "sun.max.fill")
                .foregroundColor(Color(.secondaryLabel))
        }
        .padding(.horizontal)
        .frame(height: 50)
    }
                
    Divider()
                    
    Toggle("Show Translate", isOn: .constant(true))
        .padding(.horizontal)
        .frame(height: 54.0)
} label: {
    Image(systemName: "textformat.size")
}

Demo

image example

Requirements

EasyMenu Swift Xcode Platforms
EasyMenu 0.1 Swift 5.0 Xcode 12.0 iOS 13.0

Roadmap

  • Support DarkMode
  • Support macOS
  • Support NavigationView.toolbar

Communication

  • If you found a bug, open an issue or submit a fix via a pull request.
  • If you have a feature request, open an issue or submit a implementation via a pull request or hit me up on [email protected] or telegram..
  • If you want to contribute, submit a pull request onto the master branch.
  • Contributions are always welcome!

easymenu's People

Contributors

hdehghan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.