Comments (4)
@klwoon Sure. Here’s an example, I manually set the acknowledgements
property with hard-coded values:
let viewController = AcknowListViewController()
viewController.acknowledgements = [Acknow(title: "Test 1", text: "ABC"), Acknow(title: "Test 2", text: "DEF")]
navigationController?.pushViewController(viewController, animated: true)
An individual Acknow
instance is immutable, this is why you had the error when you tried to edit the text
property directly. You need to edit the acknowledgements
array instead. Note that you can also use the Swift filter
method to keep some values for the original array.
from acknowlist.
Hello Kevin, and thanks for your feedback!
I agree that this kind of licenses is problematic, but it seems like there’s no good universal solution.
When I need to edit the licenses, I just update the acknowledgements
property on AcknowListViewController
before presenting it. No need to subclass. Would that be a reasonable solution, in the context of your project?
from acknowlist.
Could you post some example here how to update the acknowledgements
property? I tried to modify the text
but it won't allowed: Cannot assign to property: 'text' is a 'let' constant
.
Thanks.
from acknowlist.
Thanks for the example!
from acknowlist.
Related Issues (20)
- How to include licenses of Swift packages HOT 9
- AcknowList 2.1.1 not working in a pure SPM project HOT 3
- Dependency licenses are not displaying HOT 1
- Exclude a pod HOT 2
- Acknowledgement details not "scrollable" on tvOS
- Layout issue of header label on iPad with formSheet presentation style HOT 1
- 'automaticDimension' has been renamed to 'UITableViewAutomaticDimension' HOT 1
- Header/Footer Breaks in Xcode 12/iOS 14 HOT 2
- Header Label Localization HOT 7
- AcknowList 2.0.0 beta 1 HOT 3
- SwiftUI HOT 3
- Incorrect sorting when combining plist with custom entries HOT 1
- Assertion failure in iOS 15 HOT 14
- SwiftUIView is not available on v2.0.3 HOT 2
- Return the library details in csv HOT 1
- Change VC title "Acknowledgements" HOT 1
- Plist via SPM HOT 1
- SwiftUI Views not included in latest Release HOT 1
- SwiftPM usage has docc included in build files HOT 1
- 'NSInternalInconsistencyException' on iOS 15.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acknowlist.