Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds the 2 CocoaPods dependencies needed for the project, and sets up the basics for the demo application with the ability to reply to the fake conversation.
- Loading branch information
Showing
73 changed files
with
12,003 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
GIFFun.xcworkspace/xcuserdata/davbeck.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
type = "0" | ||
version = "2.0"> | ||
<Breakpoints> | ||
<BreakpointProxy | ||
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> | ||
<BreakpointContent | ||
shouldBeEnabled = "Yes" | ||
ignoreCount = "0" | ||
continueAfterRunningActions = "No" | ||
scope = "0" | ||
stopOnStyle = "0"> | ||
</BreakpointContent> | ||
</BreakpointProxy> | ||
</Breakpoints> | ||
</Bucket> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// | ||
// AspectImageView.swift | ||
// GIFFun | ||
// | ||
// Created by David Beck on 6/17/16. | ||
// Copyright © 2016 ThinkUltimate LLC. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
|
||
/** | ||
An image view that maintains it's images aspect ratio using constraints. | ||
*/ | ||
class AspectImageView: UIImageView { | ||
private var aspectConstraint: NSLayoutConstraint? { | ||
didSet { | ||
oldValue?.active = false | ||
aspectConstraint?.active = true | ||
} | ||
} | ||
|
||
override var image: UIImage? { | ||
didSet { | ||
if let image = image { | ||
let constraint = self.widthAnchor.constraintEqualToAnchor(self.heightAnchor, multiplier: image.size.width / image.size.height) | ||
constraint.priority = 750 | ||
|
||
self.aspectConstraint = constraint | ||
} else { | ||
self.aspectConstraint = nil | ||
} | ||
} | ||
} | ||
|
||
|
||
private func commonInit() { | ||
|
||
} | ||
|
||
convenience init() { | ||
self.init(frame: CGRect.zero) | ||
} | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
|
||
self.commonInit() | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
super.init(coder: aDecoder) | ||
|
||
self.commonInit() | ||
} | ||
} |
Oops, something went wrong.