Skip to content

Commit

Permalink
Made var section open
Browse files Browse the repository at this point in the history
In order to allow it to be overwritten by a row which subclasses it. This is needed for the new custom row `SplitRow`. `SplitRow` enables to put two Eureka rows side by side into one UITableViewCell.
  • Loading branch information
Marco Betschart authored and Martin Barreto committed Dec 19, 2017
1 parent 9a8f740 commit bc46e05
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Source/Core/BaseRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ open class BaseRow: BaseRowType {
var callbackOnCellHighlightChanged: (() -> Void)?
var callbackOnRowValidationChanged: (() -> Void)?
var _inlineRow: BaseRow?

var _cachedOptionsData: Any?

public var validationOptions: ValidationOptions = .validatesOnBlur
Expand Down Expand Up @@ -98,18 +98,18 @@ open class BaseRow: BaseRowType {
public var isHidden: Bool { return hiddenCache }

/// The section to which this row belongs.
public weak var section: Section?
public var trailingSwipeConfiguration: SwipeConfiguration?
//needs the accessor because if marked directly this throws "Stored properties cannot be marked potentially unavailable with '@available'"
private var _leadingSwipeConfiguration: SwipeConfiguration?
@available(iOS 11,*)
public var leadingSwipeConfiguration: SwipeConfiguration?{
get{ return self._leadingSwipeConfiguration }
set{ self._leadingSwipeConfiguration = newValue }
}
open weak var section: Section?

public var trailingSwipeConfiguration: SwipeConfiguration?

//needs the accessor because if marked directly this throws "Stored properties cannot be marked potentially unavailable with '@available'"
private var _leadingSwipeConfiguration: SwipeConfiguration?

@available(iOS 11,*)
public var leadingSwipeConfiguration: SwipeConfiguration?{
get{ return self._leadingSwipeConfiguration }
set{ self._leadingSwipeConfiguration = newValue }
}

public required init(tag: String? = nil) {
self.tag = tag
Expand Down

0 comments on commit bc46e05

Please sign in to comment.