zenangst / Vaccine

:syringe: Vaccine - Make your apps immune to recompile-disease
Other
307 stars 18 forks source link

Adds view injection via swizzling #29

Closed zenangst closed 6 years ago

zenangst commented 6 years ago

Adds view injection via swizzling. If swizzling is enabled when loading the bundle. The initializers for views will now be swizzled to add injection via convention. If you implement @objc func loadView() on your views. Injection will be added to run that method when the view gets injected.

codecov-io commented 6 years ago

Codecov Report

Merging #29 into master will decrease coverage by 3.21%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
- Coverage   69.51%   66.29%   -3.22%     
==========================================
  Files          17       18       +1     
  Lines         433      454      +21     
==========================================
  Hits          301      301              
- Misses        132      153      +21
Impacted Files Coverage Δ
Source/Shared/View+Extensions.swift 0% <0%> (ø)
Source/Shared/Injection.swift 32.14% <0%> (-0.79%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b50d01c...3e880ab. Read the comment docs.