templates icon indicating copy to clipboard operation
templates copied to clipboard

Added SwiftUI app based template

Open Luki120 opened this issue 3 years ago • 2 comments

What does this implement/fix? Explain your changes.

  • This implements a new template for applications written in Swift using the fairly new framework Apple announced in WWDC19, SwiftUI. I made this because before I would just choose the regular Swift template, but I found myself having to delete the RootViewController.swift everytime or just delete all the UITableView code and add the basic one a ContentView.swift should have. Since the AppDelegate lifecycle was abandoned with the introduction of the App protocol following iOS 14, I also needed to add the basic code for a file like that, and only then I could start writing the actual code. SwiftUI is also based on structs so it makes sense (to me), having a separate template from the original UIKit one, besides this has become really convenient since I started using it so I thought I'd make a contribution here so everyone can hopefully use it if they wish to.

Does this close any currently open issues?

Any relevant logs, error output, etc?

Any other comments?

Where has this been tested?

Operating System: … Kubuntu 22.04.3 LTS x86_64

Platform:

Target Platform: … iOS/iPadOS

Toolchain Version: … Swift 5.8

SDK Version: … 15.5

Luki120 avatar Feb 12 '22 08:02 Luki120

Had a couple of comments but this looks good to me otherwise! Awesome work.

L1ghtmann avatar Jul 30 '23 16:07 L1ghtmann

I believe this is ready now that the launch images and libswift dependency issues were addressed, so I removed the draft status

Luki120 avatar Jul 30 '23 23:07 Luki120