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
// A Color Slider that is similar to one in | |
// iOS 18+ when configuring a tinted Home Screen | |
// Full video-walktrough on building this component: https://youtu.be/VFVyN5hNW24 | |
import SwiftUI | |
fileprivate let SLIDER_HEIGHT = 34.0 | |
fileprivate let KNOB_DIAMETER = SLIDER_HEIGHT + 4.0 | |
struct ColorSlider: View { |
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 EventEmitter | |
/// Shared Instance. | |
public static var sharedInstance = EventEmitter() | |
// ReactNativeEventEmitter is instantiated by React Native with the bridge. | |
private static var eventEmitter: ReactNativeEventEmitter! | |
private init() {} |