All Projects → qiuncheng → Noticebar

qiuncheng / Noticebar

Licence: mit
😍A simple NoticeBar written by Swift 3, similar with QQ notice view.

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Noticebar

Skcalendarview
SKCalendarView是一个高可控性的日历基础组件,为了提高应用的自由度,默认只提供了日历部分的视图封装,但不涵盖切换月份按钮、年月分显示等非关键性控件,但请不要担心,SKCalendarView为你提供了多样性的API,你可以很轻松的拿到这些信息去展示在你自己的自定义控件中。不仅如此,SKCalendarView还为你封装了公历、农历、节假日以及中国24节气的核心算法,即使你觉得默认的视图并不合胃口,也可以直接快速的利用这套算法创造出一个全新的日历控件。最后,SKCalendarView还提供了一些简单的切换动画,如果你不喜欢它,可以忽略掉,用自己的,这里完全不会受到任何限制。
Stars: ✭ 121 (-48.95%)
Mutual labels:  ios-ui
Tangerine
Swift µframework for fetching images 🍊
Stars: ✭ 149 (-37.13%)
Mutual labels:  ios-ui
Fontawesomekit.swift
A better choice for iOS Developer to use FontAwesome Icon with UI.😍
Stars: ✭ 194 (-18.14%)
Mutual labels:  ios-ui
Pinlayout
Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]
Stars: ✭ 1,870 (+689.03%)
Mutual labels:  ios-ui
Jsqmessagesviewcontroller
An elegant messages UI library for iOS
Stars: ✭ 11,240 (+4642.62%)
Mutual labels:  ios-ui
Lovefreshpeakapp oc
IOS电商购物APP: 爱鲜蜂OC版,规范的代码风格,使用Masonry布局适配所有ios机型 Shopping e-commerce projects, using automatic layout, suitable for any Ios model Website ;
Stars: ✭ 152 (-35.86%)
Mutual labels:  ios-ui
Hwpopcontroller
pop up your ViewController with custom size, position and animations
Stars: ✭ 113 (-52.32%)
Mutual labels:  ios-ui
Parchment
A paging view controller with a highly customizable menu ✨
Stars: ✭ 2,812 (+1086.5%)
Mutual labels:  ios-ui
Swiftui Tutorials
A code example and translation project of SwiftUI. / 一个 SwiftUI 的示例、翻译的教程项目。
Stars: ✭ 1,992 (+740.51%)
Mutual labels:  ios-ui
Mycoretextlabel
图文混排 , 实现图片文字混排 , 可显示常规链接比如网址,@,#话题#,手机号 , 邮箱号等 , 可以自定义链接字,设置关键字高亮等功能 . 适用于微博,微信,IM聊天对话等场景 . 实现这些功能仅用了几百行代码,耦合性也较低
Stars: ✭ 192 (-18.99%)
Mutual labels:  ios-ui
Poliopager
A flexible TabBarController with search tab like SNKRS.
Stars: ✭ 133 (-43.88%)
Mutual labels:  ios-ui
Eureka
Elegant iOS form builder in Swift
Stars: ✭ 11,345 (+4686.92%)
Mutual labels:  ios-ui
Jxtalertmanager
UIAlertView/UIAlertController便捷调用工具
Stars: ✭ 177 (-25.32%)
Mutual labels:  ios-ui
Bpstatusbaralert
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.
Stars: ✭ 129 (-45.57%)
Mutual labels:  ios-ui
Ppasyncdrawingkit
This is a iOS asynchronously drawing view Kit.
Stars: ✭ 205 (-13.5%)
Mutual labels:  ios-ui
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+4458.65%)
Mutual labels:  ios-ui
Wobbly
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.
Stars: ✭ 150 (-36.71%)
Mutual labels:  ios-ui
Swiftpagemenu
Customizable Page Tab Menu Controller 👍
Stars: ✭ 233 (-1.69%)
Mutual labels:  ios-ui
Pvview
A small library that helps you to make an amazing parallax view
Stars: ✭ 227 (-4.22%)
Mutual labels:  ios-ui
Lmmediaplayer
A video and audio player with replaceable UI component.
Stars: ✭ 183 (-22.78%)
Mutual labels:  ios-ui

NoticeBar

😍A simple NoticeBar written by Swift 3, similar with QQ notice view.😀
Build Status pod version Carthage compatible GitHub license

ScreenShots

Remember: If you want the status bar style change, you must set the View controller-based status bar appearance to NO in the info.plist.

Support

Swift 3.0 & iOS 8+

Installation

CocoaPods

  1. add pod 'NoticeBar' to your Podfile.
  2. Run pod install OR pod update.
  3. import Noticebar

Carthage

  1. Add Noticebar to your Cartfile. e.g., github "qiuncheng/Noticebar" ~> 0.1.5
  2. Run carthage update
  3. Follow the rest of the standard Carthage installation instructions to add Noticebar to your project.
  4. import NoticeBar

Manually

  1. Download the full file.
  2. Drag the NoticeBar folder to your project.

Example

Four Default Types:

  • NoticeBarAnimationType.info
  • NoticeBarAnimationType.attention
  • NoticeBarAnimationType.success
  • NoticeBarAnimationType.error

How to use? For example: -> NoticeBarAnimationType.info:

/// title : The message you want to show
/// defaultType : Above four types with different style above.
let noticeBar = NoticeBar(title: "#message", defaultType:.info)
/// duration : How long the noticeBar will stay. And it will dismiss automatically. 
/// completed :optional. When the noticeBar dismissed, what you want to do, nothing type nil.
noticeBar.show(duration: #TimeInterval, completed: { (#Bool) in
})

Custom NoticeBarConfig

The NoticeBarConfig will manage the NoticeBar's title default is nil, image if needed, textColor default is UIColor.black, backgroundColor default is UIColor.white, animationType default is from NoticeBarAnimationType.top, barStyle default is NoticeBarStyle.onNavigationBar, margin default is 10.0 which will determine the space between image and title, the space between NoticeBar left and image.
How to use? For example:

/// NoticeBarConfig : There are some other NoticeBarConfig init, it's up to you which to use.
let config = NoticeBarConfig(title: "#message you want to show.", image: #image, textColor: UIColor.white, backgroundColor: UIColor.red, barStyle: NoticeBarStyle.onNavigationBar, animationType: NoticeBarAnimationType.top )
let noticeBar = NoticeBar(config: config)
/// do something before noticeBar show.      
/// such as : UIApplication.shared.statusBarStyle = .lightContent
noticeBar.show(duration: 2.0, completed: {
    (finished) in
    if finished {
        /// do something here.
        /// such as : UIApplication.shared.statusBarStyle = .default
    }
})

TODO

  • [ ] Add background image
  • [ ] Add custom view
  • [x] Add custom super view, now is keyWindows.
  • [ ] Add dismiss action manually, now dimiss is automatically.

Thanks

  1. QQ's Notice View which the idea come from.
2. [Pin's Notice View](https://itunes.apple.com/us/app/pin-jian-tie-ban-kuo-zhan/id1039643846?mt=8) which I take example by.

LICENCE

Under MIT License

Copyright (c) 2016 QiunCheng. All rights reserved.

About me

A student in Xidian University. MY RESUME.
If you have a new idea about this project, Please let me know. OR pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].