Skip to content

Commit

Permalink
Bump v2.1.4 and Deployment Target to iOS 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kimar committed Oct 11, 2023
1 parent 591449b commit 44ca5fc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
jobs:
test:
name: Test
runs-on: macos-latest
runs-on: macos-13
strategy:
matrix:
destination: ["platform=iOS Simulator,OS=13.5,name=iPhone 11"]
destination: ["platform=iOS Simulator,OS=17.0,name=iPhone 15"]
steps:
- name: Checkout
uses: actions/checkout@v1
Expand Down
10 changes: 5 additions & 5 deletions KIImagePager.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "KIImagePager",
"version": "2.1.3",
"version": "2.1.4",
"summary": "This UIView Subclass is used to present Images loaded from the Web and is inspired from foursquare's Image Slideshow.",
"homepage": "https://github.com/kimar/KIImagePager",
"screenshots": [
Expand All @@ -12,15 +12,15 @@
"text": "LICENSE"
},
"authors": {
"Marcus Kida": "marcus@kida.io"
"Marcus Kida": "marcus.kida@bearologics.com"
},
"source": {
"git": "https://github.com/kimar/KIImagePager.git",
"tag": "2.1.3"
"tag": "2.1.4"
},
"platforms": {
"ios": "8.0",
"tvos": "9.0"
"ios": "12.0",
"tvos": "12.0"
},
"source_files": "KIImagePager/KIImagePager/*.{h,m}",
"resources": "KIImagePager/KIImagePager/*.png",
Expand Down
4 changes: 2 additions & 2 deletions KIImagePager.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
Expand Down Expand Up @@ -422,7 +422,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## KIImagePager
## KIImagePager

[![License](https://img.shields.io/badge/license-MIT-blue.png)](http://opensource.org/licenses/MIT)

### Deprecation Notice

**Please note I've written this library years ago to be used in a customer's project, it's deprecated by now. In case anyone wants to raise a PR to fix issues or improve something: Go for it, I'll review and merge if suitable. Other than that I'm not going to invest any more work into this. Sorry folks**
**Please note I've written this library years ago to be used in a customer's project, it's deprecated by now. In case anyone wants to raise a PR to fix issues or improve something: Go for it, I'll review and merge if suitable.**

This UIView Subclass is used to present Images loaded from the Web and is inspired from foursquare's Image Slideshow. The used will be downloaded asynchronously. Former dependencies on SDWebImage have been removed.

Expand All @@ -20,14 +20,14 @@ Optionally customize the PageControl's appearance:
- (void) viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];

_imagePager.pageControl.currentPageIndicatorTintColor = [UIColor lightGrayColor];
_imagePager.pageControl.pageIndicatorTintColor = [UIColor blackColor];
_imagePager.pageControlCenter = CGPointMake(CGRectGetWidth(_imagePager.frame) / 2, CGRectGetHeight(_imagePager.frame) - 42);
}
```

PageControl and ImageCounter can be hidden separately by setting ``imageCounterDisabled`` and ``imageCounterDisabled`` property. There is also a property ``hidePageControlForSinglePages``.
PageControl and ImageCounter can be hidden separately by setting `imageCounterDisabled` and `imageCounterDisabled` property. There is also a property `hidePageControlForSinglePages`.

Now implement it's DataSource and (optionally) Delegate methods:

Expand All @@ -44,7 +44,7 @@ Now implement it's DataSource and (optionally) Delegate methods:
}
```

As you can see, it's now perfectly ok to mix urlStrings as well as UIImages inside *arrayWithImages* DataSource method.
As you can see, it's now perfectly ok to mix urlStrings as well as UIImages inside _arrayWithImages_ DataSource method.

```objective-c
- (UIViewContentMode) contentModeForImage:(NSUInteger)image inPager:(KIImagePager*)pager
Expand All @@ -53,7 +53,8 @@ As you can see, it's now perfectly ok to mix urlStrings as well as UIImages insi
}
```

Optionally you might define a caption title which will be shown above the images using the *captionForImageAtIndex* DataSource method.
Optionally you might define a caption title which will be shown above the images using the _captionForImageAtIndex_ DataSource method.

```objective-c
- (NSString *) captionForImageAtIndex:(NSUInteger)index inPager:(KIImagePager*)pager
{
Expand All @@ -66,11 +67,11 @@ Optionally you might define a caption title which will be shown above the images
```

If you'd like to get a SlideShow, just give it an interval for the time between those single slides:

```objective-c
_imagePager.slideshowTimeInterval = 1.5f;
```


**The MIT License (MIT)**

Copyright (c) 2013 Marcus Kida
Expand Down

0 comments on commit 44ca5fc

Please sign in to comment.