Skip to content

Commit

Permalink
Release 0.9.0 (#137)
Browse files Browse the repository at this point in the history
* Release 0.9.0

* Update readme and example

* Update preview gifs

* Update readme
  • Loading branch information
jjochen committed Mar 1, 2018
1 parent f5c6bcd commit fe76b32
Show file tree
Hide file tree
Showing 49 changed files with 5,876 additions and 942 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## [0.9.0](https://github.com/jjochen/JJFloatingActionButton/tree/0.9.0) (2018-03-01)
[Full Changelog](https://github.com/jjochen/JJFloatingActionButton/compare/0.8.0...0.9.0)

**Implemented enhancements:**

- Make item title position configurable [\#122](https://github.com/jjochen/JJFloatingActionButton/issues/122)
- Add more opening styles [\#87](https://github.com/jjochen/JJFloatingActionButton/issues/87)

**Merged pull requests:**

- Add App Icon to example project [\#136](https://github.com/jjochen/JJFloatingActionButton/pull/136)
- Improve configurability of animations [\#134](https://github.com/jjochen/JJFloatingActionButton/pull/134) [[added](https://github.com/jjochen/JJFloatingActionButton/labels/added)] [[changed](https://github.com/jjochen/JJFloatingActionButton/labels/changed)]
- Add codeclimate configuration [\#133](https://github.com/jjochen/JJFloatingActionButton/pull/133)
- Configure swift version in pod spec [\#131](https://github.com/jjochen/JJFloatingActionButton/pull/131)
- Make position of action item title configurable [\#130](https://github.com/jjochen/JJFloatingActionButton/pull/130) [[added](https://github.com/jjochen/JJFloatingActionButton/labels/added)]
- Update dependencies [\#129](https://github.com/jjochen/JJFloatingActionButton/pull/129)
- Revert default color for item title and item circle to white [\#126](https://github.com/jjochen/JJFloatingActionButton/pull/126) [[changed](https://github.com/jjochen/JJFloatingActionButton/labels/changed)]

## [0.8.0](https://github.com/jjochen/JJFloatingActionButton/tree/0.8.0) (2018-01-22)
[Full Changelog](https://github.com/jjochen/JJFloatingActionButton/compare/0.7.2...0.8.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ internal class ConfigurationExampleViewController: UIViewController {
Helper.showAlert(for: item)
}

let item3 = actionButton.addItem()
item3.titleLabel.text = "Owl"
item3.imageView.image = #imageLiteral(resourceName: "Owl")
item3.buttonColor = .black
item3.buttonImageColor = .white
item3.action = { item in
let item = actionButton.addItem()
item.titleLabel.text = "Owl"
item.imageView.image = #imageLiteral(resourceName: "Owl")
item.buttonColor = .black
item.buttonImageColor = .white
item.action = { item in
Helper.showAlert(for: item)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Example/JJFloatingActionButton/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.8.0</string>
<string>0.9.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PODS:
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- JJFloatingActionButton (0.8.0)
- JJFloatingActionButton (0.9.0)
- Nimble (7.0.3)
- Nimble-Snapshots (6.3.0):
- Nimble-Snapshots/Core (= 6.3.0)
Expand All @@ -25,7 +25,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
JJFloatingActionButton: 5b54439d0beba6d5cc258a59d209cc27a1f47c4b
JJFloatingActionButton: 4377ec056fad5811bf3ee14f4bc9b7ae82129a97
Nimble: 7f5a9c447a33002645a071bddafbfb24ea70e0ac
Nimble-Snapshots: f5459b5b091678dc942d03ec4741cacb58ba4a52
Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08
Expand Down
Binary file modified Images/JJFloatingActionButton.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/JJFloatingActionButtonBasics.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/JJFloatingActionButtonCircular.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Images/JJFloatingActionButtonCircularPop.gif
Binary file not shown.
Binary file modified Images/JJFloatingActionButtonConfiguration.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/JJFloatingActionButtonSingleItem.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion JJFloatingActionButton.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'JJFloatingActionButton'
spec.version = '0.8.0'
spec.version = '0.9.0'
spec.swift_version = '4.0'
spec.author = { 'Jochen Pfeiffer' => '[email protected]' }
spec.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
# JJFloatingActionButton
Floating Action Button for iOS

![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg) [![Version](https://img.shields.io/cocoapods/v/JJFloatingActionButton.svg?style=flat)](https://cocoapods.org/pods/JJFloatingActionButton) [![License](https://img.shields.io/cocoapods/l/JJFloatingActionButton.svg?style=flat)](https://cocoapods.org/pods/JJFloatingActionButton) [![Platform](https://img.shields.io/cocoapods/p/JJFloatingActionButton.svg?style=flat)](https://cocoapods.org/pods/JJFloatingActionButton) [![Build Status](https://circleci.com/gh/jjochen/JJFloatingActionButton.svg?style=shield)](https://circleci.com/gh/jjochen/JJFloatingActionButton) [![codecov](https://codecov.io/gh/jjochen/JJFloatingActionButton/branch/master/graph/badge.svg)](https://codecov.io/gh/jjochen/JJFloatingActionButton) [![Code Climate](https://img.shields.io/codeclimate/maintainability/jjochen/JJFloatingActionButton.svg)](https://codeclimate.com/github/jjochen/JJFloatingActionButton) [![Documentation](https://jjochen.github.io/JJFloatingActionButton/badge.svg)](https://jjochen.github.io/JJFloatingActionButton) [![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/jjochen/JJFloatingActionButton/issues)

Until reaching milestone 1.0.0 there might be breaking changes in minor versions!

<p align="center">
<a href="#features">Features</a> • <a href="#preview">Preview</a> • <a href="#requirements">Requirements</a> • <a href="#installation">Installation</a> • <a href="#usage">Usage</a> • <a href="#author">Author</a> • <a href="#license">License</a>
<img src="https://img.shields.io/badge/Swift-4.0-orange.svg" alt="Swift 4.0" />
<a href="https://cocoapods.org/pods/JJFloatingActionButton"><img src="https://img.shields.io/cocoapods/v/JJFloatingActionButton.svg?style=flat" alt="Version" /></a>
<a href="https://cocoapods.org/pods/JJFloatingActionButton"><img src="https://img.shields.io/cocoapods/l/JJFloatingActionButton.svg?style=flat" alt="License" /></a>
<a href="https://cocoapods.org/pods/JJFloatingActionButton"><img src="https://img.shields.io/cocoapods/p/JJFloatingActionButton.svg?style=flat" alt="Platform" /></a>
<a href="https://circleci.com/gh/jjochen/JJFloatingActionButton"><img src="https://circleci.com/gh/jjochen/JJFloatingActionButton.svg?style=shield" alt="Build Status" /></a>
<a href="https://codecov.io/gh/jjochen/JJFloatingActionButton"><img src="https://codecov.io/gh/jjochen/JJFloatingActionButton/branch/master/graph/badge.svg" alt="codecov" /></a>
<a href="https://codeclimate.com/github/jjochen/JJFloatingActionButton"><img src="https://img.shields.io/codeclimate/maintainability/jjochen/JJFloatingActionButton.svg" alt="Code Climate" /></a>
<a href="https://jjochen.github.io/JJFloatingActionButton"><img src="https://jjochen.github.io/JJFloatingActionButton/badge.svg" alt="Documentation" /></a>
<a href="https://github.com/jjochen/JJFloatingActionButton/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="Contributions Welcome" /></a>
</p>

<p align="center">
<a href="#features">Features</a> • <a href="#preview">Preview</a> • <a href="#requirements">Requirements</a> • <a href="#installation">Installation</a> • <a href="#usage">Usage</a> • <a href="#author">Author</a> • <a href="#license">License</a>
</p>

## <a name="features"></a>Features

Expand All @@ -30,7 +39,7 @@ Until reaching milestone 1.0.0 there might be breaking changes in minor versions
<img src="https://github.com/jjochen/JJFloatingActionButton/raw/master/Images/JJFloatingActionButtonConfiguration.gif" width='250' alt="Preview Configuration">
</p>
<p align="center">
<img src="https://github.com/jjochen/JJFloatingActionButton/raw/master/Images/JJFloatingActionButtonCircularPop.gif" width='250' alt="Preview Circular Pop">
<img src="https://github.com/jjochen/JJFloatingActionButton/raw/master/Images/JJFloatingActionButtonCircular.gif" width='250' alt="Preview Circular">
<img src="https://github.com/jjochen/JJFloatingActionButton/raw/master/Images/JJFloatingActionButtonSingleItem.gif" width='250' alt="Preview Single Item">
</p>

Expand Down Expand Up @@ -98,6 +107,9 @@ view.addSubview(actionButton)
actionButton.translatesAutoresizingMaskIntoConstraints = false
actionButton.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -16).isActive = true
actionButton.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -16).isActive = true

// last 4 lines can be replaced with
// actionButton.display(inViewController: self)
```

### Configuration
Expand All @@ -110,8 +122,8 @@ actionButton.buttonImage = UIImage(named: "Dots")
actionButton.buttonColor = .red
actionButton.buttonImageColor = .white

actionButton.buttonOpeningStyle = .transition(image: UIImage(named: "X"))
actionButton.itemOpeningStyle = .popUp(interItemSpacing: 14)
actionButton.buttonAnimationConfiguration = .transition(toImage: UIImage(named: "X"))
actionButton.itemAnimationConfiguration = .slideIn(withInterItemSpacing: 14)

actionButton.layer.shadowColor = UIColor.black.cgColor
actionButton.layer.shadowOffset = CGSize(width: 0, height: 1)
Expand All @@ -120,6 +132,8 @@ actionButton.layer.shadowRadius = CGFloat(2)

actionButton.itemSizeRatio = CGFloat(0.75)
actionButton.configureDefaultItem { item in
item.titlePosition = .trailing

item.titleLabel.font = .boldSystemFont(ofSize: UIFont.systemFontSize)
item.titleLabel.textColor = .white
item.buttonColor = .white
Expand All @@ -140,7 +154,7 @@ item.titleLabel.text = "Owl"
item.imageView.image = UIImage(named: "Owl")
item.buttonColor = .black
item.buttonImageColor = .white
tem.action = { item in
item.action = { item in
// Do something
}
```
Expand Down
Loading

0 comments on commit fe76b32

Please sign in to comment.