Skip to content

Commit

Permalink
Merge pull request #99 from wayfair/swift3
Browse files Browse the repository at this point in the history
Swift3 Conversion. Woohoo!
  • Loading branch information
klundberg authored May 26, 2017
2 parents 4571cb8 + 33c2dc4 commit a78f924
Show file tree
Hide file tree
Showing 163 changed files with 3,728 additions and 3,764 deletions.
22 changes: 14 additions & 8 deletions BrickKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -997,10 +997,12 @@
};
93D9EB921DA4051B00D8C87A = {
CreatedOnToolsVersion = 8.0;
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
};
93D9EB9B1DA4051B00D8C87A = {
CreatedOnToolsVersion = 8.0;
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
};
};
Expand Down Expand Up @@ -1343,7 +1345,7 @@
PRODUCT_NAME = "$(PROJECT_NAME)";
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 2.3;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
Expand All @@ -1365,7 +1367,7 @@
PRODUCT_NAME = "$(PROJECT_NAME)";
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 2.3;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
Expand All @@ -1381,8 +1383,8 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.wafair.BrickKit-tvOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_VERSION = 2.3;
TVOS_DEPLOYMENT_TARGET = 10.0;
SWIFT_VERSION = 3.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
Expand All @@ -1396,8 +1398,8 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.wafair.BrickKit-tvOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_VERSION = 2.3;
TVOS_DEPLOYMENT_TARGET = 10.0;
SWIFT_VERSION = 3.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Release;
};
Expand Down Expand Up @@ -1449,7 +1451,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 2.3;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1496,7 +1498,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 2.3;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -1520,6 +1522,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.wayfair.BrickKit;
PRODUCT_NAME = "$(PROJECT_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Debug;
};
Expand All @@ -1539,6 +1542,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.wayfair.BrickKit;
PRODUCT_NAME = "$(PROJECT_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Release;
};
Expand All @@ -1552,6 +1556,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.wayfair.BrickKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
Expand All @@ -1565,6 +1570,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.wayfair.BrickKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Release;
};
Expand Down
16 changes: 8 additions & 8 deletions Example/BrickKit-Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@
4E3BD8ED1DB521C200541900 /* CoverFlowViewScrollingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E3BD8EB1DB521C200541900 /* CoverFlowViewScrollingController.swift */; };
4E8E10F41DB569E100B5BD90 /* EmbeddedSpotlightSnapScrollingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E8E10F31DB569E100B5BD90 /* EmbeddedSpotlightSnapScrollingViewController.swift */; };
4E8E10F51DB569E100B5BD90 /* EmbeddedSpotlightSnapScrollingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E8E10F31DB569E100B5BD90 /* EmbeddedSpotlightSnapScrollingViewController.swift */; };
930C19391E63A21500D4CDDB /* IsHiddenBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 930C19381E63A21500D4CDDB /* IsHiddenBrickViewController.swift */; };
930C193A1E63A21500D4CDDB /* IsHiddenBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 930C19381E63A21500D4CDDB /* IsHiddenBrickViewController.swift */; };
93186B031DDE89610095C849 /* HugeRepeatBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93186B021DDE89610095C849 /* HugeRepeatBrickViewController.swift */; };
93186B041DDE89610095C849 /* HugeRepeatBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93186B021DDE89610095C849 /* HugeRepeatBrickViewController.swift */; };
93186B081DDE8A580095C849 /* HugeRepeatCollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93186B071DDE8A580095C849 /* HugeRepeatCollectionViewController.swift */; };
Expand All @@ -174,6 +172,8 @@
935D489C1DB7D1B10091AA39 /* ImagesInCollectionBrickHorizontalViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 935D489A1DB7D1B10091AA39 /* ImagesInCollectionBrickHorizontalViewController.swift */; };
938996A51DF77A3200E0F4F1 /* AlignmentBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 938996A41DF77A3200E0F4F1 /* AlignmentBrickViewController.swift */; };
938996A61DF77A3200E0F4F1 /* AlignmentBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 938996A41DF77A3200E0F4F1 /* AlignmentBrickViewController.swift */; };
93AB641D1E67AA4800395CAA /* IsHiddenBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93AB641C1E67AA4800395CAA /* IsHiddenBrickViewController.swift */; };
93AB641E1E67AA4800395CAA /* IsHiddenBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93AB641C1E67AA4800395CAA /* IsHiddenBrickViewController.swift */; };
93D7E8691DFB52830031A6C2 /* InteractiveAlignViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93D7E8681DFB52830031A6C2 /* InteractiveAlignViewController.swift */; };
93D7E86A1DFB52830031A6C2 /* InteractiveAlignViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93D7E8681DFB52830031A6C2 /* InteractiveAlignViewController.swift */; };
93DE8B4A1DF744BB00324EC8 /* FillBrickViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 932365661DF449A500BE5183 /* FillBrickViewController.swift */; };
Expand Down Expand Up @@ -352,7 +352,6 @@
4E3BD8E61DB51E1200541900 /* BrickIdentifiers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BrickIdentifiers.swift; sourceTree = "<group>"; };
4E3BD8EB1DB521C200541900 /* CoverFlowViewScrollingController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CoverFlowViewScrollingController.swift; sourceTree = "<group>"; };
4E8E10F31DB569E100B5BD90 /* EmbeddedSpotlightSnapScrollingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EmbeddedSpotlightSnapScrollingViewController.swift; sourceTree = "<group>"; };
930C19381E63A21500D4CDDB /* IsHiddenBrickViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IsHiddenBrickViewController.swift; sourceTree = "<group>"; };
93186B021DDE89610095C849 /* HugeRepeatBrickViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HugeRepeatBrickViewController.swift; sourceTree = "<group>"; };
93186B071DDE8A580095C849 /* HugeRepeatCollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HugeRepeatCollectionViewController.swift; sourceTree = "<group>"; };
932365661DF449A500BE5183 /* FillBrickViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FillBrickViewController.swift; sourceTree = "<group>"; };
Expand All @@ -361,6 +360,7 @@
935D488F1DB7CCC70091AA39 /* ImagesInCollectionBrickViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImagesInCollectionBrickViewController.swift; sourceTree = "<group>"; };
935D489A1DB7D1B10091AA39 /* ImagesInCollectionBrickHorizontalViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImagesInCollectionBrickHorizontalViewController.swift; sourceTree = "<group>"; };
938996A41DF77A3200E0F4F1 /* AlignmentBrickViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlignmentBrickViewController.swift; sourceTree = "<group>"; };
93AB641C1E67AA4800395CAA /* IsHiddenBrickViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IsHiddenBrickViewController.swift; sourceTree = "<group>"; };
93D7E8681DFB52830031A6C2 /* InteractiveAlignViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InteractiveAlignViewController.swift; sourceTree = "<group>"; };
93EAFE291DB57D680036331C /* NavigationDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NavigationDetailViewController.swift; sourceTree = "<group>"; };
93EAFE2A1DB57D680036331C /* NavigationMasterViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NavigationMasterViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -545,7 +545,6 @@
4E3BD7891DB1316400541900 /* Interactive */ = {
isa = PBXGroup;
children = (
930C19381E63A21500D4CDDB /* IsHiddenBrickViewController.swift */,
4E3BD78A1DB1316400541900 /* AdvancedRepeatViewController.swift */,
4E3BD78B1DB1316400541900 /* BasicInteractiveViewController.swift */,
4E3BD78C1DB1316400541900 /* BrickCollectionInteractiveViewController.swift */,
Expand All @@ -557,6 +556,7 @@
4E3BD7921DB1316400541900 /* InvalidateHeightViewController.swift */,
93D7E8681DFB52830031A6C2 /* InteractiveAlignViewController.swift */,
FCD401B51E203D080011173A /* ActivityIndicatorOverrideSource.swift */,
93AB641C1E67AA4800395CAA /* IsHiddenBrickViewController.swift */,
);
path = Interactive;
sourceTree = "<group>";
Expand Down Expand Up @@ -953,7 +953,7 @@
4E3BD7C61DB1316400541900 /* DailySalesBrick.swift in Sources */,
4E3BD8041DB1316400541900 /* HorizontalScrollSectionBrickViewController.swift in Sources */,
4E3BD8461DB1316400541900 /* MultiSectionBrickViewController.swift in Sources */,
930C19391E63A21500D4CDDB /* IsHiddenBrickViewController.swift in Sources */,
93AB641D1E67AA4800395CAA /* IsHiddenBrickViewController.swift in Sources */,
4E3BD8081DB1316400541900 /* SimpleCollectionBrickViewController.swift in Sources */,
4E3BD8501DB1316400541900 /* SimpleRepeatHeightRatioViewController.swift in Sources */,
FCD401B61E203D080011173A /* ActivityIndicatorOverrideSource.swift in Sources */,
Expand Down Expand Up @@ -1028,7 +1028,7 @@
buildActionMask = 2147483647;
files = (
4E3BD8ED1DB521C200541900 /* CoverFlowViewScrollingController.swift in Sources */,
930C193A1E63A21500D4CDDB /* IsHiddenBrickViewController.swift in Sources */,
93AB641E1E67AA4800395CAA /* IsHiddenBrickViewController.swift in Sources */,
93D7E86A1DFB52830031A6C2 /* InteractiveAlignViewController.swift in Sources */,
4E3BD8011DB1316400541900 /* BaseRepeatBrickViewController.swift in Sources */,
4E3BD85D1DB1316400541900 /* StickingFooterBaseViewController.swift in Sources */,
Expand Down Expand Up @@ -1166,7 +1166,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 2.3;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand Down Expand Up @@ -1210,7 +1210,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 2.3;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
Expand Down
4 changes: 2 additions & 2 deletions Example/Source/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
Theme.applyTheme()

return true
Expand Down
8 changes: 4 additions & 4 deletions Example/Source/Bricks/Custom/DailySalesBrick.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import BrickKit
class DailySalesBrick: Brick {
weak var dataSource: DailySalesBrickDataSource?

convenience init(_ identifier: String, width: BrickDimension = .Ratio(ratio: 1), height: BrickDimension = .Auto(estimate: .Fixed(size: 50)), backgroundColor: UIColor = UIColor.clearColor(), backgroundView: UIView? = nil, dataSource: DailySalesBrickDataSource) {
convenience init(_ identifier: String, width: BrickDimension = .ratio(ratio: 1), height: BrickDimension = .auto(estimate: .fixed(size: 50)), backgroundColor: UIColor = UIColor.clear, backgroundView: UIView? = nil, dataSource: DailySalesBrickDataSource) {
self.init(identifier, size: BrickSize(width: width, height: height), backgroundColor: backgroundColor, backgroundView: backgroundView, dataSource: dataSource)
}

init(_ identifier: String, size: BrickSize, backgroundColor: UIColor = UIColor.clearColor(), backgroundView: UIView? = nil, dataSource: DailySalesBrickDataSource) {
init(_ identifier: String, size: BrickSize, backgroundColor: UIColor = UIColor.clear, backgroundView: UIView? = nil, dataSource: DailySalesBrickDataSource) {
self.dataSource = dataSource
super.init(identifier, size: size, backgroundColor: backgroundColor, backgroundView: backgroundView)
}
Expand All @@ -37,8 +37,8 @@ class DailySalesBrickCell: BrickCell, Bricklike {
return
}

imageView.image = dataSource.image(self)
nameButton.setTitle(dataSource.buttonTitle(self), forState: .Normal)
imageView.image = dataSource.image(cell: self)
nameButton.setTitle(dataSource.buttonTitle(cell: self), for: .normal)
}
}

Expand Down
6 changes: 3 additions & 3 deletions Example/Source/Bricks/Custom/HeaderAndFooterBrick.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import BrickKit
class HeaderAndFooterBrick: Brick {
weak var dataSource: HeaderAndFooterBrickModel?

init(_ identifier: String, width: BrickDimension = .Ratio(ratio: 1), height: BrickDimension = .Auto(estimate: .Fixed(size: 50)), backgroundColor: UIColor = .clearColor(), backgroundView: UIView? = nil, dataSource: ((HeaderAndFooterBrickCell) -> Void)) {
init(_ identifier: String, width: BrickDimension = .ratio(ratio: 1), height: BrickDimension = .auto(estimate: .fixed(size: 50)), backgroundColor: UIColor = UIColor.clear, backgroundView: UIView? = nil, dataSource: @escaping ((HeaderAndFooterBrickCell) -> Void)) {
self.dataSource = HeaderAndFooterBrickModel(configureCell: dataSource)
super.init(identifier, size: BrickSize(width: width, height: height), backgroundColor: backgroundColor, backgroundView: backgroundView)
}
Expand All @@ -25,7 +25,7 @@ protocol HeaderAndFooterBrickDataSource {
class HeaderAndFooterBrickModel: HeaderAndFooterBrickDataSource {
let configureCell: (HeaderAndFooterBrickCell) ->Void

init(configureCell: ((HeaderAndFooterBrickCell) ->Void)) {
init(configureCell: @escaping ((HeaderAndFooterBrickCell) ->Void)) {
self.configureCell = configureCell
}

Expand All @@ -41,7 +41,7 @@ class HeaderAndFooterBrickCell: BrickCell, Bricklike {

override func updateContent() {
super.updateContent()
brick.dataSource?.text(self)
brick.dataSource?.text(cell: self)
}

}
Expand Down
20 changes: 10 additions & 10 deletions Example/Source/Bricks/Custom/NiblessBrick.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit
import BrickKit

typealias ConfigureNiblessCellBlock = ((cell: NiblessBrickCell) -> Void)
typealias ConfigureNiblessCellBlock = ((_ cell: NiblessBrickCell) -> Void)

class NiblessBrick: Brick {
var text: String
Expand All @@ -20,7 +20,7 @@ class NiblessBrick: Brick {
return NiblessBrickCell.self
}

init(_ identifier: String = "", width: BrickDimension = .Ratio(ratio: 1), height: BrickDimension = .Auto(estimate: .Fixed(size: 50)), backgroundColor: UIColor = .clearColor(), backgroundView: UIView? = nil, text: String, image: UIImage, configureCell: ConfigureNiblessCellBlock) {
init(_ identifier: String = "", width: BrickDimension = .ratio(ratio: 1), height: BrickDimension = .auto(estimate: .fixed(size: 50)), backgroundColor: UIColor = UIColor.clear, backgroundView: UIView? = nil, text: String, image: UIImage, configureCell: @escaping ConfigureNiblessCellBlock) {
self.text = text
self.image = image
self.configureCell = configureCell
Expand Down Expand Up @@ -57,15 +57,15 @@ class NiblessBrickCell: BrickCell, Bricklike {
contentView.addSubview(imageView)

// Image Constraints
contentView.addConstraint(NSLayoutConstraint(item: imageView, attribute: .Left, relatedBy: .Equal, toItem: contentView, attribute: .Left, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: imageView, attribute: .Top, relatedBy: .Equal, toItem: contentView, attribute: .Top, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: contentView, attribute: .Bottom, relatedBy: .Equal, toItem: imageView, attribute: .Bottom, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: imageView, attribute: .left, relatedBy: .equal, toItem: contentView, attribute: .left, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: imageView, attribute: .top, relatedBy: .equal, toItem: contentView, attribute: .top, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: contentView, attribute: .bottom, relatedBy: .equal, toItem: imageView, attribute: .bottom, multiplier: 1, constant: inset))

// Label Constraints
contentView.addConstraint(NSLayoutConstraint(item: label, attribute: .Left, relatedBy: .Equal, toItem: imageView, attribute: .Right, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: label, attribute: .Top, relatedBy: .Equal, toItem: contentView, attribute: .Top, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: contentView, attribute: .Bottom, relatedBy: .Equal, toItem: label, attribute: .Bottom, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: contentView, attribute: .Right, relatedBy: .Equal, toItem: label, attribute: .Right, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: label, attribute: .left, relatedBy: .equal, toItem: imageView, attribute: .right, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: label, attribute: .top, relatedBy: .equal, toItem: contentView, attribute: .top, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: contentView, attribute: .bottom, relatedBy: .equal, toItem: label, attribute: .bottom, multiplier: 1, constant: inset))
contentView.addConstraint(NSLayoutConstraint(item: contentView, attribute: .right, relatedBy: .equal, toItem: label, attribute: .right, multiplier: 1, constant: inset))
}

override func updateContent() {
Expand All @@ -74,7 +74,7 @@ class NiblessBrickCell: BrickCell, Bricklike {
label.text = brick.text
imageView.image = brick.image

brick.configureCell(cell: self)
brick.configureCell(self)
}

}
Loading

0 comments on commit a78f924

Please sign in to comment.