Skip to content

Commit

Permalink
Merge pull request #26 from LottieFiles/chore/lowered-ios-sdk-15
Browse files Browse the repository at this point in the history
Lowered iOS sdk to 15.0
  • Loading branch information
samuelOsborne authored May 14, 2024
2 parents 0557f24 + fe76959 commit cad33fd
Show file tree
Hide file tree
Showing 11 changed files with 3,194 additions and 965 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription

let package = Package(
name: "DotLottie",
platforms: [.iOS(.v13), .macOS(.v11)],
platforms: [.iOS(.v15), .macOS(.v12)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

## Supported Devices

Currently this package supports a mimimum iOS version of 13.0+ for iPhone and iPad.
MacOS is supported for versions 11.0 and upwards.
Currently this package supports a mimimum iOS version of 15.0+ for iPhone and iPad.
MacOS is supported for versions 12.0 and upwards.

## Usage

Expand Down
6 changes: 3 additions & 3 deletions Sources/DotLottie/Public/DotLottieAnimation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public final class DotLottieAnimation: ObservableObject {
mode: config.mode ?? Mode.forward,
speed: config.speed ?? 1.0,
useFrameInterpolation: config.useFrameInterpolation ?? false,
segments: config.segments != nil ? [config.segments!.0, config.segments!.1] : [],
segment: config.segments != nil ? [config.segments!.0, config.segments!.1] : [],
backgroundColor: 0,
layout: config.layout ?? createDefaultLayout(),
marker: config.marker ?? "")
Expand Down Expand Up @@ -368,7 +368,7 @@ public final class DotLottieAnimation: ObservableObject {
}

public func segments() -> (Float, Float) {
return (player.config().segments[0], player.config().segments[1])
return (player.config().segment[0], player.config().segment[1])
}

/// Set the current frame.
Expand All @@ -389,7 +389,7 @@ public final class DotLottieAnimation: ObservableObject {
public func setSegments(segments: (Float, Float)) {
var config = player.config()

config.segments = [segments.0, segments.1]
config.segment = [segments.0, segments.1]

player.setConfig(config: config)
}
Expand Down
Loading

0 comments on commit cad33fd

Please sign in to comment.