#Every Single Option Under The Sun
- optimization level options
- automatic crashing options
- debug info options
- swift internal options
- swift debug/development internal options
- linker-specific options
- mode options
| // Authoer: The SwiftUI Lab | |
| // Full article: https://swiftui-lab.com/scrollview-pull-to-refresh/ | |
| import SwiftUI | |
| struct RefreshableScrollView<Content: View>: View { | |
| @State private var previousScrollOffset: CGFloat = 0 | |
| @State private var scrollOffset: CGFloat = 0 | |
| @State private var frozen: Bool = false | |
| @State private var rotation: Angle = .degrees(0) |
| /// Withable is a simple protocol to make constructing | |
| /// and modifying objects with multiple properties | |
| /// more pleasant (functional, chainable, point-free) | |
| public protocol Withable { | |
| init() | |
| } | |
| public extension Withable { | |
| /// Construct a new instance, setting an arbitrary subset of properties | |
| init(with config: (inout Self) -> Void) { |
| import UIKit | |
| /// A validation rule for text input. | |
| public enum TextValidationRule { | |
| /// Any input is valid, including an empty string. | |
| case noRestriction | |
| /// The input must not be empty. | |
| case nonEmpty | |
| /// The enitre input must match a regular expression. A matching substring is not enough. | |
| case regularExpression(NSRegularExpression) |
| import Foundation | |
| import UIKit | |
| /// Used to create a layout guide that pins to the top of the keyboard | |
| final class KeyboardLayoutGuide { | |
| private let notificationCenter: NotificationCenter | |
| private let bottomConstraint: NSLayoutConstraint | |
| 1. Opening Event (5604) | |
| 2. Keynote (5056) | |
| 3. Fnord-Jahresrückblick (5036) | |
| 4. Methodisch inkorrekt! (4994) | |
| 5. Ten years after ‚We Lost The War‘ (4820) | |
| 6. (Un)Sicherheit von App-basierten TAN-Verfahren im Onlinebanking (4039) | |
| 7. NSA-Untersuchungsausschuss: Zwischen Aufklärungswillen und Mauern aus Schweigen (4030) | |
| 8. Safe Harbor (3866) | |
| 9. Building and Breaking Wireless Security (3799) | |
| 10. The exhaust emissions scandal („Dieselgate“) (3719) |
#Every Single Option Under The Sun
| *.strings utf16 diff=localizablestrings |
| import requests | |
| class HoverException(Exception): | |
| pass | |
| class HoverAPI(object): | |
| def __init__(self, username, password): | |
| params = {"username": username, "password": password} | |
| r = requests.post("https://www.hover.com/api/login", params=params) |