Skip to content

Commit 0654d5c

Browse files
version 0.1.1
1 parent 8ad2489 commit 0654d5c

File tree

7 files changed

+24
-13
lines changed

7 files changed

+24
-13
lines changed

Example/SSSwiftUIGIFView.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
1515
7390DBC723C4A0560045F99C /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7390DBC623C4A0560045F99C /* SceneDelegate.swift */; };
1616
7390DBC923C4A0850045F99C /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7390DBC823C4A0850045F99C /* ContentView.swift */; };
17-
7390DBCB23C4A1BC0045F99C /* example.gif in Resources */ = {isa = PBXBuildFile; fileRef = 7390DBCA23C4A1BC0045F99C /* example.gif */; };
17+
8CA1786823C637A4003A0E0F /* simformsolutions.gif in Resources */ = {isa = PBXBuildFile; fileRef = 8CA1786723C637A4003A0E0F /* simformsolutions.gif */; };
1818
A860C8426C5AD0F7645978F8 /* Pods_SSSwiftUIGIFView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38479CEB9FFAAA93855BB06E /* Pods_SSSwiftUIGIFView_Tests.framework */; };
1919
/* End PBXBuildFile section */
2020

@@ -44,7 +44,7 @@
4444
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
4545
7390DBC623C4A0560045F99C /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
4646
7390DBC823C4A0850045F99C /* ContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
47-
7390DBCA23C4A1BC0045F99C /* example.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = example.gif; sourceTree = "<group>"; };
47+
8CA1786723C637A4003A0E0F /* simformsolutions.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = simformsolutions.gif; sourceTree = "<group>"; };
4848
AD3E35097FD768F130647047 /* Pods-SSSwiftUIGIFView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSSwiftUIGIFView_Tests.debug.xcconfig"; path = "Target Support Files/Pods-SSSwiftUIGIFView_Tests/Pods-SSSwiftUIGIFView_Tests.debug.xcconfig"; sourceTree = "<group>"; };
4949
AD8EEADAF1CB3AD431C8DCFA /* Pods_SSSwiftUIGIFView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSSwiftUIGIFView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5050
CD2C4B95A0F8FB6E67ADE7D8 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
@@ -145,7 +145,7 @@
145145
7390DBCC23C4A1C00045F99C /* Resources */ = {
146146
isa = PBXGroup;
147147
children = (
148-
7390DBCA23C4A1BC0045F99C /* example.gif */,
148+
8CA1786723C637A4003A0E0F /* simformsolutions.gif */,
149149
);
150150
name = Resources;
151151
sourceTree = "<group>";
@@ -257,7 +257,7 @@
257257
isa = PBXResourcesBuildPhase;
258258
buildActionMask = 2147483647;
259259
files = (
260-
7390DBCB23C4A1BC0045F99C /* example.gif in Resources */,
260+
8CA1786823C637A4003A0E0F /* simformsolutions.gif in Resources */,
261261
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
262262
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
263263
);

Example/SSSwiftUIGIFView/ContentView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// ContentView.swift
33
// SSSwiftUIGIFView
44
//
5-
// Created by Ketan Chopda on 07/01/20.
5+
// Created by Simform Solutions on 07/01/20.
66
// Copyright © 2020 Simform. All rights reserved.
77
//
88

@@ -11,7 +11,7 @@ import SSSwiftUIGIFView
1111

1212
struct ContentView: View {
1313
var body: some View {
14-
GIFView(gifName: "example")
14+
SwiftUIGIFPlayerView(gifName: "simformsolutions")
1515
}
1616
}
1717

Example/SSSwiftUIGIFView/example.gif

-23.8 MB
Binary file not shown.
359 KB
Loading

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# SSSwiftUIGIFView
22

3-
[![CI Status](https://img.shields.io/travis/Vatsal Tanna/SSSwiftUIGIFView.svg?style=flat)](https://travis-ci.org/Vatsal Tanna/SSSwiftUIGIFView)
3+
44
[![Version](https://img.shields.io/cocoapods/v/SSSwiftUIGIFView.svg?style=flat)](https://cocoapods.org/pods/SSSwiftUIGIFView)
55
[![License](https://img.shields.io/cocoapods/l/SSSwiftUIGIFView.svg?style=flat)](https://cocoapods.org/pods/SSSwiftUIGIFView)
66
[![Platform](https://img.shields.io/cocoapods/p/SSSwiftUIGIFView.svg?style=flat)](https://cocoapods.org/pods/SSSwiftUIGIFView)
77

8+
![Alt text](https://github.com/simformsolutions/SSSwiftUIGIFView/blob/master/SSSwiftUIGIFViewExample.gif?raw=true)
9+
810
## Example
911

1012
To run the example project, clone the repo, and run `pod install` from the Example directory first.
1113

1214
## Requirements
15+
- iOS 13.0+
16+
- Xcode 11+
1317

1418
## Installation
1519

@@ -19,11 +23,18 @@ it, simply add the following line to your Podfile:
1923
```ruby
2024
pod 'SSSwiftUIGIFView'
2125
```
26+
# Usage example
27+
-
28+
**Import framework**
2229

23-
## Author
24-
25-
Vatsal Tanna, vatsal.t@simformsolutions.com
30+
import SSSwiftUIGIFView
31+
32+
-
33+
**Load GIF with SwiftUIGIFPlayerView function**
34+
35+
SwiftUIGIFPlayerView(gifName: "Gif Name")
2636

2737
## License
2838

2939
SSSwiftUIGIFView is available under the MIT license. See the LICENSE file for more info.
40+

SSSwiftUIGIFView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'SSSwiftUIGIFView'
11-
s.version = '0.1.0'
11+
s.version = '0.1.1'
1212
s.summary = 'SSSwiftUIGIFView is a custom controller which helps to load GIF in SwiftUI.'
1313

1414
# This description is used to generate tags and improve search results.

Source/SwiftUIView.swift renamed to Source/SwiftUIGIFPlayerView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
import SwiftUI
99

10-
public struct GIFView: UIViewRepresentable {
10+
public struct SwiftUIGIFPlayerView: UIViewRepresentable {
1111

1212
private var gifName: String
1313

1414
public init(gifName: String) {
1515
self.gifName = gifName
1616
}
1717

18-
public func updateUIView(_ uiView: UIView, context: UIViewRepresentableContext<GIFView>) {
18+
public func updateUIView(_ uiView: UIView, context: UIViewRepresentableContext<SwiftUIGIFPlayerView>) {
1919

2020
}
2121

0 commit comments

Comments
 (0)