Trending

#SwiftyNetworking

Latest posts tagged with #SwiftyNetworking on Bluesky

Latest Top
Trending

Posts tagged #SwiftyNetworking

Post image

Today, let's switch up the environment a bit. 🌟

I've drafted the necessary endpoint to determine what data I need from the backend. #SwiftyNetworking is incredibly helpful in it. Now, let's write some #PHP! πŸ”—

Meanwhile, check out my networking package!
github.com/piotrekjere...

1 0 0 0
Preview
SwiftyNetworking: A SwiftUI-style approach to building networking layers @tera I have already sketched the abstraction that aims to completely isolate SwiftyNetworking from URLSession. SessionProvider accepts Request and returns Response. Its implementation, through the use of URLSession, is currently default if it is possible to import Foundation. The Network Framework could be easily incorporated as a SessionProvider. My goal was to separate the building Request process from sending it.

For the first time, I dared to present my project at #Swift Forums. πŸš€

#SwiftyNetworking has become a mature package that I personally use. I wonder if others would also appreciate this way of writing requests. πŸ€”

Curious? Check out the thread! πŸ”—

forums.swift.org/t/swiftynet...

1 0 0 0

#Development
After a busy period with the #SwiftyNetworking refactor, Im now back in @Commit.Photos with performance tweaks. πŸ”§πŸ‘¨β€πŸ’»

I thought the project was ready for #Swift6, not now. The plan is simple - to start a solid promo and have an update ready at the end of the month. πŸ“Έ

0 0 1 0

#Projects
First things first, my package, #SwiftyNetworking, has been completely rewritten from scratch. This is my preparation for the next stage, which accelerated more than I anticipated. πŸ”

The next step is to draft the plan, which will be ready within the next 2 months. πŸ“

0 0 1 0

Damn… 😞

After successfully refactoring the #SwiftyNetworking package, I decided to focus on @commitphotos' performance.

Unfortunately, my other project blew up… πŸ’₯

Uh… A never-ending story… πŸ”„

0 0 0 0
Post image

#SwiftyNetworking #Package is my vision for the networking layer in the #SwiftUI era. 🌐

I'm thrilled with the final result and have plenty of ideas still brewing. For now, it's time to explore other projects. πŸš€

Enjoy! 🌟
github.com/piotrekjere...

#BuildInPublic #Swift #network

2 1 0 0
Post image

The time has come! ⏰

Three weeks of intensive refactoring. Countless lines removed, with almost everything rewritten from scratch! ✍️

#SwiftyNetworking #Package is my answer to how the networking layer should look in the era of #SwiftUI.

Simple, illustrative, and magical! ✨

1 0 0 0
Post image

This is the final version of the AuthorizationProvider, a crucial component of the #SwiftyNetworking package. πŸŽ‰

The protocol requires only the auth schema and the storage location for credentials. πŸ”

Save your accessToken and explain how to use it. The rest is magic! ✨
#Swift

0 0 0 0
Post image

I needed these two modifiers, `beforeRequest` and `afterResponse`, to create a complete Auth Flow!

#SwiftyNetworking is designed to be simple. Want to authorize a request? Use the `authorize` modifier! πŸ”

Just prepare your credentials first, and you're done! βœ…

#BuildInPublic

2 1 0 0
Post image

I've always wanted #SwiftyNetworking to be easy to debug from the #Xcode console. πŸ› οΈ

As a result, I am using the HTTP messaging description. πŸ’¬

It's still a WIP, but it looks fantastic and uses #OSLog, allowing developers to configure it based on the service. πŸš€

#BuildInPublic

4 1 0 0
Post image

This is the initial result of adding support for strict concurrency in #SwiftyNetworking.

It used to be simple, but now... additional inheritance, keywords, and more.

Now, I'll sit down and rephrase it again. I want to challenge the current implementation...

0 0 0 0
Post image

Two weeks of #SwiftyNetworking refactoring are behind me, and the results are increasingly satisfactory. 😊

Admittedly, I encountered a few dead ends, but they offered useful lessons. Completing the implementation of the session will be the final key feature. πŸ”‘

#BuildInPublic

3 1 0 0
Post image

The most obvious ideas often come to mind at the end!

I've removed the Request macro from #SwiftyNetworking, which simplifies the code even further. Now, modifiers can change the types of entire request structures.

This refactor has been technically rewarding! πŸŽ‰
#BuildInPublic

3 1 0 0
Post image

I discovered an incredible opportunity, but I also hit a roadblock. πŸ›‘

At present, #SwiftyNetworking relies on a cumbersome #macro to identify request types. However, during today's refactoring, I encountered an intriguing moment.✨

I need to experiment with inherited types. πŸ§ͺ

1 0 0 0
Post image

