DropDown
A package that creates a drop down ("curtain") style view
Install / Use
/learn @Yoddikko/DropDownREADME
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
- Add it to your project. Click the project name in the file section.
- Go in package dependencies.
- Click on "+".
- Enter "https://github.com/Yoddikko/DropDown" url in the search bar.
- Click add package.
How to use
Working for iPhone 8 to iPhone 13 Pro Max
- Add "import DropDown".
- Create a DropDown element.
- 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
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
