Dela en playground eller ett approjekt på datorn
Du kan dela din playground eller ditt approjekt så att andra kan testa koden som du har skapat. Om du har ett Apple Developer-konto och skapar en app (macOS 12.4 eller senare) kan du skicka in appen till App Store Connect så att den blir tillgänglig för andra.
Använda AirDrop, Mail, Meddelanden med mera
Öppna fönstret Mina playgrounder i appen Swift Playgrounds på datorn (välj Fönster > Mina playgrounder eller klicka på överst till vänster på skärmen Fler playgrounder) och kontroll-klicka sedan på den playground som du vill dela.
Klicka på Dela.
Välj hur du vill dela din playground eller app:
AirDrop: Klicka på en mottagare. Mottagaren måste tacka ja till att få dokumentet innan det skickas.
Meddelanden, Mail eller annan app: Klicka på Mail, Meddelanden, Mer eller en annan app, ange en mottagare och annan information som krävs och skicka den sedan.
Skicka in en app till App Store Connect eller installera den på datorn
Du kan installera en app som du har skapat (i macOS 12.4 och senare) i mappen Appar på datorn.
Om du har ett Apple Developer-konto kan du skicka in en appen till App Store Connect.
Klicka på nära det övre vänstra hörnet för att öppna det vänstra sidofältet och klicka sedan på Appinställningar nära överkanten i sidofältet.
Välj en symbol och färg för appen, klicka på Anpassa och importera eller klistra in bilder som du vill lägga till i appen.
Klicka på Funktioner, klicka på och välj sedan funktioner som du vill lägga till i appen, exempelvis Bluetooth, kalendrar, kameraåtkomst eller röstigenkänning.
Mata in en förklaring för varje funktion som du vill lägga till.
Den här förklaringen visas för användaren så att den kan begära tillstånd att använda funktionen.
Installera appen i mappen Appar på datorn och klicka sedan på Installera på denna Mac.
Skicka in appen till App Store Connect genom att klicka på Logga in (om du har ett utvecklarkonto).
Ange ett team- och paket-ID, ett versionsnummer och en kategori för appen (som ska visas för kunder i App Store, t.ex. Utbildning, Företag eller Spel). Klicka sedan på Överför till App Store Connect.
Information om hur du använder App Store Connect till att följa upp dina inskick till App Store finns på App Store Connect.
Skapa en PDF av en playground
Du kan skapa en PDF av din playground som du kan skriva ut eller dela med andra. PDF-filen är en bildbaserad fil (den innehåller inte textinformation), så du kan inte kopiera och klistra in text från den.
Öppna playgrounden som du vill exportera och välj sedan Arkiv > Exportera som PDF.
Navigera till platsen där du vill spara PDF-filen och klicka sedan på Spara.
Exportera en playground
Du kan exportera en playground som du vill dela med andra eller spara en version åt dig själv.
Öppna playgrounden i appen Swift Playgrounds på datorn och välj sedan Arkiv > Exportera som ny playground.
Om du vill byta namn på playgrounden markerar du namnet och anger sedan ett nytt namn.
Om du vill använda ändringarna du har gjort som en ny startpunkt för den exporterade playgrounden ska du se till att du har valt Börja om med mina ändringar. Om personen som tar emot din playground sedan väljer att nollställa den blir hans eller hennes ändringar raderade, men inte dina.
Om du inte hade valt Börja om med mina ändringar när du exporterade playgrounden blir bådas ändringar raderade ifall playgrounden nollställs.
Om du vill spara playgrounden på sidan Mina playgrounder klickar du på Exportera till Mina playgrounder.
Du kan dela playgrounden från sidan Mina playgrounder.