Man does not live by refactoring alone. πŸ™Œ

Creating an advanced package like #SwiftyNetworking requires perfect tools!

Probably most of you have seen some #unboxing, so I'll just share 2️⃣ photos. This time, though, the new #iPhone will motivate me to start a digital cleanup. πŸ“±

0 0 1 0
Post image

I end the day sketching the #Session class in #SwiftyNetworking, which handles requests. 🎨

Choose #async/#await with one of two functions, or opt for #closures or #Combine, as you prefer! πŸ’»

Now, the hardest part: transforming the request into a response. πŸ”„

#BuildInPublic

4 0 0 0

#Development
The #SwiftyNetworking package is now under heavy refactor. This straightforward web library is designed to help you effortlessly build queries, much like constructing #SwiftUI views. I'm currently halfway through the development, and you can follow my progress regularly. πŸŽ‰

0 0 1 0
Post image

Over the weekend, I implemented a simple structure builder that is Encodable and compatible with the #SwiftyNetworking package. πŸ› οΈ

You can use it to build headers, query items, and body data. πŸ’‘

My goal is to create a fully cross-platform library for all #Swift environments! πŸš€

0 0 0 0
Post image

I managed to sit down for a moment at #SwiftyNetworking over the weekend. 😌

I implemented a feature for easy key-value parameter writing, with predefined headlines for effortless structure creation. πŸ“

Tomorrow, I'll start by creating a Service to identify the data source. πŸš€

0 0 0 0
Post image

I nailed it! πŸ’ͺ

Now, #SwiftyNetworking has a proper #Request builder pattern. I can freely build any objects that conform to Request and place them into a larger structure. 🧱

It's time to start the weekend. Next step: prepare a generic #URLRequest builder. πŸš€

#BuildInPublic

2 1 0 0
Post image

Alright, here we go again... It's not so easy. πŸ˜…

My #SwiftyNetworking #Package should ideally offer a solution that perfectly suits my needs. Building #SwiftUI Views is more advanced compared to my simplified Request Builder. πŸ’‘

Now, it's a deep-digging process... πŸ”

#Swift #BuildInPublic

4 0 0 0
Post image

It was a long day, but the results are promising! 😊

I am not sure if this is the final solution, but it is good enough to move further with the #SwiftyNetworking refactor.πŸ’‘

The Configuration will serve as a source to build URLRequest. Now, I want to resolve the final request.

1 0 0 0
Post image

I created an Environment in #SwiftyNetworking, calling it Configuration.

The Configuration serves as the foundation for building #URLRequests. Like Environment, Configuration is based on ConfigurationValues.

#BuildInPublic

3 1 0 0
Post image

Everything has its beginning! 🌱

My #SwiftyNetworking Request will start with an EmptyRequest featuring an empty configuration. πŸš€

Each modifier will inject new values into the ConfigurationValues store, modeled after the Environment from #SwiftUI. πŸ”„
#Networking #BuildInPublic

3 0 0 0
Post image

Having Request Modifier marks the second step in my #SwiftyNetworking package refactor. πŸ”„

Unlike before, I now rely on modifiers. Previously, #SwiftPackage copied the Request, modified the configuration, and returned a new object.

Now, it's more aligned with #SwiftUI. πŸš€

#iOS

0 0 0 0
Post image

Great first day of the #SwiftyNetworking refactor! πŸš€

I have two abstractions: #Request and RequestModifier. Both are modeled after SwiftUI's View and #ViewModifier.

Additionally, I plan to dive into the current implementation to find a better solution for modifiers. πŸ”

#Swift

0 0 0 0
Post image

This is #SwiftyNetworking, a simple package that provides a SwiftUI-style request builder.

#HTTP Request methods can be included in the body, and modifiers help build the request structure. πŸ“¦

The biggest challenge was supporting dynamic response types. πŸ’‘
#Swift #BuildInPublic

4 1 0 0
Post image

This is the best refactor I've ever made! 🀣

Jokes aside, I plan to rewrite #SwiftyNetworking from scratch. The aim is to keep the current API intact while building better fundamentals under the hood.

The primary goal is to support #Swift 6 concurrency features.

#BuildInPublic

4 1 0 0
Preview
GitHub - piotrekjeremicz/SwiftyNetworking: Simple networking layer inspired by SwiftUI views building style Simple networking layer inspired by SwiftUI views building style - piotrekjeremicz/SwiftyNetworking

The latest release of #Swift 6.2 gave me an opportunity to refresh my #SwiftyNetworking package. πŸš€

I made the initial commit in late 2021. Since then I've learned a lot and still use my #package for #networking. πŸ“¦

It's time to reach version 1.0! πŸ’ͺ

github.com/piotrekjere...

1 0 0 0