Difference between revisions of "Swift"

From Lost In Wonderlands
Jump to: navigation, search
(issues zith REST and URLsession)
(URL construction)
Line 238: Line 238:
 
* https://www.swiftbysundell.com/articles/constructing-urls-in-swift/
 
* https://www.swiftbysundell.com/articles/constructing-urls-in-swift/
 
* https://developer.apple.com/documentation/foundation/url_loading_system
 
* https://developer.apple.com/documentation/foundation/url_loading_system
*
+
* https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app
* https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app* https://www.appcoda.com/working-url-schemes-ios/
+
* https://www.appcoda.com/working-url-schemes-ios/
 
* https://medium.com/swift2go/building-safe-url-in-swift-using-urlcomponents-and-urlqueryitem-alfian-losari-510a7b1f3c7e
 
* https://medium.com/swift2go/building-safe-url-in-swift-using-urlcomponents-and-urlqueryitem-alfian-losari-510a7b1f3c7e
 
* https://www.avanderlee.com/swift/url-components/
 
* https://www.avanderlee.com/swift/url-components/

Revision as of 02:49, 29 April 2021

Swift

See also

Swift

Swift Topics

Data Flow and Control Flow

Data Modeling

Language Interoperability

Class Bridging
Swift and Objective C and C


Cocoa Design Patterns and Swift

Swift with Style

Swift API design

Swift Standard Library

Swift protocols

protocols conformance

protocols

Swift Generics


Swift Patterns

 https://github.com/ochococo/Design-Patterns-In-Swift


Swift Algorithms

more algorithms

in python

in C++


tutorials

forums

books


Topics

A

Application Transport Security

B

C

D

E

F

G

H

HTTP request

https://stackoverflow.com/questions/8023126/how-can-i-test-https-connections-with-django-as-easily-as-i-can-non-https-connec https://gist.github.com/claudiosanches/7012524 https://www.google.com/search?client=safari&rls=en&q=ios++swift+url+maker+and+localhost++plus+port+number&ie=UTF-8&oe=UTF-8 https://github.com/depoon/SwiftLocalhost

  • mostly on a simulator to access a http://localhost:portnum/service hosted on the same host
  • IOS reinforce the access to HTTPS only since ioS 7
  • for sometime it was possible to grant htpp access in the info plist but now we have to grant more things
<key>NSAppTransportSecurity</key>
   <dict>
       <key>NSAllowsArbitraryLoads</key>
       <true/>
   </dict>
  • local host or 127.0.0.1
var rest_url = "http://127.0.0.1:8000/rest/users/"

sample code

I

issues zith REST and URLsession

J

K

L

M

N

O

P

Q

R

REST API call

testing it using curl

sample code

S

T

U

URL construction


sample code

V

W

X

Y

Z

swift versions

WWDC 2020

WWDC2019

WWDC 2018

WWDC 2017

WWDC 2016

Sample codes

Articles

Blogs

Tools link

Books