Skip to content

Commit

Permalink
Adjustments for iOS 13 Deployment Target Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Medwe committed Aug 22, 2022
1 parent ea775a0 commit a5ca375
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Example/RXSStoryblokClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -479,7 +479,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
16 changes: 11 additions & 5 deletions Example/RXSStoryblokClient/TableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ class TableViewController: UITableViewController {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
let story = stories[indexPath.row]

var content = cell.defaultContentConfiguration()

content.text = story.name
content.secondaryText = story.fullSlug
if #available(iOS 14.0, *) {
var content = cell.defaultContentConfiguration()

content.text = story.name
content.secondaryText = story.fullSlug

cell.contentConfiguration = content
} else {
cell.textLabel?.text = story.name
cell.detailTextLabel?.text = story.fullSlug
}

cell.contentConfiguration = content

return cell
}
Expand Down
2 changes: 1 addition & 1 deletion RXSStoryblokClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/regiolix-solutions/storyblok-swift-sdk.git', :tag => '0.1.0' }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '15.0'
s.ios.deployment_target = '13.0'
s.swift_versions = '5.0'

s.source_files = 'RXSStoryblokClient/Classes/**/*'
Expand Down

0 comments on commit a5ca375

Please sign in to comment.