-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathLocatable.podspec
More file actions
48 lines (34 loc) · 1.37 KB
/
Locatable.podspec
File metadata and controls
48 lines (34 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Pod::Spec.new do |s|
s.name = 'Locatable'
s.version = '0.4'
s.summary = 'Locatable is a micro framework that leverages Property Wrappers to implement the Service Locator pattern, through a custom attribute @Locatable'
s.description = <<-DESC
Locatable is a Swift micro framework that leverages Property Wrappers to implement the Service Locator pattern, through a custom attribute `@Locatable`.
Here's an example of how it can be used:
protocol Servicing {
func action()
}
class Service: Servicing {
func action() {
print("I'm performing a service 😊")
}
}
Locator.register(Servicing.self, { return Service() })
class MyController {
@Locatable var service: Servicing
func work() {
self.service.action()
}
}
let controller = MyController()
controller.work() // I'm performing a service 😊
DESC
s.homepage = 'https://github.com/vincent-pradeilles/locatable'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.source = { :git => 'https://github.com/vincent-pradeilles/locatable.git', :tag => s.version.to_s }
s.swift_version = '5.1'
s.ios.deployment_target = '9.0'
s.framework = 'Foundation'
s.source_files = 'Locatable/Locatable/**/*.swift'
end