We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 386e5a5 commit 315809fCopy full SHA for 315809f
2 files changed
Sources/iOSIntPackage/DataProvider.swift
@@ -9,8 +9,14 @@ import Foundation
9
10
public final class DataProvider {
11
12
- public func fetchPersonData(student: String) -> String {
+ private let student: String
13
14
- return "Здравствуйте, \(student)! Вот ваш бутерброд!"
+ public init(student name: String) {
15
+ self.student = name
16
+ }
17
+
18
+ public func fetchPersonData() -> String {
19
20
+ return "Здравствуйте, \(student)! Вот ваш бутерброд!" + iOSIntPackage().text
21
}
22
Sources/iOSIntPackage/iOSIntPackage.swift
@@ -1,4 +1,3 @@
1
struct iOSIntPackage {
2
var text = "Hello, Citizen!"
3
- var provider = DataProvider()
4
0 commit comments