Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
name: Test
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
run-config:
- {
scheme: "ImageViewer",
destination: "platform=iOS Simulator,OS=17.4,name=iPhone 15",
}
- {
scheme: "ImageViewer",
destination: "platform=iOS Simulator,OS=18.0,name=iPhone 16",
}
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
- uses: actions/checkout@v4
- name: Show Available Destinations
env:
scheme: ${{ matrix.run-config['scheme'] }}
run: xcodebuild -scheme ${scheme} -showdestinations
- name: Build
run: xcodebuild build -scheme ${scheme} -destination "${destination}"
env:
scheme: ${{ matrix.run-config['scheme'] }}
destination: ${{ matrix.run-config['destination'] }}
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
# ImageViewer

## Version 6.0.5

## Version 6.0.1
* Find first key window (#2)

## Version 6.0.4

* Fix statusBarHidden setting

* Added support as Swift Package
## Version 6.0.3

* Ensure video scrubber takes up max width

## Version 6.0.1

* Added support as Swift Package

## Version 6.0.0

Expand Down
42 changes: 11 additions & 31 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
// swift-tools-version:5.1
//
// Package.swift
//
// Copyright (c) 2020 Alamofire Software Foundation (http://alamofire.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

// swift-tools-version:5.9
import PackageDescription

let package = Package(name: "ImageViewer",
platforms: [.iOS(.v13)],
products: [.library(name: "ImageViewer", targets: ["ImageViewer"])],
targets: [.target(name: "ImageViewer",
path: "ImageViewer/Source")],
swiftLanguageVersions: [.v5])
let package = Package(
name: "ImageViewer",
platforms: [.iOS(.v16)],
products: [.library(name: "ImageViewer", targets: ["ImageViewer"])],
targets: [
.target(
name: "ImageViewer",
path: "ImageViewer/Source")
],
swiftLanguageVersions: [.v5])
49 changes: 5 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
![Tests](https://github.com/jocmp/ImageViewer/actions/workflows/ci.yml/badge.svg)

[![CI Status](http://img.shields.io/travis/Krisiacik/ImageViewer.svg?style=flat)](https://travis-ci.org/Krisiacik/ImageViewer)
[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-green.svg?style=flat)](https://developer.apple.com/swift/)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/ImageViewer.svg?style=flat)](http://cocoadocs.org/docsets/ImageViewer)
[![Platforms iOS](https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat)](https://developer.apple.com/swift/)
[![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)](https://opensource.org/licenses/MIT)
![Single image view](https://github.com/jocmp/ImageViewer/blob/main/Documentation/single.gif)

![Single image view](https://github.com/Krisiacik/ImageViewer/blob/master/Documentation/single.gif)

![Gallery](https://github.com/Krisiacik/ImageViewer/blob/master/Documentation/gallery.gif)
![Gallery](https://github.com/jocmp/ImageViewer/blob/main/Documentation/gallery.gif)

For the latest changes see the [CHANGELOG](CHANGELOG.md)

## Install

### CocoaPods

```ruby
pod 'ImageViewer'
```

### Carthage

```ruby
github "Krisiacik/ImageViewer"
```

### Swiftpackage
### SwiftPM

Just add the repository URL in Xcode.


## Sample Usage

For a detailed example, see the [Example](https://github.com/Krisiacik/ImageViewer/tree/master/Example)!
For a detailed example, see the [Example](https://github.com/jocmp/ImageViewer/tree/main/Example)

```swift
// Show the ImageViewer with the first item
Expand All @@ -49,25 +31,4 @@ extension ViewController: GalleryItemsDataSource {
return items[index].galleryItem
}
}

```

### ImageViewer version vs Swift version.

ImageViewer 6.0+ is Swift 5 ready! 🎉

If you use earlier version of Swift - refer to the table below:

| Swift version | ImageViewer version |
| ------------- | --------------------------------- |
| 5.x | >= 6.0 |
| 4.x | 5.0 |
| 3.x | 4.0 |
| 2.3 | 3.1 [⚠️](CHANGELOG.md#version-31) |
| 2.2 | <= 2.1 |

## License

ImageViewer is licensed under the MIT License, Version 2.0. See the [LICENSE](LICENSE) file for more info.

Copyright (c) 2016 MailOnline