Skip to content

Commit

Permalink
Merge pull request #212 from darrenspriet/chore/remove-build-warnings…
Browse files Browse the repository at this point in the history
…-remove-unsupported-code

Update to remove unsupported available with older properties and removed warnings
  • Loading branch information
gordontucker authored Sep 6, 2023
2 parents c803aeb + 9cd24d2 commit 8d68f0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions FittedSheets.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FittedSheets",
"version": "2.5.3",
"version": "2.6.0",
"summary": "A bottom sheets implementation for iOS apps.",
"description": "iOS doesn't have a good way to use bottom sheets natively, so this is to bridge the gap with a decent looking implementation.",
"homepage": "https://github.com/gordontucker/FittedSheets",
Expand All @@ -10,7 +10,7 @@
},
"source": {
"git": "https://github.com/gordontucker/FittedSheets.git",
"tag": "2.5.3"
"tag": "2.6.0"
},
"platforms": {
"ios": "10.0"
Expand Down
8 changes: 4 additions & 4 deletions FittedSheets/Compatible.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// File.swift
//
//
//
// Created by Nhuan Vu on 8/25/21.
//
Expand All @@ -9,7 +9,7 @@
import UIKit

extension UIView {
open var compatibleSafeAreaInsets: UIEdgeInsets {
public var compatibleSafeAreaInsets: UIEdgeInsets {
if #available(iOS 11.0, *) {
return self.safeAreaInsets
} else {
Expand All @@ -19,7 +19,7 @@ extension UIView {
}

extension CALayer {
open var compatibleMaskedCorners: CACornerMask {
public var compatibleMaskedCorners: CACornerMask {
get {
if #available(iOS 11.0, *) {
return self.maskedCorners
Expand All @@ -36,7 +36,7 @@ extension CALayer {
}

extension UIViewController {
open var compatibleAdditionalSafeAreaInsets: UIEdgeInsets {
public var compatibleAdditionalSafeAreaInsets: UIEdgeInsets {
get {
if #available(iOS 11.0, *) {
return self.additionalSafeAreaInsets
Expand Down
2 changes: 1 addition & 1 deletion FittedSheets/SheetOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public struct SheetOptions {

public var horizontalPadding: CGFloat = 0
public var maxWidth: CGFloat?

public var isRubberBandEnabled: Bool = false

/// Experimental flag that attempts to shrink the nested presentations more each time a new sheet is presented. This must be set before any sheet is presented.
Expand Down

0 comments on commit 8d68f0c

Please sign in to comment.