SkillAgentSearch skills...

DropDown

A package that creates a drop down ("curtain") style view

Install / Use

/learn @Yoddikko/DropDown
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DropDown

<p align="center"> <img style="text-align:center;" width="200" alt="Icon" src="https://user-images.githubusercontent.com/92546954/174389966-83dc6fba-6ad0-4d07-9c90-77c05bf48559.png"> </p>

Showcase

<p align="center"> <img style="text-align:center;" width="200" alt="Screenshot1" src="https://user-images.githubusercontent.com/92546954/174400591-3a9e8e64-8e40-4ee6-827a-5a52ca22a0d7.png"> <img style="text-align:center;" width="200" alt="Screenshot2" src="https://user-images.githubusercontent.com/92546954/174400587-be18202e-4be6-438b-a714-a9ca64872b37.png"> </p>

DropDown is a package for Swift that creates a drop down view that you can dismiss by dragging it upwards.

How to install

  1. Add it to your project. Click the project name in the file section.
  2. Go in package dependencies.
  3. Click on "+".
  4. Enter "https://github.com/Yoddikko/DropDown" url in the search bar.
  5. Click add package.

How to use

Working for iPhone 8 to iPhone 13 Pro Max
  1. Add "import DropDown".
  2. Create a DropDown element.
  3. Enter all parameters.

Code sample

BackgroundView()
  .overlay {
      DropDown(size: .small, curtainColor: .black, chevronColor: .white, content: {
          Text(loremIpsum)
      })
  }

Parameters

  • <b>size</b> - It his the height of the closed view
size: .small, .medium, .half
  • <b>curtainColor</b> - It is the background color of the view
curtainColor: Color
  • <b>chevronColor</b> - It is the color of the chevron arrow
chevronColor: Color

Credits

Thanks to <a href="https://github.com/Carminepo2"> @Carminepo2 </a> for helping me fixing some bugs.

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks0

Languages

Swift

Security Score

75/100

Audited on Dec 19, 2024

No findings