Skip to content

Commit

Permalink
Updated to version 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Feb 26, 2014
1 parent 99e7c7f commit b8956b9
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 136 deletions.
2 changes: 1 addition & 1 deletion LICENCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SwipeView

Version 1.3, February 3rd, 2014
Version 1.3.1, February 26th, 2014

Copyright (C) 2010 Charcoal Design

Expand Down
139 changes: 138 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,141 @@ Alternatively, if you want a little more control you can supply a UIButton or UI

You can also nest UIControls within your item views and these will receive touches as expected (See the Controls Example project for how this can be done).

If you wish to detect other types of interaction such as swipes, double taps or long presses, the simplest way is to attach a UIGestureRecognizer to your item view or its subviews before passing it to the SwipeView.
If you wish to detect other types of interaction such as swipes, double taps or long presses, the simplest way is to attach a UIGestureRecognizer to your item view or its subviews before passing it to the SwipeView.


Release Notes
----------------

Version 1.3.1

- Fixed bug with scrollOffset changing when screen is rotated

Version 1.3

- SwipeView now requires ARC (see README for details)
- Added autoscroll property to set SwipeView scrolling at a constant speed
- Now supports animated item view resizing and screen rotation
- No longer crashes sometimes on iOS 7
- The scrollOffset property is now public
- Added scrollByOffset:duration: and scrollToOffset:duration: methods
- Calling reloadData no longer resets scroll position
- No longer behaves strangely if there is only one item and wrap is enabled
- Fixed problems with contentOffset when used inside UINavigationController
- You can now toggle wrapEnabled at any time without messing up item views
- Now conforms to -Weverything warning level

Version 1.2.10

- Fixed confict between SwipeView animation and UIScrollView scrolling
- Fixed issue due to missing [super layoutSubviews]

Version 1.2.9

- Fixed tap handling when wrap is enabled

Version 1.2.8

- Fixed bounds error when swipe view size is zero
- Fixed bug in the logic for automatically calculating item size
- Fixed bug where last visible view was sometimes not draw in non-wrapped mode
- Moved ARCHelper macros out of .h file so they do not affect non-ARC code in other classes

Version 1.2.7

- numberOfItems / numberOfPages getters now call numberOfItemsInSwipeView: dataSource method to ensure that value is correct.

Version 1.2.6

- SwipeView now calculates number of visible views more accurately
- Fixed a bug in the wrapping logic that could cause gaps when wrapEnabled = YES and alignment = SwipeViewAlignmentEdge
- SwipeView now won't attempt to call any datasource methods until the views need to be drawn, which avoids certain race conditions

Version 1.2.5

- Fixed issue where SwipeView was not correctly deferring view loading when the defersItemViewLoading option was enabled

Version 1.2.4

- SwipeView now correctly handles touch events on views outside the current page bounds
- Fixed rounding error when using defersItemViewLoading is enabled
- Added Controls Example to demo touch event handling

Version 1.2.3

- Fixed issue where setting currentItemIndex immediately after creating SwipeView would prevent user being able to swipe to the left

Version 1.2.2

- Fixed rounding error for edge-aligned SwipeViews with paging enabled

Version 1.2.1

- Fixed off-by-one error when using scrollToItemAtIndex:duration: method
- swipeViewDidScroll: event is now sent as normal when defersItemViewLoading is enabled, but swipeViewCurrentItemIndexDidChange: is still deferred

Version 1.2

- Added vertical scrolling option
- Changed itemWidth property and swipeViewItemWidth: delegate method to itemSize and swipeViewItemSize: respectively
- Fixes some bugs when defersItemViewLoading is enabled

Version 1.1.7

- Added delaysContentTouches property, which defaults to YES
- Fixed blank pages issue when using defersItemViewLoading

Version 1.1.6

- defersItemViewLoading property is now observed when swiping as well as when scrolling programatically
- Fixed divide-by-zero error

Version 1.1.5

- Fixed layout bug when scrolling more than a single page at a time
- Added defersItemViewLoading property

Version 1.1.4

- Scrolling methods now let you specify the duration of the scroll

Version 1.1.3

- Fixed reloading bug on wrapped SwipeViews
- Added test projects folder

Version 1.1.2

- Fixed wrapping issue with carousel for certain item counts
- Calling reloadData on carousel now resets currentItemIndex to zero

Version 1.1.1

- Removed some leftover debug code that had broken the view recycling logic
- Fixed bug where scrolling SwipeView programmatically immediately after loading
would cause a crash
- Added ARC Test example

Version 1.1

- Added support for wrapping
- It is now possible to display multiple items per page
- Fixed layout glitches when rotating or resizing view
- Added additional properties and delegate methods
- Added page control to example application

Version 1.0.1

- Fixed bug in delegate setter method
- Fixed crash when total number of items is less than visible number

Version 1.0

- Added dynamic view loading and recycling
- Added ARC support
- Added documentation
- Renamed some methods for consistency with iCarousel

Version 0.9

- Prerelease version.
128 changes: 0 additions & 128 deletions RELEASE NOTES.md

This file was deleted.

4 changes: 2 additions & 2 deletions SwipeView.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "SwipeView"
s.version = "1.3"
s.version = "1.3.1"
s.summary = "Horizontal, paged scrolling views based on UIScrollView, with convenient functionality in UITableView-style."
s.description = "SwipeView is a class designed to simplify the implementation of horizontal, paged scrolling views on iOS. It is based on a UIScrollView, but adds convenient functionality such as a UITableView-style dataSource/delegate interface and efficient view loading, unloading and recycling."
s.homepage = "https://github.com/nicklockwood/SwipeView"
s.license = { :type => 'zlib', :file => 'LICENCE.md' }
s.author = { "Nick Lockwood" => "[email protected]" }
s.source = { :git => "https://github.com/nicklockwood/SwipeView.git", :tag => "1.3" }
s.source = { :git => "https://github.com/nicklockwood/SwipeView.git", :tag => "1.3.1" }
s.source_files = 'SwipeView'
s.requires_arc = true
s.platform = :ios
Expand Down
7 changes: 3 additions & 4 deletions SwipeView/SwipeView.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// SwipeView.h
//
// Version 1.3
// Version 1.3.1
//
// Created by Nick Lockwood on 03/09/2010.
// Copyright 2010 Charcoal Design
Expand Down Expand Up @@ -48,12 +48,11 @@
#import <UIKit/UIKit.h>


typedef enum
typedef NS_ENUM(NSUInteger, SwipeViewAlignment)
{
SwipeViewAlignmentEdge = 0,
SwipeViewAlignmentCenter
}
SwipeViewAlignment;
};


@protocol SwipeViewDataSource, SwipeViewDelegate;
Expand Down

0 comments on commit b8956b9

Please sign in to comment.