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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Deno", | |
"type": "pwa-node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "deno", | |
"runtimeArgs": [ |
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
// First create a dic with attributes you want to customize, | |
// then set text attributes to segmented control. | |
NSDictionary *attributes = @{ NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Light" size:17] }; | |
[segmentedControl setTitleTextAttributes:attributes forState:UIControlStateNormal]; |
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
// | |
// JSONEncoding.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
public struct JSONParameterEncoder: ParameterEncoder { |
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
// | |
// URLEncoding.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
public struct URLParameterEncoder: ParameterEncoder { |
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
// | |
// ParameterEncoding.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
public typealias Parameters = [String:Any] |
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
// | |
// EndPointType.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
protocol EndPointType { |
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
// | |
// Router.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
public typealias NetworkRouterCompletion = (_ data: Data?,_ response: URLResponse?,_ error: Error?)->() |
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
// | |
// HTTPMethod.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
public enum HTTPMethod : String { |
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
// | |
// HTTPTask.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
public typealias HTTPHeaders = [String:String] |
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
// | |
// EndPoint.swift | |
// | |
// Created by Luiz Fernando Aquino Dias on 13/04/19. | |
// Copyright © 2019 Luiz Fernando Aquino Dias. All rights reserved. | |
// | |
import Foundation | |
enum NetworkEnvironment { |
NewerOlder