This file contains hidden or 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
| for framework in Frameworks/*.framework; do | |
| fname=$(basename $framework .framework) | |
| echo $fname | |
| otool -v -s __TEXT __objc_methname $framework/$fname | grep advertisingIdentifier | |
| done |
This file contains hidden or 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
| import SwiftUI | |
| let LINE_LENGTH: Double = 500.0 | |
| let N = 720 | |
| let LINES = 18 | |
| let WAVES: Double = 18.0 | |
| let WAVE_HEIGHT: Double = 20 | |
| let SPACING: Double = 27.0 | |
| let CURL_AMOUNT: Double = 12.0 |
This file contains hidden or 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
| struct User: Equatable { | |
| var firstName: String | |
| var lastName: String | |
| } | |
| @main | |
| struct MyApp: App { | |
| @State var value = User(firstName: "", lastName: "") | |
| @State var showEdit = false | |
This file contains hidden or 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
| @propertyWrapper | |
| public struct AnyProxy<EnclosingSelf, Value> { | |
| private let keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value> | |
| public init(_ keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>) { | |
| self.keyPath = keyPath | |
| } | |
| @available(*, unavailable, message: "The wrapped value must be accessed from the enclosing instance property.") | |
| public var wrappedValue: Value { |
This file contains hidden or 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
| import Foundation | |
| public struct Unit: Codable, Equatable { | |
| init() {} | |
| public init(from decoder: Decoder) {} | |
| public func encode(to encoder: Encoder) throws {} | |
| public static func ==(lhs: Self, rhs: Self) -> Bool { | |
| return true | |
| } | |
| } |
This file contains hidden or 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
| struct Contact: Decodable, CustomStringConvertible { | |
| var id: String | |
| @NestedKey | |
| var firstname: String | |
| @NestedKey | |
| var lastname: String | |
| @NestedKey | |
| var address: String | |
| enum CodingKeys: String, NestableCodingKey { |
This file contains hidden or 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
| // | |
| // ContentView.swift | |
| // DeleteMe | |
| // | |
| // Created by Chris Eidhof on 02.02.21. | |
| // | |
| import SwiftUI | |
| /* |
This file contains hidden or 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
| public protocol KeypathUpdatable { | |
| func update<T>(_ keyPath: WritableKeyPath<Self, T>, to value: T) -> Self | |
| } | |
| public extension KeypathUpdatable { | |
| public func update<T>(_ keyPath: WritableKeyPath<Self, T>, to value: T) -> Self { | |
| var copy = self | |
| copy[keyPath: keyPath] = value | |
| return copy | |
| } |
This file contains hidden or 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
| class BlurryOverlayView: UIVisualEffectView { | |
| private var animator: UIViewPropertyAnimator! | |
| private var delta: CGFloat = 0 // The amount to change fractionComplete for each tick | |
| private var target: CGFloat = 0 // The fractionComplete we're animating to | |
| private(set) var isBlurred = false | |
| private var displayLink: CADisplayLink! | |
| override init(effect: UIVisualEffect?) { | |
| super.init(effect: effect) | |
| setup() |
NewerOlder