For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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 | |
| import Combine | |
| protocol Resumable { | |
| func resume() | |
| } | |
| extension Subscribers { | |
| class ResumableSink<Input, Failure: Error>: Subscriber, Cancellable, Resumable { | |
| let receiveCompletion: (Subscribers.Completion<Failure>) -> Void |
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 'package:flutter/material.dart'; | |
| import 'scale_text_widget.dart'; | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } | |
| class _MyAppState extends State<MyApp> { | |
| @override |
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 <objc/runtime.h> | |
| @interface DebuggingOverlay: NSObject | |
| @end | |
| @implementation DebuggingOverlay | |
| + (void)toggleOverlay { | |
| id debugInfoClass = NSClassFromString(@"UIDebuggingInformationOverlay"); |
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 String { | |
| public func replaceFirst(of pattern:String, | |
| with replacement:String) -> String { | |
| if let range = self.range(of: pattern){ | |
| return self.replacingCharacters(in: range, with: replacement) | |
| }else{ | |
| return self |
I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
