Skip to content

Commit

Permalink
Feature/objc compatibility (#23)
Browse files Browse the repository at this point in the history
* Allow extension. Add compatibility with objc

* Add support for CocoaPods

* Remove CocoaPods file

* Add missing documentation
  • Loading branch information
virginiapujols-yml committed May 10, 2023
1 parent 25fce44 commit b051458
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/YStepper/UIKit/StepperControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import YCoreUI
import SwiftUI

/// A UIKit stepper control.
public class StepperControl: UIControl {
@objcMembers
open class StepperControl: UIControl {
var stepperView: Stepper

/// Stepper appearance
Expand Down Expand Up @@ -74,7 +75,8 @@ public class StepperControl: UIControl {
addStepperView()
}

required init?(coder: NSCoder) {
/// :nodoc:
public required init?(coder: NSCoder) {
stepperView = Stepper()
super.init(coder: coder)
addStepperView()
Expand Down

0 comments on commit b051458

Please sign in to comment.