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
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
PreviewsPlus.Canvas( | |
content: ContentView(), | |
previews: [ | |
Preview(device: .iPhoneSE, colorScheme: .light, contentSizeCategory: .extraExtraExtraLarge), | |
Preview(device: .iPhone12Pro, colorScheme: .dark), | |
Preview(device: .iPhone12Pro, contentSizeCategory: .accessibilityExtraLarge, layoutDirection: .rightToLeft), | |
Preview(device: .iPhone12Pro, colorScheme: .dark, contentSizeCategory: .extraSmall, layoutDirection: .rightToLeft) | |
] |
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
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
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
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
Text("I work!") | |
} | |
} |
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
--- | |
format_version: '6' | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
project_type: fastlane | |
app: | |
envs: | |
- FASTLANE_XCODE_LIST_TIMEOUT: '120' | |
- opts: | |
is_expand: false | |
FASTLANE_WORK_DIR: "." |
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
import Foundation | |
// MARK: - Array | |
public extension Array { | |
/// Safe subscript for element at index | |
/// | |
/// - Parameter index: array's index to subscript. | |
/// - Returns: Optional array element if it exists in that index. | |
public func item(at index: Int) -> Element? { |
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
// | |
// Morphable.swift | |
// Morphable | |
// | |
// Created by marcosgriselli on 05/05/2018. | |
// Copyright (c) 2018 marcosgriselli. 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
import UIKit | |
protocol Searchable { | |
func update(text: String?) | |
} | |
class BaseSearchResultUpdating: NSObject, UISearchResultsUpdating { | |
func updateSearchResults(for searchController: UISearchController) { | |
guard let searchable = searchController.searchResultsController as? Searchable else { | |
fatalError("The searchResultsController is does not conform to Searchable.") |
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
// | |
// ReusableCells.swift | |
// ella | |
// | |
// Created by Marcos Griselli on 12/17/17. | |
// Copyright © 2017 Hirsh Group LLC. 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
import AVFoundation | |
var audioPlayer: AVAudioPlayer? | |
enum AudioLoader { | |
case fromResource(URL) | |
case fromAsset(NSDataAsset) | |
} | |
enum AudioLoaderError: Error { | |
case resourceNotFound |
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
// | |
// UIImageView+URL.swift | |
// marcosgriselli | |
// | |
// Created by Marcos Griselli. | |
// Copyright © 2017 marcosgriselli. All rights reserved. | |
// | |
import Kingfisher |
NewerOlder