{"action":"opened","issue":{"url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/34","labels_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/34/comments","events_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/34/events","html_url":"https://github.com/hyperoslo/Lightbox/issues/34","id":101958223,"number":34,"title":"Make config a class (or any other possibility to subclass the config)","user":{"login":"richardoti","id":8013017,"avatar_url":"https://avatars.githubusercontent.com/u/8013017?v=3","gravatar_id":"","url":"https://api.github.com/users/richardoti","html_url":"https://github.com/richardoti","followers_url":"https://api.github.com/users/richardoti/followers","following_url":"https://api.github.com/users/richardoti/following{/other_user}","gists_url":"https://api.github.com/users/richardoti/gists{/gist_id}","starred_url":"https://api.github.com/users/richardoti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardoti/subscriptions","organizations_url":"https://api.github.com/users/richardoti/orgs","repos_url":"https://api.github.com/users/richardoti/repos","events_url":"https://api.github.com/users/richardoti/events{/privacy}","received_events_url":"https://api.github.com/users/richardoti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hyperoslo/Lightbox/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T17:51:17Z","updated_at":"2015-08-19T17:51:17Z","closed_at":null,"body":"Right now making a non-default config requires modifying a struct, which has to be done in the controller. I suggest making config to be a class, so it would be possible to keep it in one place and not overcomplicate controller class.\r\n\r\nIf config is a class, it is still possible for the library to work the same way (i.e. to be configured in the controller), but also, it is possible to subclass a default config, do some overrides and pass it with one line only:\r\n```Objective-C\r\nlet mySuperConfig = MySuperConfig()\r\nlet lightBox = LightboxController(imagesUI: images, config: mySuperConfig)\r\n```\r\n\r\nWhat do you think about this? "}}