3D Content in iOS & visionOS apps with Spline (Xcode & SwiftUI)

Sdílet
Vložit
  • čas přidán 28. 06. 2024
  • Check out Spline at spline.design/
    In this video I walk you through building an animated 3D onboard screen using Spline.
    Spline is a no-code workflow to create 3D content for the Apple Ecosystem. It's an easy way to get 3D content into your iOS, iPadOS, macOS and visionOS apps by exporting SwiftUI code you can copy and paste into Xcode.
    Spline's metal-based renderer takes advantage of all the graphics acceleration on Apple devices to maintain the best performance.
    Learning to work with 3D designs will be important for iOS developers moving forward into the world of spatial computing on the Apple Vision Pro.
    Spline Keynote Video - • Spline Event - Unfoldi...
    Check Spline at spline.design/
    Join the Spline community:
    Instagram: / splinetool
    Twitter / X : / splinetool
    TikTok: / splinedesign
    Discord Community: / discord
    Discover, remix and showcase 3D creations #MadeInSpline at community.spline.design/
    My iOS Dev Courses:
    seanallen.teachable.com/
    My Source Code:
    seanallen.teachable.com/p/sou...
    X (Twitter):
    Sean Allen - / seanallen_dev
    Hired.com:
    hired.com/x/1n01g
    Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
    Mark Moeyken’s SwiftUI Books:
    www.bigmountainstudio.com/a/f...
    Paul Hudson's Hacking With Swift:
    gumroad.com/a/762098803
    RocketSim - Enhance Your Xcode Simulator:
    gumroad.com/a/51797971/ftvbh
    Objc.io Books (Thinking in SwiftUI & Advanced Swift):
    gumroad.com/a/656585843
    Timestamps:
    0:00 - 3D content with Spline
    0:33 - Starter project & Spline
    1:25 - How to get 3D content
    4:05 - Exporting a design to Xcode & SwiftUI (cloud)
    7:49 - Changing the design for our needs (live updates)
    11:13 - Disable user interaction
    11:47 - Animating the design
    14:39 - Exporting design to use locally
    15:54 - Minimum specifications
    #swift #softwaredeveloper #iosdeveloper
  • Věda a technologie

