Newly is a drop in solution to add Twitter/Facebook/Linkedin style, new updates/tweets/posts available button

Related tags

UI Newly
Overview

newly 2 CocoaPods Compatible Platform Swift 3 compatible License: MIT 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.

ezgif com-resize ezgif com-resize-2

Android Version of Newly:

Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build Newly.

To integrate Newly into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '
   
    '
    do
    pod 'Newly'
end

Then, run the following command:

$ pod install

Usage

Showing Newly

import Newly

let newly = Newly()

newly.showUpdate(message: "↑ New Tweets")

ezgif com-resize ezgif com-resize-2

Hiding Newly

Use this if you want to manually hide Newly. By default Newly will hide on touch.

newly.hideUpdate()

On Click Updates

You can use Newly delegate to get its on click update.

You can set delegate in your ViewDidLoad method.

newly.delegate = self

And then add extension for NewlyDelegate

extension ViewController:NewlyDelegate{
    
    func newlyDidTapped() {
        
        // Your custom code to trigger other actions once Newly is touched.
    }
}

Appearance Customization

You can customize appearance of Newly using following properties.

newly.backgroundColor = UIColor(colorLiteralRed: 0, green: 153.0/255.0, blue: 229.0/255.0, alpha: 1.0)

This will set the background colour for Newly.

newly.textColor = UIColor.white

This will set the text colour for Newly.

newly.heightOffset = 78.0

This will set the height from top of the screen at which Newly will be displayed.

newly.animationInterval = 1.0

This is will the animation time interval to show and hide Newly.

newly.hideOnTouch = true

Whether Newly should auto hide on touch.

newly.isUpdateVisible = false

Whether Newly is currenly visible.

You might also like...
 UIAdapter - An elegant solution to the iOS screen adaptation problem
UIAdapter - An elegant solution to the iOS screen adaptation problem

UIAdapter - An elegant solution to the iOS screen adaptation problem πŸ‡¨πŸ‡³ ε€©ζœε­ζ°‘ Features Numerical type fast conversion Storyboard equal scale adaptati

SwiftUI: Components Library Inspired by Twitter's Bootstrap
SwiftUI: Components Library Inspired by Twitter's Bootstrap

bootswiftui SwiftUI: Components Library Inspired by Twitter's Bootstrap Warning This is just SwiftUI exercise. Please do not consider using this repo

Work in progress gallery of controls available to Catalyst apps using Optimized for Mac
Work in progress gallery of controls available to Catalyst apps using Optimized for Mac

Catalyst Controls Gallery Very simple work-in-progress demonstration of many common controls available to Mac Catalyst as of macOS 11. Provided moreso

Twitter swift ui tutorial
Twitter swift ui tutorial

twitter_swift_ui_tutorial MVVM 아킀텍쳐와 Swift UIλ₯Ό μ΄μš©ν•΄μ„œ Twitter의 MVP 버전 앱을 μ œμž‘ν•˜λŠ” 방법을 λ°°μš΄λ‹€. APIλ₯Ό Firestore 및 데이터 λͺ¨λΈκ³Ό ν†΅ν•©ν•˜λŠ” μž‘μ—…, μœ μ €λ₯Ό νŒ”λ‘œμš°ν•˜κ³ , tweet 생성, μ’‹μ•„μš”, direc

A Material Design drop down for iOS
A Material Design drop down for iOS

A Material Design drop down for iOS written in Swift. Demo Do pod try DropDown in your console and run the project to try a demo. To install CocoaPods

A drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles
A drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles

A drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles while pushing or popping a view controller for all orientations. And you don't need to write any line of code for it, it all happens automatically.

A few drop-in SwiftUI components for easily importing and thumb-nailing files

FilesUI A few drop-in SwiftUI components for easily importing and thumb-nailing files Usage 1. Import Files To import files you can use the FileImport

Anchorage - Single file UIView drag and drop system
Anchorage - Single file UIView drag and drop system

anchorage Single file UIView drag and drop system anchors.mp4 License Copyright

A radio button with a pretty animation
A radio button with a pretty animation

LTHRadioButton Slightly inspired by Google's material radio button. The clip below has 3 sections: full speed, 25% and 10%, but after converting it to

Releases(0.4.0)
Owner
Dhiraj Rajendra Jadhao
Geek + Tinkerer #Swift #iOS
Dhiraj Rajendra Jadhao
UIViewController subclass to beautifully present news articles and blog posts.

LMArticleViewController This framework allows you to create Apple News-inspired UIViewControllers with ease. It is heavily inspired by MRArticleViewCo

Luca Mozzarelli 7 Feb 3, 2022
A framework which helps you attach observers to `UIView`s to get updates on its frame changes

FrameObserver is a framework that lets you attach observers to any UIView subclass and get notified when its size changes. It doesn't use any Method S

null 11 Jul 25, 2022
MUDownloadButton - a Progressive Download button written in pure swift and inspired by AppStore download button

MUDownloadButton is a Progressive Download button written in pure swift and inspired by AppStore download button . feel free to contribute and pull requests

Mohammad ShahibZadeh 2 Feb 20, 2022
Bar Button Item that can be moved anywhere in the screen, like Android's stickers button.

FlowBarButtonItem Bar Button Item that can be moved anywhere in the screen, like Android's stickers button. [![CI Status](http://img.shields.io/travis

noppefoxwolf 153 Sep 15, 2022
Easily add drop shadows, borders, and round corners to a UIView.

Easily add drop shadows, borders, rounded corners to a UIView. Installation CocoaPods Add the follwing to your Podfile: pod 'Shades' Usage Storyboard

Aaron Sutton 14 Jun 20, 2020
Add the Notch on the menubar like the new MacBook Pro.

iNotch Add the Notch on the menubar like the new MacBook Pro. Installation This app works on macOS 11.0 or later. Download iNotch.zip from releases pa

Takuto NAKAMURA (Kyome) 8 Apr 3, 2022
You can dismiss modal viewcontroller like Facebook Messenger by pulling scrollview or navigationbar in Swift.

PullToDismiss PullToDismiss provides dismiss modal viewcontroller function like Facebook Messenger by pulling scrollview or navigationbar with smooth

Suguru Kishimoto 479 Dec 5, 2022
FacebookMe is a Swift App Mimics the personal profile tab of Facebook.

FacebookMe FacebookMe is a Swift App Mimics the personal profile tab of Facebook. It demos one simple way to implement a UITableView with mutiple sect

Kushal Shingote 3 Feb 20, 2022
Fully customizable Facebook reactions like control

Reactions is a fully customizable control to give people more ways to share their reaction in a quick and easy way. Requirements β€’ Usage β€’ Installatio

Yannick Loriot 585 Dec 28, 2022
πŸ“– A lightweight, paging view solution for SwiftUI

Getting Started | Customization | Installation Getting Started Basic usage Using Pages is as easy as: import Pages struct WelcomeView: View { @S

Nacho Navarro 411 Dec 29, 2022