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 XCTest | |
import Parsing // https://github.com/pointfreeco/swift-parsing | |
struct ParsedData { | |
let key1: Int | |
let key2: UUID? | |
let key3: String | |
} |
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 BadgeView: View { | |
@Binding var viewstate: String | |
var body: some View { | |
VStack { | |
Text(viewstate) | |
.padding() | |
Button("Tap: Child to parent") { | |
// Change made by child entity |
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
Start-Landing* | |
tick -> Start | |
Start | |
tick -> AreYouHome | |
AreYouHome | |
yes -> StartIntro | |
no -> NeedToBeHome | |
StartIntro | |
NeedToBeHome |
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
Problem: Once encrypted values are stored as NSData in persistent store, if fetch takes place with NSPredicate which uses string (not basic) comparisons operators -- CONTAINS/LIKE -- it doesn't work for NSData. | |
Note: I have to stop having random values for 'iv' & 'salt' generationed in DataGenerator.m | |
Please find my code in files listed below. I have provided comments against working & non-working code. | |
Question: In order to fetch data, how to form sql query (predicate) with string operators 'like, contains or match' for encrypted data. |