Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ios-test
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giovanni Cariglia
ios-test
Commits
5c1db5b0
Commit
5c1db5b0
authored
Dec 31, 2020
by
giovannicariglia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial Commit
parents
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
462 additions
and
0 deletions
+462
-0
Hello World.xcodeproj/project.pbxproj
Hello World.xcodeproj/project.pbxproj
+0
-0
Hello World.xcodeproj/project.xcworkspace/contents.xcworkspacedata
...ld.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+7
-0
Hello World.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
...project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+8
-0
Hello World.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
...ect.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+8
-0
Hello World.xcodeproj/project.xcworkspace/xcuserdata/giovannicariglia.xcuserdatad/WorkspaceSettings.xcsettings
...giovannicariglia.xcuserdatad/WorkspaceSettings.xcsettings
+18
-0
Hello World.xcodeproj/xcuserdata/giovannicariglia.xcuserdatad/xcschemes/xcschememanagement.plist
...nicariglia.xcuserdatad/xcschemes/xcschememanagement.plist
+14
-0
Hello World/AppDelegate.swift
Hello World/AppDelegate.swift
+36
-0
Hello World/Assets.xcassets/AccentColor.colorset/Contents.json
... World/Assets.xcassets/AccentColor.colorset/Contents.json
+11
-0
Hello World/Assets.xcassets/AppIcon.appiconset/Contents.json
Hello World/Assets.xcassets/AppIcon.appiconset/Contents.json
+98
-0
Hello World/Assets.xcassets/Contents.json
Hello World/Assets.xcassets/Contents.json
+6
-0
Hello World/Base.lproj/LaunchScreen.storyboard
Hello World/Base.lproj/LaunchScreen.storyboard
+25
-0
Hello World/Base.lproj/Main.storyboard
Hello World/Base.lproj/Main.storyboard
+84
-0
Hello World/Info.plist
Hello World/Info.plist
+66
-0
Hello World/SceneDelegate.swift
Hello World/SceneDelegate.swift
+52
-0
Hello World/ViewController.swift
Hello World/ViewController.swift
+29
-0
No files found.
Hello World.xcodeproj/project.pbxproj
0 → 100644
View file @
5c1db5b0
This diff is collapsed.
Click to expand it.
Hello World.xcodeproj/project.xcworkspace/contents.xcworkspacedata
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version =
"1.0"
>
<FileRef
location =
"self:"
>
</FileRef>
</Workspace>
Hello World.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
IDEDidComputeMac32BitWarning
</key>
<true/>
</dict>
</plist>
Hello World.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
PreviewsEnabled
</key>
<false/>
</dict>
</plist>
Hello World.xcodeproj/project.xcworkspace/xcuserdata/giovannicariglia.xcuserdatad/WorkspaceSettings.xcsettings
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
BuildLocationStyle
</key>
<string>
UseAppPreferences
</string>
<key>
CustomBuildLocationType
</key>
<string>
RelativeToDerivedData
</string>
<key>
DerivedDataLocationStyle
</key>
<string>
Default
</string>
<key>
IssueFilterStyle
</key>
<string>
ShowActiveSchemeOnly
</string>
<key>
LiveSourceIssuesEnabled
</key>
<true/>
<key>
ShowSharedSchemesAutomaticallyEnabled
</key>
<true/>
</dict>
</plist>
Hello World.xcodeproj/xcuserdata/giovannicariglia.xcuserdatad/xcschemes/xcschememanagement.plist
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
SchemeUserState
</key>
<dict>
<key>
Hello World.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
</dict>
</dict>
</dict>
</plist>
Hello World/AppDelegate.swift
0 → 100644
View file @
5c1db5b0
//
// AppDelegate.swift
// Hello World
//
// Created by Giovanni Cariglia on 28.12.20.
//
import
UIKit
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
// Override point for customization after application launch.
return
true
}
// MARK: UISceneSession Lifecycle
func
application
(
_
application
:
UIApplication
,
configurationForConnecting
connectingSceneSession
:
UISceneSession
,
options
:
UIScene
.
ConnectionOptions
)
->
UISceneConfiguration
{
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return
UISceneConfiguration
(
name
:
"Default Configuration"
,
sessionRole
:
connectingSceneSession
.
role
)
}
func
application
(
_
application
:
UIApplication
,
didDiscardSceneSessions
sceneSessions
:
Set
<
UISceneSession
>
)
{
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
Hello World/Assets.xcassets/AccentColor.colorset/Contents.json
0 → 100644
View file @
5c1db5b0
{
"colors"
:
[
{
"idiom"
:
"universal"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
Hello World/Assets.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
View file @
5c1db5b0
{
"images"
:
[
{
"idiom"
:
"iphone"
,
"scale"
:
"2x"
,
"size"
:
"20x20"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"3x"
,
"size"
:
"20x20"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"2x"
,
"size"
:
"29x29"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"3x"
,
"size"
:
"29x29"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"2x"
,
"size"
:
"40x40"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"3x"
,
"size"
:
"40x40"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"2x"
,
"size"
:
"60x60"
},
{
"idiom"
:
"iphone"
,
"scale"
:
"3x"
,
"size"
:
"60x60"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"1x"
,
"size"
:
"20x20"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"2x"
,
"size"
:
"20x20"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"1x"
,
"size"
:
"29x29"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"2x"
,
"size"
:
"29x29"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"1x"
,
"size"
:
"40x40"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"2x"
,
"size"
:
"40x40"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"1x"
,
"size"
:
"76x76"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"2x"
,
"size"
:
"76x76"
},
{
"idiom"
:
"ipad"
,
"scale"
:
"2x"
,
"size"
:
"83.5x83.5"
},
{
"idiom"
:
"ios-marketing"
,
"scale"
:
"1x"
,
"size"
:
"1024x1024"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
Hello World/Assets.xcassets/Contents.json
0 → 100644
View file @
5c1db5b0
{
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
Hello World/Base.lproj/LaunchScreen.storyboard
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13122.16"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
initialViewController=
"01J-lp-oVM"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13104.12"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--View Controller-->
<scene
sceneID=
"EHf-IW-A2E"
>
<objects>
<viewController
id=
"01J-lp-oVM"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
xcode11CocoaTouchSystemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"6Tk-OE-BBY"
/>
</view>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"53"
y=
"375"
/>
</scene>
</scenes>
</document>
Hello World/Base.lproj/Main.storyboard
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
initialViewController=
"BYZ-38-t0r"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--View Controller-->
<scene
sceneID=
"tne-QT-ifu"
>
<objects>
<viewController
id=
"BYZ-38-t0r"
customClass=
"ViewController"
customModule=
"Hello_World"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"8bC-Xf-vdC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<textView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
textAlignment=
"natural"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JZb-tl-KbG"
>
<rect
key=
"frame"
x=
"16"
y=
"103"
width=
"382"
height=
"749"
/>
<color
key=
"backgroundColor"
systemColor=
"systemGray6Color"
/>
<color
key=
"textColor"
systemColor=
"labelColor"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
autocapitalizationType=
"sentences"
/>
</textView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ybl-Us-ZpG"
>
<rect
key=
"frame"
x=
"16"
y=
"54"
width=
"160"
height=
"39"
/>
<color
key=
"backgroundColor"
systemColor=
"secondarySystemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"160"
id=
"Eji-qc-w6o"
/>
</constraints>
<fontDescription
key=
"fontDescription"
style=
"UICTFontTextStyleTitle2"
/>
<state
key=
"normal"
title=
"Hallo Welt!"
/>
<connections>
<action
selector=
"onHalloWeltClick:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"aUO-VX-DEL"
/>
</connections>
</button>
<slider
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
value=
"25"
minValue=
"12"
maxValue=
"30"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cTf-Yc-1Wn"
>
<rect
key=
"frame"
x=
"274"
y=
"58"
width=
"124"
height=
"31"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"120"
id=
"Qnp-k0-WvH"
/>
</constraints>
<connections>
<action
selector=
"onSliderMove:"
destination=
"BYZ-38-t0r"
eventType=
"valueChanged"
id=
"P8h-sb-sjr"
/>
</connections>
</slider>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"6Tk-OE-BBY"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"JZb-tl-KbG"
firstAttribute=
"leading"
secondItem=
"6Tk-OE-BBY"
secondAttribute=
"leading"
constant=
"16"
id=
"7dc-bG-KHI"
/>
<constraint
firstItem=
"Ybl-Us-ZpG"
firstAttribute=
"leading"
secondItem=
"6Tk-OE-BBY"
secondAttribute=
"leading"
constant=
"16"
id=
"KRD-pY-TAZ"
/>
<constraint
firstItem=
"6Tk-OE-BBY"
firstAttribute=
"trailing"
secondItem=
"JZb-tl-KbG"
secondAttribute=
"trailing"
constant=
"16"
id=
"Pbb-M1-A3h"
/>
<constraint
firstItem=
"JZb-tl-KbG"
firstAttribute=
"top"
secondItem=
"Ybl-Us-ZpG"
secondAttribute=
"bottom"
constant=
"10"
id=
"ano-xo-Eod"
/>
<constraint
firstItem=
"6Tk-OE-BBY"
firstAttribute=
"trailing"
secondItem=
"cTf-Yc-1Wn"
secondAttribute=
"trailing"
constant=
"18"
id=
"cpv-ar-Hwb"
/>
<constraint
firstItem=
"Ybl-Us-ZpG"
firstAttribute=
"top"
secondItem=
"6Tk-OE-BBY"
secondAttribute=
"top"
constant=
"10"
id=
"gYr-Yd-XfO"
/>
<constraint
firstItem=
"cTf-Yc-1Wn"
firstAttribute=
"top"
secondItem=
"6Tk-OE-BBY"
secondAttribute=
"top"
constant=
"14"
id=
"oWB-xs-LBw"
/>
<constraint
firstItem=
"6Tk-OE-BBY"
firstAttribute=
"bottom"
secondItem=
"JZb-tl-KbG"
secondAttribute=
"bottom"
constant=
"10"
id=
"zjb-fa-zJd"
/>
</constraints>
</view>
<connections>
<outlet
property=
"tvText"
destination=
"JZb-tl-KbG"
id=
"8he-Hd-OdY"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"dkx-z0-nzr"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"18.840579710144929"
y=
"93.75"
/>
</scene>
</scenes>
<resources>
<systemColor
name=
"labelColor"
>
<color
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
<systemColor
name=
"secondarySystemBackgroundColor"
>
<color
red=
"0.94901960784313721"
green=
"0.94901960784313721"
blue=
"0.96862745098039216"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</systemColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
<systemColor
name=
"systemGray6Color"
>
<color
red=
"0.94901960784313721"
green=
"0.94901960784313721"
blue=
"0.96862745098039216"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</systemColor>
</resources>
</document>
Hello World/Info.plist
0 → 100644
View file @
5c1db5b0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
CFBundleDevelopmentRegion
</key>
<string>
$(DEVELOPMENT_LANGUAGE)
</string>
<key>
CFBundleExecutable
</key>
<string>
$(EXECUTABLE_NAME)
</string>
<key>
CFBundleIdentifier
</key>
<string>
$(PRODUCT_BUNDLE_IDENTIFIER)
</string>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleName
</key>
<string>
$(PRODUCT_NAME)
</string>
<key>
CFBundlePackageType
</key>
<string>
$(PRODUCT_BUNDLE_PACKAGE_TYPE)
</string>
<key>
CFBundleShortVersionString
</key>
<string>
1.0
</string>
<key>
CFBundleVersion
</key>
<string>
1
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
UIApplicationSceneManifest
</key>
<dict>
<key>
UIApplicationSupportsMultipleScenes
</key>
<false/>
<key>
UISceneConfigurations
</key>
<dict>
<key>
UIWindowSceneSessionRoleApplication
</key>
<array>
<dict>
<key>
UISceneConfigurationName
</key>
<string>
Default Configuration
</string>
<key>
UISceneDelegateClassName
</key>
<string>
$(PRODUCT_MODULE_NAME).SceneDelegate
</string>
<key>
UISceneStoryboardFile
</key>
<string>
Main
</string>
</dict>
</array>
</dict>
</dict>
<key>
UIApplicationSupportsIndirectInputEvents
</key>
<true/>
<key>
UILaunchStoryboardName
</key>
<string>
LaunchScreen
</string>
<key>
UIMainStoryboardFile
</key>
<string>
Main
</string>
<key>
UIRequiredDeviceCapabilities
</key>
<array>
<string>
armv7
</string>
</array>
<key>
UISupportedInterfaceOrientations
</key>
<array>
<string>
UIInterfaceOrientationPortrait
</string>
<string>
UIInterfaceOrientationLandscapeLeft
</string>
<string>
UIInterfaceOrientationLandscapeRight
</string>
</array>
<key>
UISupportedInterfaceOrientations~ipad
</key>
<array>
<string>
UIInterfaceOrientationPortrait
</string>
<string>
UIInterfaceOrientationPortraitUpsideDown
</string>
<string>
UIInterfaceOrientationLandscapeLeft
</string>
<string>
UIInterfaceOrientationLandscapeRight
</string>
</array>
</dict>
</plist>
Hello World/SceneDelegate.swift
0 → 100644
View file @
5c1db5b0
//
// SceneDelegate.swift
// Hello World
//
// Created by Giovanni Cariglia on 28.12.20.
//
import
UIKit
class
SceneDelegate
:
UIResponder
,
UIWindowSceneDelegate
{
var
window
:
UIWindow
?
func
scene
(
_
scene
:
UIScene
,
willConnectTo
session
:
UISceneSession
,
options
connectionOptions
:
UIScene
.
ConnectionOptions
)
{
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard
let
_
=
(
scene
as?
UIWindowScene
)
else
{
return
}
}
func
sceneDidDisconnect
(
_
scene
:
UIScene
)
{
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func
sceneDidBecomeActive
(
_
scene
:
UIScene
)
{
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func
sceneWillResignActive
(
_
scene
:
UIScene
)
{
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func
sceneWillEnterForeground
(
_
scene
:
UIScene
)
{
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func
sceneDidEnterBackground
(
_
scene
:
UIScene
)
{
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
Hello World/ViewController.swift
0 → 100644
View file @
5c1db5b0
//
// ViewController.swift
// Hello World
//
// Created by Giovanni Cariglia on 28.12.20.
//
import
UIKit
class
ViewController
:
UIViewController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
}
@IBOutlet
weak
var
tvText
:
UITextView
!
@IBAction
func
onHalloWeltClick
(
_
sender
:
Any
)
{
let
dateNow
=
Date
()
let
formatter
=
DateFormatter
()
formatter
.
dateFormat
=
"d.M.yyy H:mm:ss"
tvText
.
text
+=
formatter
.
string
(
from
:
dateNow
)
+
"
\n
"
}
@IBAction
func
onSliderMove
(
_
sender
:
UISlider
)
{
tvText
.
font
=
tvText
.
font
?
.
withSize
(
CGFloat
(
sender
.
value
))
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment