Build your next website in Swift

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Swift's result builders let us create domain-specific languages right inside our Swift code, and with a little thinking that means we can actually build whole websites in Swift - and even use similar syntax to SwiftUI!
    Get Ignite here: github.com/two...
  • НаукаНаука

Комментарии • 127

  • @dj_256
    @dj_256 4 месяца назад +19

    My man did the thing I've been waiting for for years. Im getting emotional rn

  • @knightandlord
    @knightandlord 3 месяца назад +6

    I really hope you never stop your good works. I hope you see this. I haven’t quite gotten to the level of understanding these at all. However, I’m passionate about building amazing things and I know I’ll get to the point where your videos will become useful. But I’ll wet the ground to walk on a ground with coolness later on. Parable. I’m a designer currently looking out for Swift tutorials that can explain it to me in design terms. Haven’t quite seen yet. But I notice your videos show up more and more in my search.

    • @twostraws
      @twostraws  3 месяца назад +1

      I’m glad you enjoyed the video! Building with Swift is a lot of fun 🙂

  • @Stricken174
    @Stricken174 4 месяца назад +2

    Bravo! Couple of weeks ago i was making html + css code work in swift project, and doesn't even think that it can be done that way. Awesome, as always.

  • @JesseSlomowitz
    @JesseSlomowitz 3 месяца назад +3

    As a web developer, it is amazing to see another language having an access point to front-end development. Great work! I was surprised to see Bootstrap being used, it seemed more people have leaned more into Tailwind but seeing as how Bootstrap is more component-based than CSS-flexible, it does make sense to have that structure for the Swift components.

  • @fpst
    @fpst 4 месяца назад +14

    First time I am interested in web development. Thanks Paul :)

  • @swiftandtips
    @swiftandtips 4 месяца назад +8

    Awesome video Paul! I will try it out for my new blog, thank you! (And great explanation of Result builders 👏🏻)

  • @ioscaleb
    @ioscaleb 4 месяца назад +7

    Paul Hudson you are a mad genius. Great ideas, great video.

  • @ValentinaRotari-ii7hw
    @ValentinaRotari-ii7hw 3 месяца назад +4

    That is a great work done! Thank you! And hope to see some clips from you on building web sites using Ignite!

  • @fruitduck2094
    @fruitduck2094 4 месяца назад +2

    This is great Paul! I've recently started working on my personal website and was looking into SSGs. Imagine my surprise when I came across this video

  • @stevepottz111
    @stevepottz111 4 месяца назад +12

    This is cool. This is one step closer to freeing me from the JS ecosystem.

    • @RA-xx4mz
      @RA-xx4mz 4 месяца назад +1

      Htmx gang wuz here

    • @langahoohlo6695
      @langahoohlo6695 4 месяца назад

      Is it better to be an apple eco system compared to js

    • @stevepottz111
      @stevepottz111 4 месяца назад

      @@langahoohlo6695 Facts

    • @Red00022
      @Red00022 4 месяца назад

      @@langahoohlo6695believe it or not. It really is.

  • @djryanashton
    @djryanashton 3 месяца назад +2

    This is such an exciting project. Thanks Paul.

  • @will.gallegos
    @will.gallegos 4 месяца назад +5

    Aye what!? Never thought that this would ever be a thing...
    Im going to start as soon as I can...

  • @artemyvolkov
    @artemyvolkov 4 месяца назад +2

    Amazing! Simple and so clever! Thanks so much, Paul, learning every time!

  • @codingraph
    @codingraph 4 месяца назад +3

    Watching this video on my way to Japan, so well done !

  • @iOSnick
    @iOSnick 4 месяца назад +1

    Paul, You're The Best! I'am gonna try it!

  • @milanlabus1582
    @milanlabus1582 3 месяца назад +2

    We love this kind of content diving into the more niche areas of SwiftUI, Id love to see more Mapkit videos

  • @willchiu4418
    @willchiu4418 4 месяца назад +1

    I usually don’t leave comment, but you get my attention. Well Done Man 👍🏻

  • @tdrg_
    @tdrg_ 4 месяца назад +1

    Never thought I’d see this day. Awesome!

  • @tunedone4033
    @tunedone4033 23 дня назад

    Great work! Don't give up on it.... It will be on top in future....
    If it is possible to create some video on the topic of "Ignite" it would be great!!!
    Once more - great job and good luck on your framework...
    As for me I'll try to do a website on Ignite

  • @arjundureja
    @arjundureja 4 месяца назад +5

    Very cool! Could this be used with Vapor to dynamically generate HTML pages entirely in Swift?

  • @vsramakrishnarajukanumuru9586
    @vsramakrishnarajukanumuru9586 4 месяца назад +1

    This is awesome idea. I was thinking about this while learning 100 days swift project on embabed html in swift.

  • @mohammadnej7029
    @mohammadnej7029 4 месяца назад +2

    Such a nice job bro! Job well done 😮🎉

  • @micahburnside2281
    @micahburnside2281 3 месяца назад

    I will build a website next week with Ignite. I cant wait.

  • @akbar_logs
    @akbar_logs 4 месяца назад +2

    Amazing work. Lot of thanks.

  • @maciejtrybilo
    @maciejtrybilo 4 месяца назад

    Minor thing: AFAIK the '/' in "self closing" tags are ignored nowadays. Just using is _slightly_ more correct than . The forward slash is in fact misleading since e.g. will just start a new div and not self close.

  • @micahburnside2281
    @micahburnside2281 3 месяца назад

    This is amazing so far. One thing Im not clear on yet is exactly how scripting works in this framework.
    I see you added it to the library but I dont yet know web dev to be able to figure this out.

  • @goranbla
    @goranbla 4 месяца назад +1

    another one of those: "why didn't I think of this" ideas 🙈 😅
    amazing work, man, forking now, have some additional ideas that might make sense

    • @goranbla
      @goranbla 4 месяца назад

      and of course, coming up with an idea doesn't mean much until you create a repo 💪

  • @techanthrop
    @techanthrop 4 месяца назад

    That reminds me John Sundell's "Publish" which can be used to generate HTML Websites with Swift Code... Very similar but more intuitive. :) Thanks Paul.

  • @TeddRod-jh3lb
    @TeddRod-jh3lb 4 месяца назад +1

    Awesome work with your Ignite project. I also see that it is actually meant to build static website, any change that it could be use for generating server-side website in future ?

  • @__Imran__
    @__Imran__ 4 месяца назад +1

    Every day passed and I realized, I loved you more than yesterday.
    I want to be a coder like you.
    I am passionate like you but not that much skilled. Pray for me ❤.
    By the way, thanks for this amazing Library. 💌

    • @tejaspatelia8179
      @tejaspatelia8179 4 месяца назад +2

      Praying won't work. Practice will!

    • @__Imran__
      @__Imran__ 4 месяца назад

      @@tejaspatelia8179 trying brother

  • @AnandKumar-oc2nv
    @AnandKumar-oc2nv 4 месяца назад +1

    Amazing Video. Can you create video how to publish the site?

    • @SwiftDeepDive
      @SwiftDeepDive 3 месяца назад

      if I'm not mistaken and correct me please Paul, Ignite will allow Swift developers to create a Static Website using SwiftUI style code and then the framework will create the html for us that we can just upload to our hosting provider? Is that correct - Love the work that you are doing!!!

  • @juliushuck
    @juliushuck 2 месяца назад

    I see huge potential in swift swift ui like syntax for web apps like react. Maybe using web assembly or so like c# blazor

  • @karlostj4683
    @karlostj4683 4 месяца назад

    "But what happens if I forget this closing ?" You mean, just like you forgot the closing ? Browsers apparently accept the fact that some tags don't have to be closed.

  • @nasir519
    @nasir519 4 месяца назад +1

    At the moment I needed a way to develop a static website for my brand, just curious how does ignite helps with SEO ?

  • @nahomb2784
    @nahomb2784 Месяц назад

    Nice. I hope the latest CSS APIs are in use. These APIs are removing some of the dependency on JS.

  • @AioriaPoderoso
    @AioriaPoderoso 4 месяца назад +1

    This is amazing I will defenitly switch from dart to swift

  • @takumuguti
    @takumuguti 4 месяца назад

    Wow this is amazing 🙌🏾🔥🔥🔥

  • @arneoldenhave3669
    @arneoldenhave3669 3 месяца назад

    Paul Hudson doing the Lords Work. Thank you 🙏

  • @AndysTV
    @AndysTV Месяц назад

    Can I build a product on top of it for professional use?

  • @nesssery
    @nesssery 4 дня назад

    The challenge would be to provide integrated data from API

  • @typicaltype2608
    @typicaltype2608 4 месяца назад +2

    this is so sick man

  • @multimedia4953
    @multimedia4953 2 месяца назад

    Wow! I have to try this.

  • @anmolrajpalofficial
    @anmolrajpalofficial 4 месяца назад +2

    So if I want to make some changes in my html code (eg, text), do i have to compile the XCode app every time to see the changes?
    In html files, we don't need to compile our Node.js or any web app!

  • @LeBojo
    @LeBojo 4 месяца назад

    That's looks insane!

  • @entertainment-psx-989
    @entertainment-psx-989 3 месяца назад

    For Android devs, there is native support to use Compose ( the android equivalent of SwiftUI) on the web, you dont have to use HTML. Its unfortunate SwiftUI is not open source. So for native iOS devs the swiftUI skills cannot be directly used to build UI on the web like Android...

  • @benhernes1110
    @benhernes1110 3 месяца назад

    This is really cool, thanks for the video.
    I know that when you dev a website, you'd usually upload files (HTML, CSS, JS, assets) to a hosting provider to publish. What would the analog be for using Ignite? Would you still upload this folder, or is there a way to convert an Ignite project in Xcode to HTML / CSS / JS?

    • @twostraws
      @twostraws  3 месяца назад +1

      The point of Ignite is that it converts Swift code into HTML etc, so you end up with something you can upload manually or deploy using Git if you prefer.

  • @JasonJurotich
    @JasonJurotich 3 месяца назад

    question... when you have this webpage, because it is swift, could you somehow package this to then work as an iOS app so you could then add notifications, bluetooth access, etc? That would be a cool video...

  • @cb73
    @cb73 4 месяца назад

    Sincere question: who has this problem now days? I haven’t worried about editing proper html in what seems like decades. Every good editor now has good linting.

  • @kiohaha
    @kiohaha Месяц назад

    1:01 think they need to tackle device compatibility on iOS and android for swift. They are falling behind on this. Kotlin multi platform is taking better shape since they seem to be dropping flutter to progress kmp instead. They might win the language wars if apple doesn’t step up

  • @mayankbhaisora2699
    @mayankbhaisora2699 4 месяца назад

    More power to Swift

  • @AndyJMacLeod
    @AndyJMacLeod 3 месяца назад

    Would this make it easier to make a web app from an iOS app?

  • @dexternepo
    @dexternepo 3 месяца назад

    Will this work on Linux?

  • @Abdullah-zl9ub
    @Abdullah-zl9ub 4 месяца назад

    I never knew it was possible to build a website using swift. Is it done in Xcode? Does swiftUI work?

  • @AlanRick26
    @AlanRick26 4 месяца назад

    I just don’t understand how/where to host the SwiftUI platform. I don’t think that my hosting service provides this.

  • @vimalgorvadia
    @vimalgorvadia 4 месяца назад

    Hey You’re doing great job by creating lgnite, full filing purposes of swift as general purpose language keep it up. Can you please let me know how can we develop dynamic website using swift only? By using ignite with vapor or so.

  • @atanasnachkov4030
    @atanasnachkov4030 4 месяца назад +1

    Thank you!

  • @danieldonaldson8634
    @danieldonaldson8634 4 месяца назад

    And is this adaptable to Vapor, or similar Swift based web frameworks for dynamic HTML?

  • @cbbcbb6803
    @cbbcbb6803 4 месяца назад

    Could this be done in any programming language?

  • @tazman7689
    @tazman7689 4 месяца назад

    Can you publish to GitHub pages?

  • @lillllliiill-r3e
    @lillllliiill-r3e 4 месяца назад +2

    Incredible….

  • @timotejmatlak4625
    @timotejmatlak4625 4 месяца назад

    What a great news 😎

  • @Goku61001
    @Goku61001 4 месяца назад

    Blazor?

  • @ayopringle
    @ayopringle 4 месяца назад

    this is amazing

  • @sabata657
    @sabata657 4 месяца назад

    great job

  • @Xcoder
    @Xcoder 4 месяца назад +2

    👍🏻

  • @huynhlong350
    @huynhlong350 4 месяца назад +1

    Backend next so i can do full stack iOS with swift only haha

    • @arjundureja
      @arjundureja 4 месяца назад

      You can already do this with Vapor

    • @huynhlong350
      @huynhlong350 4 месяца назад

      @@arjundureja wow didnt know that, thanks brother

  • @takasurazeem
    @takasurazeem 4 месяца назад

    I would love it if we could develop an Android app using Swift...

  • @АртемОлеговичМоисеев
    @АртемОлеговичМоисеев 4 месяца назад

    Awesome!🎉

  • @datping7377
    @datping7377 4 месяца назад

    It’s really nice but will it solves all the html related problems at the beginning?

    • @datping7377
      @datping7377 4 месяца назад

      But I don’t understand why it would be beneficial to build a website using swift… is it just because we can and it’s cool or does it fixes problems other ways can’t?

  • @neneodonkor
    @neneodonkor 4 месяца назад

    2:26 The Swift way of doing it looks awkward to me.

  • @Michael-Martell
    @Michael-Martell 4 месяца назад

    I’m just waiting for Swift Next.JS. I’m gonna be on that like a fat kid in a candy store…

  • @gcelite36
    @gcelite36 4 месяца назад +2

    JavaScript and Swift seem pretty similar, so it’d be natural to expand Swift’s capabilities into the web realm

    • @tylerfrydenlund
      @tylerfrydenlund 4 месяца назад +1

      Im sorry what. Javascript and Swift couldnt be more different. One is a strongly, statically typed language, designed for a specific use case of building beautiful UI in a close ecosystem. And the other is a dumpster fire that the internet runs on. The only similarity between the two, is that they are programming languages

    • @gcelite36
      @gcelite36 4 месяца назад

      @@tylerfrydenlund do you know what the word “seem” means?

    • @arjundureja
      @arjundureja 4 месяца назад +2

      @@tylerfrydenlund Swift is not designed specifically for building UI. It's general purpose like JavaScript, Python, Java, etc. You might be confusing Swift with the SwiftUI framework

  • @D_bugit
    @D_bugit 4 месяца назад

    Actually this already exist in kotlin

  • @MiaomiaoShi-p6s
    @MiaomiaoShi-p6s 4 месяца назад

    for somehow, it looks like react.

  • @EricMasiello
    @EricMasiello 4 месяца назад

    Is this meant to run on a server alongside a server framework (e.g., Express, etc) or is this meant for emitting static html via a build script?

    • @Bks715
      @Bks715 4 месяца назад

      Looks like it’s for static html only

    • @twostraws
      @twostraws  4 месяца назад +3

      Ignite is designed for static site generation, at least for now, but the result builder approach introduced in the rest of the video can be used anywhere you want.

    • @Bks715
      @Bks715 4 месяца назад

      @@twostraws it’s a super cool idea

  • @vvvorlds
    @vvvorlds 4 месяца назад

    Build yout next Crysis in Php!

  • @davidlangley9287
    @davidlangley9287 2 месяца назад

    Nice

  • @garanceadrosehn9691
    @garanceadrosehn9691 4 месяца назад

    Impressive.

  • @ShaqarudenGames
    @ShaqarudenGames 4 месяца назад +1

    Damn, it had to be bootstrap….

  • @soheilpakgohar6630
    @soheilpakgohar6630 4 месяца назад

    awesome

  • @Rychillie
    @Rychillie 4 месяца назад

    As a web developer moving to iOS and I say, Bootstrap is outdated and cumbersome! I would go with Tailwind, but all these tools are really cool!

  • @REDCoder-xs6pw
    @REDCoder-xs6pw 4 месяца назад

    😵‍💫

  • @Goktug-sx6fm
    @Goktug-sx6fm 4 месяца назад +9

    you lost me at html language lol

    • @TRLYx
      @TRLYx 2 месяца назад +5

      To be perfectly fair, that is what the L in HTML stands for.

    • @pookiepats
      @pookiepats Месяц назад +1

      Shove off then lol won’t miss ya, this is awesome for real swift devs

    • @cempack
      @cempack Месяц назад +2

      HTML is a language, a markup language actually, just not a programming language.

    • @d1namis
      @d1namis 12 дней назад

      ​@@cempack html is programming language, not turing complete, but a fully capable programming language.

    • @cempack
      @cempack 12 дней назад +1

      @@d1namis If you think HTML is a programming language, you clearly don’t know the first thing about programming. HTML is a markup language, designed for structure, not logic or computation. It doesn’t execute anything, can't process data, and certainly doesn’t come close to being a Turing complete system. If you're calling HTML a "fully capable programming language," you're way off base. Go read up on what a programming language actually is before making claims like that.

  • @smithshaw1151
    @smithshaw1151 4 месяца назад +1

    Bad idea. HTML is simple enough to learn

  • @vollmerama
    @vollmerama 4 месяца назад

    dont already have react and nextjs?

    • @infantfrontender6131
      @infantfrontender6131 4 месяца назад +1

      This solution is for those who want to use only Swift in the web. If you know JS, then you have a lot of frameworks for different needs

  • @rickdg
    @rickdg 4 месяца назад +1

    And then stick it in a webview of your mobile app 😂

  • @herosova
    @herosova 4 месяца назад +1

    ultimately it will end up becoming html then why bother with this so much layers

    • @twostraws
      @twostraws  4 месяца назад +1

      This is literally answered in the video, and more than once 🤷‍♂️

    • @herosova
      @herosova 4 месяца назад +1

      @@twostraws i never thought you would reply

    • @ioscaleb
      @ioscaleb 4 месяца назад

      Code will ultimately become machine code anyway, why bother with a high level language?

  • @tis5yoab
    @tis5yoab 4 месяца назад

    It reminds me of a Java JSP 🙂

  • @arturo7392
    @arturo7392 4 месяца назад

    It feels to me that it brings more new stuff to learn without guarantee of scalability for a big project. I’m not learning something new for the sake of wasting time. I would just stick to typescript and react for now. It needs more work

  • @cubanlincoln1767
    @cubanlincoln1767 4 месяца назад

    Just another try of replace classic html that will fail soon

  • @ali-dp7wr
    @ali-dp7wr 4 месяца назад +1

    I don't think it's going to be successful.

  • @smithshaw1151
    @smithshaw1151 4 месяца назад

    Let’s get rid of build steps people. Just learn HTML

  • @farrenzoroqueez
    @farrenzoroqueez 4 месяца назад

    As a human that abhorres HTML, I have to say, this is truly an abomination. You must repent for such sacrilegious actions.