{"id":2187,"url":"https://github.com/dhirajjadhao/Newly","last_synced_at":"2025-08-02T23:32:05.526Z","repository":{"id":56921102,"uuid":"74106348","full_name":"dhirajjadhao/Newly","owner":"dhirajjadhao","description":"Newly is a drop in solution to add Twitter/Facebook/Linkedin style, new updates/tweets/posts available button. It can be used to notify user about new content availability and can other actions can be triggers using its delegate method.","archived":false,"fork":false,"pushed_at":"2018-11-12T04:56:09.000Z","size":805,"stargazers_count":194,"open_issues_count":1,"forks_count":23,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-10T22:28:38.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhirajjadhao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T07:33:40.000Z","updated_at":"2024-10-22T12:51:04.000Z","dependencies_parsed_at":"2022-08-21T04:50:39.653Z","dependency_job_id":null,"html_url":"https://github.com/dhirajjadhao/Newly","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhirajjadhao%2FNewly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhirajjadhao%2FNewly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhirajjadhao%2FNewly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhirajjadhao%2FNewly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhirajjadhao","download_url":"https://codeload.github.com/dhirajjadhao/Newly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503139,"owners_count":17930519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:07.027Z","updated_at":"2024-12-06T17:30:48.385Z","avatar_url":"https://github.com/dhirajjadhao.png","language":"Objective-C","funding_links":[],"categories":["Objective-C","UI"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"![newly 2](https://cloud.githubusercontent.com/assets/2684979/20462091/9357647c-af38-11e6-992f-07b9c263bb59.png)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Newly.svg)](https://img.shields.io/cocoapods/v/Newly.svg)\n[![Platform](https://img.shields.io/cocoapods/p/Newly.svg?style=flat)](http://cocoadocs.org/docsets/Newly)\n\u003ca href=\"https://developer.apple.com/swift\"\u003e\u003cimg src=\"https://img.shields.io/badge/swift3-compatible-4BC51D.svg?style=flat\" alt=\"Swift 3 compatible\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://raw.githubusercontent.com/xmartlabs/Eureka/master/LICENSE\"\u003e\u003cimg src=\"http://img.shields.io/badge/license-MIT-blue.svg?style=flat\" alt=\"License: MIT\" /\u003e\u003c/a\u003e\n`Newly` is a drop in solution to add Twitter/Facebook/Linkedin style, new updates/tweets/posts available button. It can be used to notify user about new content availability and can other actions can be triggers using its delegate method.\n\n\n![ezgif com-resize](https://cloud.githubusercontent.com/assets/2684979/20461445/a411dee6-af24-11e6-89da-5a67796819d6.gif)\n![ezgif com-resize-2](https://cloud.githubusercontent.com/assets/2684979/20624689/567c125a-b334-11e6-99a7-3f851f46d05d.gif)\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n\n## Android Version of Newly:\n\n\u003ca href=\"https://github.com/Auto-Droid/Newly\"\u003e\n\u003cimg src=\"https://github.com/ramotion/navigation-stack/raw/master/Android_Java@2x.png\" width=\"178\" height=\"81\"\u003e\u003c/a\u003e\n\n- Contributed by [Sourabh Karkal](https://github.com/Auto-Droid)\n \n## Requirements\n\n- iOS 9.0+\n- Xcode 8.0+\n- Swift 3.0+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build Newly.\n\nTo integrate Newly into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'Newly'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n\n## Usage\n\n### Showing Newly\n\n```swift\nimport Newly\n\nlet newly = Newly()\n\nnewly.showUpdate(message: \"↑ New Tweets\")\n```\n![ezgif com-resize](https://cloud.githubusercontent.com/assets/2684979/20461445/a411dee6-af24-11e6-89da-5a67796819d6.gif)\n![ezgif com-resize-2](https://cloud.githubusercontent.com/assets/2684979/20624689/567c125a-b334-11e6-99a7-3f851f46d05d.gif)\n\n### Hiding Newly\n\nUse this if you want to manually hide `Newly`. By default `Newly` will hide on touch.\n \n```swift\nnewly.hideUpdate()\n```\n### On Click Updates\n\nYou can use `Newly` delegate to get its on click update.\n\nYou can set delegate in your `ViewDidLoad` method.\n\n```swift\nnewly.delegate = self\n```\n\nAnd then add extension for `NewlyDelegate`\n\n```swift\nextension ViewController:NewlyDelegate{\n    \n    func newlyDidTapped() {\n        \n        // Your custom code to trigger other actions once Newly is touched.\n    }\n}\n\n```\n\n\n### Appearance Customization \n\nYou can customize appearance of `Newly` using following properties.\n\n\n\n```swift\nnewly.backgroundColor = UIColor(colorLiteralRed: 0, green: 153.0/255.0, blue: 229.0/255.0, alpha: 1.0)\n```\nThis will set the background colour for `Newly`.\n\n\n```swift\nnewly.textColor = UIColor.white\n```\nThis will set the text colour for `Newly`.\n\n\n```swift\nnewly.heightOffset = 78.0\n```\nThis will set the height from top of the screen at which `Newly` will be displayed.\n\n\n\n```swift\nnewly.animationInterval = 1.0\n```\nThis is will the animation time interval to show and hide `Newly`.\n\n\n```swift\nnewly.hideOnTouch = true\n```\nWhether `Newly` should auto hide on touch.\n\n\n```swift\nnewly.isUpdateVisible = false\n```\nWhether `Newly` is currenly visible.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhirajjadhao%2FNewly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhirajjadhao%2FNewly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhirajjadhao%2FNewly/lists"}