프로젝트
GitHub에서 보기
GitHawkApp/Squawk
소개
Quick & interactive iOS alerts in Swift.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSquawk
Show important alerts from the bottom of the screen with full customization control.

Installation
Just add Squawk to your Podfile and pod install. Done!
pod 'Squawk'
Usage
After installing Squawk, you can start displaying alerts immediately:
import Squawk
func onError() {
Squawk.shared.show(config: Squawk.Configuration(
text: "Something went wrong!"
))
}
Use the view param if you want to show the alert within a specific view.
func viewDidAppear() {
super.viewDidAppear()
Squawk.shared.show(
in: view,
config: Squawk.Configuration(
text: "Peek-a-boo"
)
)
}
Configuration
Squawk.Configuration comes with loads of options:
text- The text in the alerttextColor- The color of the text 🙄backgroundColor- Background color of the view (note: will be blurred)insets- Inset the text and button within the alert viewmaxWidth- The max width of the alert viewhintMargin- Margin between the "hint" (top pill) and texthintSize- The size of the hint pillcornerRadius- Corner radius of the alert viewbottomPadding- Extra padding to add to subtract from the finalyof the alert viewborderColor- Border color of the alert viewdismissDuration- How long, in seconds, to wait before automatically dismissingbuttonVisible- Set totrueto show the "info" buttonbuttonLeftMargin- The margin between the button and textbuttonTapHandler- A closure to execute when the "info" button is tapped
Acknowledgements
- Created with ❤️ by Ryan Nystrom
관련 프로젝트 살펴보기
불러오는 중…