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 | |
| extension UUID { | |
| // UUID is 128-bit, we need two 64-bit values to represent it | |
| var integers: (Int64, Int64) { | |
| var first: UInt64 = 0 | |
| first |= UInt64(uuid.0) | |
| first |= UInt64(uuid.1) << 8 | |
| first |= UInt64(uuid.2) << (8 * 2) | |
| first |= UInt64(uuid.3) << (8 * 3) |
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 | |
| struct DiscardableSliderView: View { | |
| @State private var value = 5.0 | |
| @State private var filterValue: Double = 5.0 | |
| var body: some View { | |
| VStack { | |
| Text("Values to filter") |
OlderNewer