Skip to content
Merged
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
6 changes: 6 additions & 0 deletions Amplify.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Pod::Spec.new do |s|
s.source_files = 'Amplify/**/*.swift'
s.default_subspec = 'Default'

# There appears to be a bug in Xcode < 12 where SwiftUI isn't properly
# weak-linked even though system frameworks should be weak-linked by default.
# Explicitly weak link it here until we upgrade Amplify's platform support
# version to >= 13.0. https://github.com/aws-amplify/amplify-ios/issues/878
s.weak_frameworks = 'SwiftUI'

s.subspec 'Default' do |default|
default.preserve_path = 'AmplifyTools'
default.script_phase = {
Expand Down
1 change: 1 addition & 0 deletions Amplify/DevMenu/DevMenuPresentationContextProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation
import UIKit

/// A protocol which provides a UI context over which views can be presented
@available(iOS 13.0, *)
public protocol DevMenuPresentationContextProvider: AnyObject {
func devMenuPresentationContext() -> UIWindow
}
2 changes: 1 addition & 1 deletion Amplify/DevMenu/Trigger/TriggerDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// Implement this protocol to get notified of the trigger events recognized by
/// a `TriggerRecognizer`
/// a `TriggerRecognizer`
public protocol TriggerDelegate: AnyObject {
func onTrigger(triggerRecognizer: TriggerRecognizer)
}