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
// | |
// GraphView.swift | |
// Flo | |
// | |
// Created by mac on 24/10/18. | |
// Copyright © 2018 Dominator. All rights reserved. | |
// | |
import UIKit | |
//Weekly sample data |
// | |
// CounterView.swift | |
// Flo | |
// | |
// Created by mac on 24/10/18. | |
// Copyright © 2018 Dominator. All rights reserved. | |
// | |
import UIKit |
// | |
// UIColor+RGB.swift | |
// CfssApp | |
// | |
// Created by mac on 31/01/19. | |
// Copyright © 2019 mmfinfotech. All rights reserved. | |
// | |
import UIKit | |
extension UIColor { |
// | |
// 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{ |
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
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()! |
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) |
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 | |
import SwiftData | |
// TODO: Make this animatable shape | |
struct Polygon: Shape { | |
var edges: Int | |
var pathUpdated: (Path) -> Void | |
var vertexUpdated:([CGPoint]) -> Void |