I hereby claim:
-
I am dominatorvbn on github.
-
I am amitsamant (https://keybase.io/amitsamant) on keybase.
-
I have a public key ASDlpjSn-7hWgNG4CJ_5PXhlLg0kYhHP60zEUa7nk7CZpgo
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | |
| # Path to your Oh My Zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time Oh My Zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
| import SwiftUI | |
| import SwiftData | |
| // TODO: Make this animatable shape | |
| struct Polygon: Shape { | |
| var edges: Int | |
| var pathUpdated: (Path) -> Void | |
| var vertexUpdated:([CGPoint]) -> Void |
| extension KeyedDecodingContainer { | |
| /// Decodes a dictionary in place of array | |
| /// - Parameters: | |
| /// - type: Type of the element of array should be decodable | |
| /// - key: The key against which the array is present in the container | |
| /// - keyPath: key path on the element type to be the key of dictionay | |
| /// - Returns: return the dictionary | |
| func decodeArrayAsDictionary<T: Decodable, Key: Hashable>( | |
| _ type: Dictionary<Key,T>.Type, |
| import SwiftUI | |
| struct GroupBoxs: View { | |
| @State var progress: CGFloat = 0.3 | |
| var body: some View { | |
| VStack(spacing: 20) { | |
| //Groupbox arranges view as an vstack so it's safe to assume that has an implicit VStack in defination | |
| GroupBox(label: Text("Progress"), content: { | |
| ProgressView(value: progress, total: 1.0) |
| import UIKit | |
| import SwiftUI | |
| import PlaygroundSupport | |
| extension UIView { | |
| var renderedImage: UIImage { | |
| // rect of capure | |
| let rect = self.bounds | |
| // create the context of bitmap | |
| UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0) | |
| let context: CGContext = UIGraphicsGetCurrentContext()! |
I hereby claim:
I am dominatorvbn on github.
I am amitsamant (https://keybase.io/amitsamant) on keybase.
I have a public key ASDlpjSn-7hWgNG4CJ_5PXhlLg0kYhHP60zEUa7nk7CZpgo
| // | |
| // UITextField+placeholdetTextColor.swift | |
| // Textfield place holder color changer | |
| // | |
| // Created by mac on 22/08/19. | |
| // Copyright © 2019 Dominator. All rights reserved. | |
| // | |
| import UIKit | |
| extension UITextField{ |
| // | |
| // UIColor+RGB.swift | |
| // CfssApp | |
| // | |
| // Created by mac on 31/01/19. | |
| // Copyright © 2019 mmfinfotech. All rights reserved. | |
| // | |
| import UIKit | |
| extension UIColor { |
| // | |
| // CounterView.swift | |
| // Flo | |
| // | |
| // Created by mac on 24/10/18. | |
| // Copyright © 2018 Dominator. All rights reserved. | |
| // | |
| import UIKit |
| // | |
| // GraphView.swift | |
| // Flo | |
| // | |
| // Created by mac on 24/10/18. | |
| // Copyright © 2018 Dominator. All rights reserved. | |
| // | |
| import UIKit | |
| //Weekly sample data |