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
| let isLoading: Driver<Bool> | |
| isLoading.drive(weatherIconView.rx.isHidden).disposed(by: bag) | |
| isLoading.drive(pressureLabel.rx.isHidden).disposed(by: bag) | |
| isLoading.drive(precipitationLabel.rx.isHidden).disposed(by: bag) | |
| isLoading.drive(windSpeedLabel.rx.isHidden).disposed(by: bag) | |
| isLoading.drive(windDirectionLabel.rx.isHidden).disposed(by: bag) | |
| isLoading.drive(humidityLabel.rx.isHidden).disposed(by: bag) |
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
| extension String { | |
| static func friendlyId(length: Int = 22) -> String { | |
| let alphabets = Array("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") | |
| var friendlyId = "" | |
| for _ in 1...length { | |
| friendlyId.append(alphabets[Int.random(in: 0...alphabets.count - 1)]) | |
| } | |
| return friendlyId | |
| } | |
| } |
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
| /* Example | |
| ZStack(alignment: .top) { | |
| ForEach(cardModels, id: \.id) { model in | |
| CardView(model) | |
| .swipeable { swipedRight in | |
| // store.swipe(swipedRight) | |
| } | |
| } | |
| } | |
| */ |
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 FormRendererView_Previews: PreviewProvider { | |
| static var previews: some View { | |
| FormRendererView_Previews.feedbackExample | |
| } | |
| static var feedbackExample: some View { | |
| FormRendererView( | |
| submitButtonTitle: "Send Feedback", | |
| formFields: [ | |
| FormFieldConfiguration( |
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
| // FridaDetection.swift | |
| // Basic Frida detection for iOS — simplified examples | |
| // | |
| // Further reading: | |
| // - Frida: https://frida.re | |
| // - OWASP Mobile Top 10: https://owasp.org/www-project-mobile-top-10/ | |
| // - iOS Security Guide: https://support.apple.com/guide/security/welcome/web | |
| // - Objection (Frida-based pentest tool): https://github.com/sensepost/objection | |
| import Foundation |
OlderNewer