Skip to content

Commit

Permalink
🚨 Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed Nov 6, 2024
1 parent 4889776 commit 20aa2d0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import UIKit

/// A protocol that a `UIViewController` must adopt to allow usage as an Appcues custom component.
public protocol AppcuesCustomComponentViewController: UIViewController {


/// Optional component configuration for testing in the Appcues Mobile Debugger.
/// Refer to <doc:CustomComponentConfiguring>.
static var debugConfig: [String: Any]? { get }

/// Creates a view controller for use as an Appcues custom component.
/// - Parameters:
/// - configuration: Configuration object that decodes instances of a plugin configuration from an Experience JSON model.
/// - actionController: Action options for a custom component to invoke.
init?(configuration: AppcuesExperiencePluginConfiguration, actionController: AppcuesExperienceActions)

/// Optional component configuration for testing in the Appcues Mobile Debugger.
/// Refer to <doc:CustomComponentConfiguring>.
static var debugConfig: [String: Any]? { get }
}

// Default value to make `debugConfig` optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ private extension DebugPluginUI {

class DebugExperienceViewModel: ExperienceStepViewModel {
static let renderContext = RenderContext.embed(frameID: "PLUGIN_DEBUG")
let debugActions = DebugAppcuesExperienceActions(appcues: nil, renderContext: DebugExperienceViewModel.renderContext, identifier: "")
let debugActions = DebugAppcuesExperienceActions(
appcues: nil,
renderContext: DebugExperienceViewModel.renderContext,
identifier: ""
)

init() {
super.init(renderContext: DebugExperienceViewModel.renderContext, appcues: nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ extension AppcuesTargetInteractionTrait {
}
}

func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
func gestureRecognizer(
_ gestureRecognizer: UIGestureRecognizer,
shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer
) -> Bool {
true
}

Expand Down

0 comments on commit 20aa2d0

Please sign in to comment.