Skip to content

Commit

Permalink
Merge pull request #53 from DeluxeAlonso/development
Browse files Browse the repository at this point in the history
Development to master for 4.0.0
  • Loading branch information
DeluxeAlonso authored Feb 25, 2024
2 parents 4406632 + 3cf13d6 commit f2b4269
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions DLAutoSlidePageViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DLAutoSlidePageViewController'
s.version = '3.2.0'
s.version = '4.0.0'
s.summary = 'An auto slide PageViewController.'

s.description = <<-DESC
Expand All @@ -12,7 +12,7 @@ An auto slide PageViewController with a customizable time interval.
s.author = { 'Alonso Alvarez' => '[email protected]' }
s.source = { :git => 'https://github.com/DeluxeAlonso/DLAutoSlidePageViewController.git', :tag => s.version.to_s }

s.ios.deployment_target = '13.0'
s.ios.deployment_target = '14.0'
s.source_files = 'Sources/*.swift'
s.swift_version = "5.0"
s.swift_versions = ['5.0']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = E95KU8J3PN;
INFOPLIST_FILE = "$(SRCROOT)/DLAutoSlidePageViewController/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.alonso.DLAutoSlidePageViewControllers;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -389,7 +389,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = E95KU8J3PN;
INFOPLIST_FILE = "$(SRCROOT)/DLAutoSlidePageViewController/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.alonso.DLAutoSlidePageViewControllers;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -448,7 +448,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -502,7 +502,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
platform :ios, '14.0'

target 'DLAutoSlidePageViewController Example' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
Expand Down
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- DLAutoSlidePageViewController (3.1.0)
- DLAutoSlidePageViewController (4.0.0)

DEPENDENCIES:
- DLAutoSlidePageViewController (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
DLAutoSlidePageViewController: 176b5eb4fa76cac256295abfec744316fef35eec
DLAutoSlidePageViewController: a2ec9ed2cf1576658f8429969dbad774ec8c00b1

PODFILE CHECKSUM: 40474472ed177c0fa5828b5f5b611e80d3821ec3
PODFILE CHECKSUM: 69cb16a61f364e791423bbbb58d21194992077f5

COCOAPODS: 1.11.3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To run the example project, clone the repo, and run `pod install` from the Examp

## Requirements

DLAutoSlidePageViewController requires iOS 13.0 and Swift 5.0 or above.
DLAutoSlidePageViewController requires iOS 14.0 and Swift 5.0 or above.

## Installation

Expand Down
2 changes: 0 additions & 2 deletions Sources/AutoSlideConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public protocol AutoSlideConfiguration {
/// Decribes the layout direction of a page control’s indicators.
var pageControlDirection: UIPageControl.Direction { get }

@available(iOS 14.0, *)
/// The preferred image for indicators. Symbol images are recommended. Default is nil.
var pageControlPreferredIndicatorImage: UIImage? { get }

Expand Down Expand Up @@ -86,7 +85,6 @@ public extension AutoSlideConfiguration {

@available(iOS 16.0, *)
var pageControlDirection: UIPageControl.Direction { .natural }
@available(iOS 14.0, *)
var pageControlPreferredIndicatorImage: UIImage? { nil }
@available(iOS 16.0, *)
var pageControlPreferredCurrentPageIndicatorImage: UIImage? { nil }
Expand Down
4 changes: 1 addition & 3 deletions Sources/DLAutoSlidePageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ open class DLAutoSlidePageViewController: UIPageViewController {
if #available(iOS 16.0, *) {
pageControl?.direction = configuration.pageControlDirection
}
if #available(iOS 14.0, *) {
pageControl?.preferredIndicatorImage = configuration.pageControlPreferredIndicatorImage
}
pageControl?.preferredIndicatorImage = configuration.pageControlPreferredIndicatorImage
if #available(iOS 16.0, *) {
pageControl?.preferredCurrentPageIndicatorImage = configuration.pageControlPreferredCurrentPageIndicatorImage
}
Expand Down

0 comments on commit f2b4269

Please sign in to comment.