Skip to content

Instantly share code, notes, and snippets.

View KDawg's full-sized avatar

K KDawg

  • United States
View GitHub Profile
@KDawg
KDawg / TuplesExample.swift
Created August 30, 2019 16:22
This is an example of the Tuple type in Swift programming language
// This is an example of the Tuple type in Swift programming language
// I use this type of data to easily return multiple values from a function call
// SEE: https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html#ID329
let t = (200, "OK", "HTTP 200 is a successful return code. The request has succeeded.")
print(t) // shows the entire tuple
print(t.0) // shows 200
print(t.1) // shows "OK"
print(t.2) // shows the longer message
.logo-mark__article-end-mark {
display: block;
margin: 0 auto;
}
@media screen and (max-width: 650px) {
.logo-mark__article-end-mark {
transform: scale(0.75, 0.75);
}
}
<section>
<img src="/assets/images/LogoMark.svg" class="logo-mark__article-end-mark"
alt="Ending logo Mark for this article"/>
</section>