This file contains 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
// | |
// UIBorderedLabel.swift | |
// app3 | |
// | |
// Created by ELMSSILHA Brahim on 11/07/2017. | |
// Copyright © 2017 Brahim ELMSSILHA. All rights reserved. | |
// | |
import UIKit |
This file contains 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
// | |
// UIView+BlurRadius.swift | |
// PrecisionSystem | |
// | |
// Created by Siempay on 3/27/20. | |
// Copyright © 2020 Brahim ELMSSILHA. All rights reserved. | |
// | |
import Foundation |
This file contains 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
- Disable warnings of the view: `OS_ACTIVITY_MODE = disable` |
This file contains 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
/// Remove duplicated elements | |
extension Array { | |
/// mutate array by iterating through element and filtering duplicated ones | |
/// - parameter predicate: the test to check if two elements are a dulication | |
public mutating func removeDuplicates(_ predicate: (Element, Element) -> Bool) { | |
self = removeDuplicates(predicate) | |
} | |
/// iterating through element and filtering duplicated ones |
This file contains 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 Data { | |
var bytes: Int64 { | |
.init(self.count) | |
} | |
public var kilobytes: Double { | |
return Double(bytes) / 1_024 | |
} |
This file contains 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
// | |
// Created by Brahim Elmssilha on 16/6/2022. | |
// Email: [email protected] | |
// | |
struct YoutubeVideoView: UIViewRepresentable { | |
var youtubeVideoID: String | |
func makeUIView(context: Context) -> WKWebView { |