GCC_PREPROCESSOR_DEFINITIONS = FOO=My Value
It is particularly important to check that the definition of your value exists here, as it will not cause a compilation failure, but instead result in the generation of @"FOO".
@import Foundation;| import androidx.compose.ui.graphics.Color | |
| // reds | |
| val md_red_50 = Color(0xFFFFEBEE) | |
| val md_red_100 = Color(0xFFFFCDD2) | |
| val md_red_200 = Color(0xFFEF9A9A) | |
| val md_red_300 = Color(0xFFE57373) | |
| val md_red_400 = Color(0xFFEF5350) | |
| val md_red_500 = Color(0xFFF44336) | |
| val md_red_600 = Color(0xFFE53935) |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
| // Copyright © 2019 Simon Strandgaard. All rights reserved. | |
| import SwiftyBeaver | |
| public let log = SwiftyBeaver.self | |
| extension BaseDestination.LevelColor { | |
| mutating func applyDefaultStyle() { | |
| debug = "🏐 " | |
| info = "🏐 " | |
| verbose = "🏐 " |
| import UIKit | |
| /// An image view that computes its intrinsic height from its width while preserving aspect ratio | |
| /// Source: https://stackoverflow.com/a/48476446 | |
| class ScaledHeightImageView: UIImageView { | |
| // Track the width that the intrinsic size was computed for, | |
| // to invalidate the intrinsic size when needed | |
| private var layoutedWidth: CGFloat = 0 | |
| // | |
| // GrowingTextView.swift | |
| // https://gist.github.com/Bogidon/cc0c9ae6f041413c39fb0ff146ad1b18 | |
| // | |
| // Created by Bogdan Vitoc on 02/22/2017. | |
| // Distributed under the MIT License: https://gist.github.com/Bogidon/cc0c9ae6f041413c39fb0ff146ad1b18#file-license | |
| // | |
| import UIKit |
| /// This is a list of Hypertext Transfer Protocol (HTTP) response status codes. | |
| /// It includes codes from IETF internet standards, other IETF RFCs, other specifications, and some additional commonly used codes. | |
| /// The first digit of the status code specifies one of five classes of response; an HTTP client must recognise these five classes at a minimum. | |
| enum HTTPStatusCode: Int, Error { | |
| /// The response class representation of status codes, these get grouped by their first digit. | |
| enum ResponseType { | |
| /// - informational: This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. | |
| case informational |
| extension UITextView { | |
| // Note: This will trigger a text rendering! | |
| func calculateViewHeightWithCurrentWidth() -> CGFloat { | |
| let textWidth = self.frame.width - | |
| self.textContainerInset.left - | |
| self.textContainerInset.right - | |
| self.textContainer.lineFragmentPadding * 2.0 - | |
| self.contentInset.left - | |
| self.contentInset.right | |
| /* bookmarks are stored in “/data/data/org.mozilla.firefox/files/mozilla/…….default/browser.db” */ | |
| SELECT url, created | |
| FROM bookmarks | |
| WHERE COALESCE(url, '') <> '' | |
| ORDER BY created ASC |
Please create an Issue in the transport-apis repo instead. 🙏