demo-swift-hello-world
Demo Swift Hello World
https://github.com/joelparkerhenderson/demo-swift-hello-world
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.1%) to scientific vocabulary
Repository
Demo Swift Hello World
Basic Info
- Host: GitHub
- Owner: joelparkerhenderson
- Language: Swift
- Default Branch: master
- Size: 569 KB
Statistics
- Stars: 3
- Watchers: 3
- Forks: 7
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Demo Swift Hello World

This demonstration shows:
How to create a view that shows "Hello World" on the screen.
There are multiple git branches so pick the one you want:
master: current Swift, Xcode, iOS; equivalent to branch swift-4-xocde-9.
swift-4-xcode-9: Swift version 4, Xcode version 9, iOS version 11.
swift-3-xcode-8: Swift version 3, Xcode version 8, iOS version 10.
To use this project:
You can clone this repo.
Or you can create the project yourself by using this README that explains how to do it.
Create the project
Launch Xcode.
Choose "File" → "New" → "Project".
You see the dialog "Choose a template for your new project".
Choose the "iOS" radio button.
Choose the "Single View Application" icon.
Tap the button "Next".
You see the dialog "Choose options for your new project".
For "Product Name", type "Demo Swift Hello World".
For "Organization Name", type anything you want. Typically this is your company's name, or team's name, or similiar. For example, "Example Company".
For "Organization Identifier", type anything you want. Typically this is your company's reverse domain name. For example, "com.example".
Tap the button "Next".
You see the file chooser.
Choose where to save your project.
Tap the button "Create".
Xcode creates the project.
Sign the project
If Xcode shows a "Signing" area with a "Status" alert icon, here's how to solve it.
Xcode may show a message such as "Signing for "Demo Swift Hello World" requires a development team. Select a development team in the project editor."
In the same "Signing" section, choose the "Team" dropdown, and choose your Apple ID.
If there's no Apple ID, then you need to add yours: Xcode → Preferences → Accounts → the "+" button → Add Apple ID
Run the project
Run the project for the first time.
Xcode → Product → Run
This is simply to verify that the project runs so far.
The Simulator launches.
The Simulator shows a blank screen.
Quit the Simulator and go back to using Xcode.
Create the label
Open the view.
In the left Xcode column, Tap the icon "Main.storyboard".
In the next Xcode column, Tap the icon "View Controller Scene", then "View Controller", then "View".
In the central Xcode column, you see the "View Controller" layout area, and the view box is all blue, which means it is selected.
Add a label.
In the lower-right Xcode area, there is a library picker, with four icons that have rollover tool tips: "Show the File Template library", "Show the Code Snippet library", "Show the Object library", "Show the Media library".
Tap the circle icon "Show the Object Library".
Scroll until you see the "Label" item.
Drag-and-drop the "Label" item to the middle of the View Controller layout area.
Double-tap the label to edit the text; edit the text to say "Hello World".
Center the label
Center the label by adding constraints.
Control-tap-press the label, and drag right. This pops up a menu. Choose "Center Vertically in a Safe Area"
Control-tap-press the label, and drag down. This pops up a menu. Choose "Center Horizontally in a Safe Area"
Update.
In the central Xcode column, in the lower right area, tap the icon that is a refresh circle arrow, with the tool tip "Update Frames".
The text field resets to its constraints, which make it the correct size, and center it in the view.
Run
Run the project.
- Xcode → Product → Run
The Simulator launches.
The Simulator shows "Hello World".
Congratulations! You're successful!
Tracking
- Package: demoswifthello_world
- Version: 4.0.0
- Created: 2016-04-09
- Updated: 2017-09-27
- License: BSD, GPL, MIT
- Contact: Joel Parker Henderson (http://joelparkerhenderson.com)
Owner
- Name: Joel Parker Henderson
- Login: joelparkerhenderson
- Kind: user
- Location: California
- Website: http://www.joelparkerhenderson.com
- Repositories: 319
- Profile: https://github.com/joelparkerhenderson
Software developer. Technology consultant. Creator of GitAlias.com, NumCommand.com, SixArm.com, and many open source projects.
Citation (CITATION.cff)
cff-version: 1.2.0
title: Demo Swift Hello World
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/joelparkerhenderson/demo-swift-hello-world/'
description: Demo Swift Hello World
repository-code: 'https://github.com/joelparkerhenderson/demo-swift-hello-world/'
abstract: >-
Demo Swift Hello World
license: See license file
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joel Parker Henderson | j****l@j****m | 17 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0