Skip to content
Permalink
Browse files

fix swift debugging (#5569)

### Context
When debugging Swift files through our Catalog and Dragons app, we were not able to see the variable values, or invoke a print `p` or print object `po` on variables successfully.

### The problem
There was a Swift class and an Objective-C class named exactly the same which was causing build errors when bridging both Swift and Objective-C in the MaterialComponentsExample module.

### The fix
Rename the Swift file to have a unique class name.

### Related Bugs
*potentially*
Closes #4240 

### Screenshots
#### Before
![screen shot 2018-11-01 at 12 16 54 pm](https://user-images.githubusercontent.com/4066863/47846491-b38b7f80-ddd0-11e8-9779-1e4c7f29e81c.png)
#### After
![screen shot 2018-11-01 at 12 14 37 pm](https://user-images.githubusercontent.com/4066863/47846495-b9816080-ddd0-11e8-8f0c-7ddf58dea716.png)
  • Loading branch information...
yarneo committed Nov 1, 2018
1 parent d965a16 commit 3442cf9deb1c31b0962dab4906177dd2306ed7c2
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/AnimationTiming/examples/AnimationTimingExample.swift
@@ -29,7 +29,7 @@ struct Constants {
}
}

class AnimationTimingExample: UIViewController {
class AnimationTimingExampleSwift: UIViewController {

fileprivate let scrollView: UIScrollView = UIScrollView()
fileprivate let linearView: UIView = UIView()
@@ -97,7 +97,7 @@ class AnimationTimingExample: UIViewController {
}
}

extension AnimationTimingExample {
extension AnimationTimingExampleSwift {
fileprivate func setupExampleViews() {

let curveLabel: (String) -> UILabel = { labelTitle in

0 comments on commit 3442cf9

Please sign in to comment.
You can’t perform that action at this time.