[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6830":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},6830,"SCLAlertView-Swift","vikmeup\u002FSCLAlertView-Swift","vikmeup","Beautiful animated Alert View. Written in Swift","",null,"Swift",5319,753,133,135,0,1,3,39.63,"MIT License",false,"master",true,[],"2026-06-12 02:01:30","SCLAlertView\n===========\n\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FSCLAlertView.svg?style=flat)](http:\u002F\u002Fcocoadocs.org\u002Fdocsets\u002FSCLAlertView\u002F)\n[![Carthage compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-4BC51D.svg?style=flat)](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n\nAnimated Alert View written in Swift, which can be used as a `UIAlertView` or `UIAlertController` replacement with nice customization features. \n\n![BackgroundImage](https:\u002F\u002Fraw.githubusercontent.com\u002Fvikmeup\u002FSCPopUpView\u002Fmaster\u002FsuccessScreenshot.png)_\n![BackgroundImage](https:\u002F\u002Fraw.githubusercontent.com\u002Fvikmeup\u002FSCPopUpView\u002Fmaster\u002FeditScreenshot.png)\n\nEasy to use\n----\n\n### Get Started\n\n```swift\n\u002F\u002F Get started\nSCLAlertView().showInfo(\"Important info\", subTitle: \"You are great\")\n```\n\n### Updating the alert view\n\n```swift\nlet alertViewResponder: SCLAlertViewResponder = SCLAlertView().showSuccess(\"Hello World\", subTitle: \"This is a more descriptive text.\")\n\n\u002F\u002F Upon displaying, change\u002Fclose view\nalertViewResponder.setTitle(\"New Title\") \u002F\u002F Rename title\nalertViewResponder.setSubTitle(\"New description\") \u002F\u002F Rename subtitle\nalertViewResponder.close() \u002F\u002F Close view\n```\n\n### Alternative alert types\n\n```\nSCLAlertView().showError(\"Hello Error\", subTitle: \"This is a more descriptive error text.\") \u002F\u002F Error\nSCLAlertView().showNotice(\"Hello Notice\", subTitle: \"This is a more descriptive notice text.\") \u002F\u002F Notice\nSCLAlertView().showWarning(\"Hello Warning\", subTitle: \"This is a more descriptive warning text.\") \u002F\u002F Warning\nSCLAlertView().showInfo(\"Hello Info\", subTitle: \"This is a more descriptive info text.\") \u002F\u002F Info\nSCLAlertView().showEdit(\"Hello Edit\", subTitle: \"This is a more descriptive info text.\") \u002F\u002F Edit\n```\n\n### Raw call to showTitle()\n\n```swift\nSCLAlertView().showTitle(\n    \"Congratulations\", \u002F\u002F Title of view\n    subTitle: \"Operation successfully completed.\", \u002F\u002F String of view\n    duration: 2.0, \u002F\u002F Duration to show before closing automatically, default: 0.0\n    completeText: \"Done\", \u002F\u002F Optional button value, default: \"\"\n    style: .success, \u002F\u002F Styles - see below.\n    colorStyle: UIColorFromRGB(0xA429FF),\n    colorTextButton: .white\n)\n```\n\n### Controls\n\n#### Custom Appearance\n\n```swift\n\u002F\u002F SCLAlertView.SCLAppearanc has more than 15 different properties to customize. See below.\n\nlet appearance = SCLAlertView.SCLAppearance(\n    kTitleFont: UIFont(name: \"HelveticaNeue\", size: 20)!,\n    kTextFont: UIFont(name: \"HelveticaNeue\", size: 14)!,\n    kButtonFont: UIFont(name: \"HelveticaNeue-Bold\", size: 14)!,\n    showCloseButton: false\n)\n\nlet alert = SCLAlertView(appearance: appearance)\n```\n\n#### Add buttons\n\n```swift\nlet alertView = SCLAlertView()\nalertView.addButton(\"First Button\", target:self, selector:Selector(\"firstButton\"))\nalertView.addButton(\"Second Button\") {\n    print(\"Second button tapped\")\n}\nalertView.showSuccess(\"Button View\", subTitle: \"This alert view has buttons\")\n```\n\n#### Hide default close button\n\n```swift\nlet appearance = SCLAlertView.SCLAppearance(\n    showCloseButton: false\n)\nlet alertView = SCLAlertView(appearance: appearance)\nalertView.showSuccess(\"No button\", subTitle: \"You will have hard times trying to close me\")\n```\n\n#### Hide default close button & a duration to close the alert\n\n```swift\nlet appearance = SCLAlertView.SCLAppearance(\n    showCloseButton: false\n)\nlet alertView = SCLAlertView(appearance: appearance)\nalertView.showWarning(\"No button\", subTitle: \"Just wait for 3 seconds and I will disappear\", duration: 3)\n```\n\n\n#### Hide alert icon\n\n```swift\nlet appearance = SCLAlertView.SCLAppearance(\n    showCircularIcon: false\n)\nlet alertView = SCLAlertView(appearance: appearance)\nalertView.showSuccess(\"No icon\", subTitle: \"This is a clean alert without Icon!\")\n```\n\n#### Use a custom icon\n\n```swift\nlet appearance = SCLAlertView.SCLAppearance(\n    showCircularIcon: true\n)\nlet alertView = SCLAlertView(appearance: appearance)\nlet alertViewIcon = UIImage(named: \"IconImage\") \u002F\u002FReplace the IconImage text with the image name\nalertView.showInfo(\"Custom icon\", subTitle: \"This is a nice alert with a custom icon you choose\", circleIconImage: alertViewIcon)\n```\n\n\n#### Add Text fields\n\n```swift\n\u002F\u002F Add a text field\nlet alert = SCLAlertView()\nlet txt = alert.addTextField(\"Enter your name\")\nalert.addButton(\"Show Name\") {\n    print(\"Text value: \\(txt.text)\")\n}\nalert.showEdit(\"Edit View\", subTitle: \"This alert view shows a text box\")\n\n```\n\n#### Use a custom subview instead of a subtitle\n```swift\n\u002F\u002F Example of using the view to add two text fields to the alert\n\u002F\u002F Create custom Appearance Configuration\nlet appearance = SCLAlertView.SCLAppearance(\n    kTitleFont: UIFont(name: \"HelveticaNeue\", size: 20)!,\n    kTextFont: UIFont(name: \"HelveticaNeue\", size: 14)!,\n    kButtonFont: UIFont(name: \"HelveticaNeue-Bold\", size: 14)!,\n    showCloseButton: false,\n    dynamicAnimatorActive: true\n)\n\n\u002F\u002F Initialize SCLAlertView using custom Appearance\nlet alert = SCLAlertView(appearance: appearance)\n\n\u002F\u002F Creat the subview\nlet subview = UIView(frame: CGRect(x: 0,y: 0,width: 216,height: 70))\nlet x = (subview.frame.width - 180) \u002F 2\n\n\u002F\u002F Add textfield 1\nlet textfield1 = UITextField(frame: CGRect(x: x,y: 10,width: 180,height: 25))\ntextfield1.layer.borderColor = UIColor.green.cgColor\ntextfield1.layer.borderWidth = 1.5\ntextfield1.layer.cornerRadius = 5\ntextfield1.placeholder = \"Username\"\ntextfield1.textAlignment = NSTextAlignment.center\nsubview.addSubview(textfield1)\n\n\u002F\u002F Add textfield 2\nlet textfield2 = UITextField(frame: CGRect(x: x,y: textfield1.frame.maxY + 10,width: 180,height: 25))\ntextfield2.isSecureTextEntry = true\ntextfield2.layer.borderColor = UIColor.blue.cgColor\ntextfield2.layer.borderWidth = 1.5\ntextfield2.layer.cornerRadius = 5\ntextfield1.layer.borderColor = UIColor.blue.cgColor\ntextfield2.placeholder = \"Password\"\ntextfield2.textAlignment = NSTextAlignment.center\nsubview.addSubview(textfield2)\n\n\u002F\u002F Add the subview to the alert's UI property\nalert.customSubview = subview\n_ = alert.addButton(\"Login\") {\n    print(\"Logged in\")\n}\n\n\u002F\u002F Add Button with visible timeout and custom Colors\nlet showTimeout = SCLButton.ShowTimeoutConfiguration(prefix: \"(\", suffix: \" s)\")\n_ = alert.addButton(\"Timeout Button\", backgroundColor: UIColor.brown, textColor: UIColor.yellow, showTimeout: showTimeout) {\n    print(\"Timeout Button tapped\")\n}\n\nlet timeoutValue: TimeInterval = 10.0\nlet timeoutAction: SCLAlertView.SCLTimeoutConfiguration.ActionType = {\n    print(\"Timeout occurred\")\n}\n\n_ = alert.showInfo(\"Login\", subTitle: \"\", timeout: SCLAlertView.SCLTimeoutConfiguration(timeoutValue: timeoutValue, timeoutAction: timeoutAction))\n```\n\n\n#### List of properties to customize\n\n```swift\n\u002F\u002F Button \nkButtonFont: UIFont                     \nbuttonCornerRadius : CGFloat            \nshowCloseButton: Bool                   \nkButtonHeight: CGFloat                  \n\n\u002F\u002F Circle Image\nshowCircularIcon: Bool\nkCircleTopPosition: CGFloat\nkCircleBackgroundTopPosition: CGFloat\nkCircleHeight: CGFloat\nkCircleIconHeight: CGFloat\n\n\u002F\u002F Text\nkTitleFont: UIFont\nkTitleTop:CGFloat\nkTitleHeight:CGFloat\nkTextFont: UIFont\nkTextHeight: CGFloat\nkTextFieldHeight: CGFloat\nkTextViewdHeight: CGFloat\n\n\u002F\u002F View \nkDefaultShadowOpacity: CGFloat          \nkWindowWidth: CGFloat\nkWindowHeight: CGFloat\nshouldAutoDismiss: Bool \u002F\u002F Set this false to 'Disable' Auto hideView when SCLButton is tapped\nfieldCornerRadius : CGFloat\ncontentViewCornerRadius : CGFloat\ndisableTapGesture: Bool \u002F\u002F set this to true if adding tableview to subView\n```\n\n\n### Alert View Styles\n\n```swift\nenum SCLAlertViewStyle: Int {\n    case success, error, notice, warning, info, edit, wait, question\n}\n```\n\n\n### Alert show animation Styles\n\n```swift\n\u002F\u002F Animation Styles\npublic enum SCLAnimationStyle {\n    case noAnimation, topToBottom, bottomToTop, leftToRight, rightToLeft\n}\n```\n\n\nInstallation\n---\n\nSCLAlertView is available through \n\n### [CocoaPods](http:\u002F\u002Fcocoapods.org)\n\nTo install add the following line to your Podfile:\n\n    pod 'SCLAlertView'\n\n### [Carthage](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n\nTo install add the following line to your Cartfile:\n\n`github \"vikmeup\u002FSCLAlertView-Swift\" \"master\"`\n\nCollaboration\n---\n\nI tried to build an easy to use API, while beeing flexible enough for multiple variations, but I'm sure there are ways of improving and adding more features, so feel free to collaborate with ideas, issues and\u002For pull requests.\n\nIncoming improvements\n---\n\n- More animations\n- Performance tests\n\nHas been developed initially for the [Scroll Feed](https:\u002F\u002Fitunes.apple.com\u002Fus\u002Fapp\u002Fscroll-feed\u002Fid842422195?ls=1&mt=8) app\n\n- Design [@SherzodMx](https:\u002F\u002Ftwitter.com\u002FSherzodMx) Sherzod Max\n- Development [@vikmeup](https:\u002F\u002Ftwitter.com\u002Fvikmeup) Viktor Radchenko\n- Improvements by [@bih](http:\u002F\u002Fgithub.com\u002Fbih) Bilawal Hameed, [@rizjoj](http:\u002F\u002Fgithub.com\u002Frizjoj) Riz Joj\n","SCLAlertView-Swift 是一个用 Swift 编写的美观动画 Alert View 库，可以作为 `UIAlertView` 或 `UIAlertController` 的替代品。其核心功能包括多种类型的警告视图（如成功、错误、通知等），支持自定义标题、子标题、按钮和样式，并且提供了丰富的外观配置选项，使开发者能够轻松创建符合应用风格的弹窗。此外，该库还支持通过代码动态更新已显示的 alert 视图内容。SCLAlertView-Swift 适用于需要在 iOS 应用中展示信息提示或用户交互确认的所有场景，特别适合追求界面美观与用户体验一致性的项目。",2,"2026-06-11 03:09:07","top_language"]