Skip to content

Instantly share code, notes, and snippets.

{
"interactionModel": {
"languageModel": {
"invocationName": "websitenavigator",
"intents": [
{
"name": "AMAZON.FallbackIntent",
"samples": []
},
{
@hpp-hash
hpp-hash / gist:f16fb09c73ae247f7e481d62a062414e
Created September 4, 2019 21:49
Adjust UI View's height constraint based on the iPhone's height
// iPhone 8 - each view is 220
if (UIScreen.main.bounds.height == 667.0) {
for constraint in self.backgroundChartView.constraints {
if constraint.identifier == "chartHeightConstraint" {
constraint.constant = 220
}
}
for constraint in self.tableViewBackground.constraints {
if constraint.identifier == "tableHeightConstraint" {