Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #20 fix #22

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Sources/SPIndicator/Extensions/SwiftUIExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import SwiftUI

#if os(iOS)

@available(iOS 13.0, *)
@available(iOSApplicationExtension, unavailable)

Expand Down
4 changes: 2 additions & 2 deletions Sources/SPIndicator/SPIndicatorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ open class SPIndicatorView: UIView {

let getPrepareTransform: ((_ side: SPIndicatorPresentSide) -> CGAffineTransform) = { [weak self] side in
guard let self = self else { return .identity }
guard let window = UIApplication.shared.windows.first else { return .identity }
guard let window = self.presentWindow else { return .identity }
switch side {
case .top:
let topInset = window.safeAreaInsets.top
Expand All @@ -348,7 +348,7 @@ open class SPIndicatorView: UIView {

let getVisibleTransform: ((_ side: SPIndicatorPresentSide) -> CGAffineTransform) = { [weak self] side in
guard let self = self else { return .identity }
guard let window = UIApplication.shared.windows.first else { return .identity }
guard let window = self.presentWindow else { return .identity }
switch side {
case .top:
var topSafeAreaInsets = window.safeAreaInsets.top
Expand Down