Komentáře • 65

  • @seanallen
    @seanallen  Před 4 měsíci +8

    Check out Spline at spline.design

    • @perrygupta
      @perrygupta Před 4 měsíci +1

      i was trying using spline. i had someone made design for me on fiverr but scaletofit was not working, now i know how it will work. thank you for the video.

    • @TE_-.-
      @TE_-.- Před 4 měsíci

      When I do the key combination, spotlight comes up. but not a bar like that. 😭

    • @seanallen
      @seanallen  Před 4 měsíci

      Happy to help!

  • @perrygupta
    @perrygupta Před 4 měsíci +20

    Spline if you are reading this comment, create a marketplace for 3d objects please.

  • @Lalvarez1223
    @Lalvarez1223 Před 4 měsíci +8

    It's like you are reading my mind Sean, was interested in adding this into one of my apps soon. Appreciate the constant uploads. Cheers

    • @seanallen
      @seanallen  Před 4 měsíci

      Happy to help! Give it a try. I really enjoyed playing around with it.

  • @Decatilinae
    @Decatilinae Před 4 měsíci +2

    Thanks for sharing...hope to see more videos like this showing another use case with Slipe, especially with Vision OS

    • @seanallen
      @seanallen  Před 4 měsíci +1

      I appreciate that feedback - I think a visionOS video would be cool too

  • @Krn7777w
    @Krn7777w Před 4 měsíci +6

    Thank you! I’d love to see more visionOS and 3D content from you.

    • @seanallen
      @seanallen  Před 4 měsíci +2

      More on the way!

    • @Krn7777w
      @Krn7777w Před 4 měsíci +1

      @@seanallen thank you! You’re awesome!😎

  • @Ukr_sunflower
    @Ukr_sunflower Před 3 měsíci +1

    Really helpful! Thanks for keeping us updated about new technologies in Apple ecosystem world!

  • @brianclear363
    @brianclear363 Před 4 měsíci +3

    yes I saw this recently and though it was good halfway house to bring 3d into 2D apps. For devs who dont have time to learn unity. The api to control the animation from Swift still needs work but they have a lot of upcoming changes so theyre investing a lot of time in iOS/visionOS etc.

    • @seanallen
      @seanallen  Před 4 měsíci

      I agree, it was a lot simpler to learn than I expected (not saying I'm a pro at it, but I felt good with it after a day of tinkering). I'm a big fan and think this will be very nice for volumes and spaces in visionOS.

  • @mario_luis_dev
    @mario_luis_dev Před 4 měsíci +1

    Spline is awesome indeed. Great video as always Sean!

  • @themediaphilechannel
    @themediaphilechannel Před 4 měsíci +2

    Thank you so much for sharing this!!

  • @DonnyWalsdev
    @DonnyWalsdev Před 4 měsíci +1

    Definitely going to have to give this a go!
    😍

    • @seanallen
      @seanallen  Před 4 měsíci

      Would love to hear what you think, Donny

  • @oldrepublikan
    @oldrepublikan Před 4 měsíci +4

    Thank you Sean.

  • @williambrandin1396
    @williambrandin1396 Před 4 měsíci

    This is so cool, thank you!

  • @duyhuynhnguyentuan6266
    @duyhuynhnguyentuan6266 Před 3 měsíci +1

    For anyone having the "Spline scene file is in an unknown format."", just create a new spline project and copy all the content to it. Create new "camera" object in the viewport if needed

  • @samtr4439
    @samtr4439 Před 4 měsíci +1

    Thanks, Sean.

  • @JasonMitchellAZ
    @JasonMitchellAZ Před 4 měsíci +2

    This looks cool. Thanks for the intro video!

    • @seanallen
      @seanallen  Před 4 měsíci +1

      Give it a shot. It was a ton of fun to play around with and gave me a bunch of ideas.

  • @bryceellis112
    @bryceellis112 Před 4 měsíci +1

    Wow so cool. I’ll have to check Spline out
    I do wonder how this would work in a watchOS app - just out of curiosity mostly

    • @seanallen
      @seanallen  Před 3 měsíci +1

      I don't believe watchOS is supported at this time.

  • @kianavila1698
    @kianavila1698 Před 4 měsíci +2

    That's great 😍

  • @mahmudcikrik9796
    @mahmudcikrik9796 Před 4 měsíci +1

    Hi Sean, thanks for the tutorial. 3D objects look very cool. I'm thinking of using it in my app, but I have doubts about performance. Does it affect battery consumption much? Or maybe there are other problems that we didn't anticipate?

    • @seanallen
      @seanallen  Před 4 měsíci

      I'm not sure about battery performance, but Spline uses the latest metal renderers for optimal performance. Sure, no 3D content would be more performant than having 3D content, but if you're gonna have it, Spline seems very well optimized.
      Maybe @splinetool can chime in.

  • @RyuuzakiJulio
    @RyuuzakiJulio Před měsícem

    Looks beautiful but, how about without a 3rd party plugin?

  • @w0mblemania
    @w0mblemania Před 4 měsíci +1

    Very interesting, Sean.
    A couple of questions:
    - I noticed you resized the asset in the editor, rather than dynamically resize it in SwiftUI. That doesn' seem like it's going to scale across different devices. Is it possible to do the scene scaling, to fit the SwiftUI scene, in SwiftUI?
    - do we get callbacks for when the scene is loaded? So we can do nice transitions when the scene appears, instead of just plonking it onscreen after it's loaded.
    Cheers.

    • @splinetool
      @splinetool Před 4 měsíci +1

      Hi! Auto-zoom support for orthographic cameras is coming very soon. This already works with perspective cameras (the video is using orthographic camera).
      Callbacks for when the scene is loaded will also be supported soon 🙌

    • @seanallen
      @seanallen  Před 4 měsíci

      Good to know!

  • @seregashteiman5459
    @seregashteiman5459 Před 3 měsíci

    Can I have problems with the copyright holder if I upload works from the spline to my application?

  • @iknowcoati
    @iknowcoati Před 4 měsíci +1

    Amazing!!! This is a dream come true since RealityKit's Model3D and RealityView aren't supported on iOS, and Scenekit 3D models aren't supported on visionOS.
    If I understand correctly, you currently wouldn't be able to build this app on visionOS yet - but spline is working towards that feature, is that right?

    • @seanallen
      @seanallen  Před 4 měsíci +1

      They are currently working on a lot of visionOS stuff. You can see some of their roadmap in the documentation on their site. But you can also export 3D stuff as a USDZ file from Spline, which you can use in visionOS.

    • @iknowcoati
      @iknowcoati Před 4 měsíci +2

      Hell yeah, thanks Sean this is incredibly helpful

    • @splinetool
      @splinetool Před 4 měsíci +2

      Hi! Actually we recently enable 3d embeds for VisionOS as well (including all content types: Windows, Volumes, and Inmersive views). The embedding approach is the same as the one for iOS. You just need to copy the embed code into your SwiftUI code for VisionOS.

    • @iknowcoati
      @iknowcoati Před 4 měsíci +1

      ​@@splinetoolNO WAY!!! My life just got so much better. I might cry a little

    • @seanallen
      @seanallen  Před 4 měsíci

      @@splinetool very nice!

  • @Echaront
    @Echaront Před 3 měsíci +1

    Great video Sean! I did try it but my simulator and preview in Xcode keep giving me this error: "Spline scene file is in an unknown format." I tried to load my Spline scene both locally and remotely. No success.

    • @Echaront
      @Echaront Před 3 měsíci

      UPDATE: It keeps giving that error with every single scene (from the Spline online library) I try to work. I am on Xcode 15.2 and my app is targeting iOS 17.0

    • @seanallen
      @seanallen  Před 3 měsíci

      I got this error and I needed to make sure I was using my newly created "camera" object (the camera we added for the animation) as the "viewport" (over on the right panel). And not the "personal camera". That fixed it for me.

    • @Echaront
      @Echaront Před 3 měsíci

      @@seanallen Thanks! I still get the error with a new camera. Creating a whole new scene and copy-paste the content solved the issue for me!

    • @devclones8937
      @devclones8937 Před 3 měsíci

      this worked for me thank you!@@seanallen

  • @TE_-.-
    @TE_-.- Před 4 měsíci

    how did you open this bar? which short cut is that? 6:01

  • @adamsmith4938
    @adamsmith4938 Před 18 dny

    Uploaded spline-iOS package but still saying No such module ‘SplineRuntime’ , probably works with Apple Silicon only 7:32

  • @onlydstn
    @onlydstn Před 3 měsíci +1

    When I try to recreate this, I get "Spline scene file is in an unknown format." inside of where the 3D model should be displayed. any solution for this?

    • @KalebZimmerman
      @KalebZimmerman Před 3 měsíci

      I am getting the same error and I haven't found a solution yet.

    • @duyhuynhnguyentuan6266
      @duyhuynhnguyentuan6266 Před 3 měsíci

      me too

    • @Echaront
      @Echaront Před 3 měsíci

      @@KalebZimmerman To resolve the issue you need to create a completely new scene and then copy and paste all the content from an existing onee. This should help in resolving the problem. However, even if it works perfectly fine in the preview, there is still a possibility that may crash on the simulator or device.

    • @seanallen
      @seanallen  Před 3 měsíci

      I got this error and I needed to make sure I was using my newly created "camera" object as the "viewport" (over on the right panel). And not the "personal camera". That fixed it for me.

    • @user-un4tr7vc4j
      @user-un4tr7vc4j Před 3 měsíci

      @@seanallen Thanks for your up-to-date episode first, but I got same issue when I did as you said before (using newly created "camera" object) I hope anyone can help us later.

  • @mujtabakhan1992
    @mujtabakhan1992 Před 3 měsíci

    Showing me error "Spline scene file is in an unknown format."

    • @seanallen
      @seanallen  Před 3 měsíci

      A few people have ran into this. I'm not sure of the issue. Maybe @splinetool can chime in?

  • @ikeybhatnagar9569
    @ikeybhatnagar9569 Před 2 měsíci

    😒 *promosm*