PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, September 29, 2022

[FIXED] How to add an additional platform to a SwiftUI project

 September 29, 2022     ios, swift, swiftui, tvos, watchos     No comments   

Issue

I've started with a SwiftUI project for iOS. Now I'd like to add tvOS and watchOS as additional target platforms. Of course all platforms should share the same models, APIs and some views. Some views will be different for each platform.

How can I add subprojects to my existing structure?


Solution

It is not necessary to create new sub-projects, just create new target for desired platform in you current project and add shared files to new platform target, as on demo below

demo



Answered By - Asperi
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing