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 Locale { | |
| /// Returns an SF Symbol currency image that match's the device's current locale, for instance dollar in North America, Indian rupee in India, etc. | |
| func currencySFSymbol(filled: Bool, withConfiguration configuration: UIImage.Configuration? = nil) -> UIImage { | |
| // Default currency symbol will be the Animal Crossing Leaf coin to remain impartial to any specific country | |
| let defaultSymbol = UIImage(systemName: "leaf.circle\(filled ? ".fill" : "")")! | |
| guard let currencySymbolName = currencySymbolNameForSFSymbols() else { return defaultSymbol } | |
| let systemName = "\(currencySymbolName).circle\(filled ? ".fill" : "")" | |
| return UIImage(systemName: systemName, withConfiguration: configuration) ?? defaultSymbol |
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
| // To compile: clang++ -arch x86_64 -arch arm64 -std=c++20 library_injector.cpp -lbsm -lEndpointSecurity -o library_injector, | |
| // then codesign with com.apple.developer.endpoint-security.client and run the | |
| // program as root. | |
| #include <EndpointSecurity/EndpointSecurity.h> | |
| #include <algorithm> | |
| #include <array> | |
| #include <bsm/libbsm.h> | |
| #include <cstddef> | |
| #include <cstdint> |
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 UIKit | |
| extension UITextField { | |
| /// Add a trailing placeholder label that tracks the text as it changes | |
| func addTrailingPlaceholder(_ placeholder: String) { | |
| let label = UILabel() | |
| label.text = placeholder | |
| label.alpha = 0.3 | |
| label.isHidden = true | |
| let container = UIView() |
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 | |
| /// The main application entry point for the Ancient Prophecy Tab Bars app. | |
| /// | |
| /// This app demonstrates a custom tab bar implementation with an overlay menu system. | |
| /// Specifically the implementation of a separate tab bar option now available in iOS 26. | |
| /// The app automatically exits when the main content view disappears and uses a fixed content size window. | |
| @main | |
| struct AncientProphecyTabBarsApp: App { | |
| var body: some Scene { |
OlderNewer